﻿/* ============================================================
   LOGIN & FORGOT PASSWORD – FORM-SPECIFIC VISUALS ONLY
   (NO LAYOUT HERE)
============================================================ */


body {
    font-family: segoe ui !important;
}

/* Compact card feel */
.login-card {
    background: #ffffff;
    border-radius: 0; /* flat */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: clamp(16px, 2vw, 22px);
    width: 100%;
}

.form-control {
    font-family: segoe ui !important;
}

.remember-me-label {
    font-size: 10pt !important;
    font-family: segoe ui !important;
}

.remember-me-label {
    font-size: 10pt !important;
    font-family: segoe ui !important;
}

.remember-me-checkbox {
    font-size: 10pt !important;
    font-family: segoe ui !important;
    margin-left: -4px;
}

/* ------------------- Social buttons row ------------------- */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    .social-row {
        grid-template-columns: 1fr;
    }
}

.k-button-login {
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #1f2937;
    width: 100%;
}

    .k-button-login:hover {
        background-color: #f9fafb;
        border-color: #9ca3af;
    }

    .k-button-login img {
        width: 17px;
        margin-top: -3px;
        margin-bottom: -5px;
        margin-left: -6px;
    }

/*.k-button-solid-secondary:hover {
    color: #000 !important;
}*/

.social-row .k-button-login:hover {
    color: #000 !important;
}
/* ------------------- Divider ------------------- */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

    .divider::before,
    .divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #e5e7eb;
    }

    .divider span {
        font-size: .85rem;
        color: #6b7280;
        font-weight: 600;
    }

/* ============================================================
   FIELD ROW (shared by Login & Forgot Password)
============================================================ */
.field-row {
    display: flex;
    align-items: center; /* vertically center validation */
    gap: 10px;
}

.field-input {
    flex: 1 1 auto;
    min-width: 0; /* prevents overflow on long validation text */
    position: relative;
}

/* Validation message OUTSIDE the input, same row */
.validation-inline-msg {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.1;
    font-size: 12px;
    padding-top: 2px; /* optical alignment */
}

    .validation-inline-msg:empty {
        display: none;
    }

/* Eye icon inside password field */
.password-toggle i {
    font-size: 1rem;
}

/* ============================================================
   ACTIONS ROW (Login & Forgot Password)
============================================================ */
.login-actions,
.actions-right {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left element + right button */
    gap: 12px;
    margin-bottom: 8px;
    float: right;
}

    .login-actions .k-button,
    .actions-right .k-button {
        flex: 0 0 auto;
        float: right;
    }

    /* Checkbox alignment */
    .login-actions .form-check {
        margin: 0;
    }

/* Forgot link row */
.forgot-row {
    display: flex;
    font-size: 10pt;
    font-weight: bold;
    margin-top: 6px;
}

/* ============================================================
   SUBTITLE (shared by ForgotPassword & Login)
============================================================ */
.login-subtitle {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: clamp(13px, 1.3vw, 14px);
}

/* ============================================================
   Messages
============================================================ */
#div-msg {
    min-height: 52px;
}

/* ============================================================
   Inputs polish
============================================================ */
.form-floating label {
    color: #6b7280;
}

.form-control {
    width: 100%;
}

input::placeholder {
    color: #BDBDBD;
}

textarea {
    border-radius: 4px;
}

input[type="text"]::-ms-clear {
    display: none;
}

/* ============================================================
   Small screens behavior
============================================================ */
@media (max-width: 576px) {

    .field-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .validation-inline-msg {
        order: 2; /* Moves below input */
        width: 100%;
        white-space: normal;
        font-size: 11.5px;
    }

    .login-actions,
    .actions-right {
        flex-wrap: wrap;
        gap: 8px;
        float: right;
    }

        .login-actions .k-button,
        .actions-right .k-button {
            order: 2;
            margin-left: auto;
            float: right;
        }
}


/* ============================================================
   RESET PASSWORD – RULES COLUMN (form visuals only)
============================================================ */

.reset-grid {
    /* top spacing between subcolumns is handled by .row.g-4; no layout changes */
}

.password-rules {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    color: #1f2937;
    font-size: 10pt;
}

    .password-rules ul {
        list-style: disc;
        margin: 0 0 0 18px;
        padding: 0;
    }

    .password-rules .rules-title {
        list-style: none;
        margin-left: -18px; /* align with the rest visually */
        margin-bottom: 6px;
        font-size: 13.5px;
    }

    .password-rules li {
        margin-bottom: 6px;
    }

/* Slightly smaller on compact screens */
@media (max-width: 576px) {
    .password-rules {
        font-size: 12.5px;
        padding: 10px 12px;
    }
}
