/* ==========================================================
   eBillSeva Authentication
   Login
========================================================== */


/* ==========================================================
   Page
========================================================== */

.auth-page {
    min-height: 100vh;
    background: var(--bs-light, #f8f9fa);
}

.auth-main {
    min-height: 100vh;
}


/* ==========================================================
   Shell
========================================================== */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}


/* ==========================================================
   Card
========================================================== */

.auth-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(13, 71, 161, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}


/* ==========================================================
   Brand
========================================================== */

.auth-brand {
    margin-bottom: 28px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-logo-image {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary, #0d47a1);
    letter-spacing: -0.02em;
}

.auth-brand-tagline {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}


/* ==========================================================
   Heading
========================================================== */

.auth-heading {
    margin-bottom: 28px;
}

.auth-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #172033;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #6c757d;
    font-size: 0.94rem;
    line-height: 1.6;
}


/* ==========================================================
   Form
========================================================== */

.auth-form {
    width: 100%;
}

.auth-form .form-label {
    color: #273142;
    font-size: 0.88rem;
    font-weight: 600;
}


/* ==========================================================
   Input Group
========================================================== */

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a8494;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 48px;
    padding-left: 42px;
    padding-right: 46px;
    border-radius: 10px;
    border-color: #dce1e8;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-input::placeholder {
    color: #9aa3af;
}

.auth-input:focus {
    border-color: var(--bs-primary, #0d47a1);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.10);
    outline: none;
}


/* ==========================================================
   Password Toggle
========================================================== */

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;

    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #7a8494;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.auth-password-toggle:hover {
    background: #f1f3f5;
    color: var(--bs-primary, #0d47a1);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--bs-primary, #0d47a1);
    outline-offset: 2px;
}


/* ==========================================================
   Small Links
========================================================== */

.auth-small-link {
    color: var(--bs-primary, #0d47a1);
    font-size: 0.82rem;
    text-decoration: none;
}

.auth-small-link:hover {
    text-decoration: underline;
}


/* ==========================================================
   Remember Me
========================================================== */

.auth-remember {
    color: #5f6876;
    font-size: 0.88rem;
}

.auth-remember .form-check-input {
    cursor: pointer;
}

.auth-remember .form-check-label {
    cursor: pointer;
}


/* ==========================================================
   Submit
========================================================== */

.auth-submit {
    min-height: 48px;
    border-radius: 10px;
    font-weight: 600;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}


/* ==========================================================
   Validation Alert
========================================================== */

.auth-alert {
    margin-bottom: 24px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.auth-alert ul {
    margin-bottom: 0;
}


/* ==========================================================
   Register Divider
========================================================== */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 28px 0 16px;

    color: #8a93a0;
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e8ebef;
}


/* ==========================================================
   Register Button
========================================================== */

.auth-register-link {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
}


/* ==========================================================
   Footer
========================================================== */

.auth-footer {
    margin-top: 28px;
    color: #8a93a0;
    font-size: 0.76rem;
}

.auth-footer-dot {
    margin: 0 5px;
}

.auth-back-home {
    margin-top: 14px;
}


/* ==========================================================
   Invalid State
========================================================== */

.auth-input.is-invalid {
    border-color: var(--bs-danger, #dc3545);
}

.auth-input.is-invalid:focus {
    border-color: var(--bs-danger, #dc3545);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.10);
}

.auth-form .invalid-feedback {
    margin-top: 5px;
    font-size: 0.78rem;
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 575.98px) {

    .auth-shell {
        min-height: 100vh;
        padding: 20px 12px;
        align-items: flex-start;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-logo-image {
        width: 170px;
        max-width: 100%;
        height: auto;
    }

    .auth-brand {
        margin-bottom: 24px;
    }

    .auth-heading {
        margin-bottom: 24px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 0.88rem;
    }

}


/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .auth-input,
    .auth-password-toggle,
    .auth-submit {
        transition: none;
    }

    .auth-submit:hover {
        transform: none;
    }

}