/* ==========================================================
   eBillSeva Authentication
   Register Page
========================================================== */


/* ==========================================================
   Register Page Shell
========================================================== */

.auth-register-shell {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-register-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}


/* ==========================================================
   Authentication Card
========================================================== */

.auth-register-container .auth-card {
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}


/* ==========================================================
   Brand
========================================================== */

.auth-brand {
    margin-bottom: 28px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    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: #0d47a1;
    text-decoration: none;
}

.auth-brand-tagline {
    margin: 12px 0 0;
    color: #687282;
    font-size: 0.88rem;
    line-height: 1.5;
}


/* ==========================================================
   Heading
========================================================== */

.auth-heading {
    margin-bottom: 30px;
}

.auth-title {
    margin: 0;
    color: #111827;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #687282;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ==========================================================
   Validation Alert
========================================================== */

.auth-alert {
    margin-bottom: 24px;
    border-radius: 12px;
}


/* ==========================================================
   Form
========================================================== */

.auth-form {
    width: 100%;
}

.auth-form .form-label {
    margin-bottom: 7px;
    color: #1f2937;
    font-size: 0.88rem;
    font-weight: 600;
}


/* ==========================================================
   Simple Inputs
========================================================== */

.auth-input-simple {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #dce1e8;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-input-simple::placeholder {
    color: #9aa3af;
}

.auth-input-simple:focus {
    border-color: var(--bs-primary, #0d47a1);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.10);
    outline: none;
}


/* ==========================================================
   Password
========================================================== */

.auth-password-input {
    padding-right: 48px;
}

.auth-input-group {
    position: relative;
}

.auth-password-input + .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7a8494;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--bs-primary, #0d47a1);
}

.auth-password-toggle:focus {
    outline: none;
}


/* ==========================================================
   Section Heading
========================================================== */

.auth-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-section-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(13, 71, 161, 0.08);
    color: var(--bs-primary, #0d47a1);
    font-size: 0.72rem;
    font-weight: 700;
}

.auth-section-heading h2 {
    margin: 0;
    color: #273142;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.auth-section-heading p {
    margin: 3px 0 0;
    color: #7a8494;
    font-size: 0.8rem;
    line-height: 1.4;
}


/* ==========================================================
   Terms
========================================================== */

.auth-terms {
    color: #687282;
    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-terms .form-check-input {
    margin-top: 0.2rem;
}

.auth-terms a {
    color: var(--bs-primary, #0d47a1);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}


/* ==========================================================
   Submit
========================================================== */

.auth-submit {
    min-height: 48px;
    border-radius: 10px;
    font-weight: 600;
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}


/* ==========================================================
   Login Footer
========================================================== */

.auth-login-footer {
    margin-top: 26px;
    color: #6c757d;
    font-size: 0.88rem;
}

.auth-login-footer a {
    margin-left: 4px;
    color: var(--bs-primary, #0d47a1);
    font-weight: 600;
    text-decoration: none;
}

.auth-login-footer a:hover {
    text-decoration: underline;
}


/* ==========================================================
   Auth Footer
========================================================== */

.auth-footer {
    margin-top: 22px;
    color: #8a93a1;
    font-size: 0.78rem;
}


/* ==========================================================
   Validation
========================================================== */

.auth-form .invalid-feedback {
    margin-top: 5px;
    font-size: 0.78rem;
}


/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 767.98px) {

    .auth-register-shell {
        padding: 24px 14px;
    }

    .auth-register-container {
        max-width: 100%;
    }

    .auth-register-container .auth-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .auth-logo-image {
        width: 150px;
    }

    .auth-title {
        font-size: 1.75rem;
    }

}


@media (max-width: 575.98px) {

    .auth-register-shell {
        padding: 16px 10px;
    }

    .auth-register-container .auth-card {
        padding: 26px 18px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    }

    .auth-logo-image {
        width: 140px;
    }

    .auth-brand {
        margin-bottom: 24px;
    }

    .auth-heading {
        margin-bottom: 24px;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .auth-subtitle {
        font-size: 0.88rem;
    }

    .auth-section-heading {
        gap: 10px;
    }

    .auth-section-number {
        width: 32px;
        height: 32px;
    }

}

.auth-input-simple.is-valid {
    border-color: #198754;
}

.auth-input-simple.is-invalid {
    border-color: #dc3545;
}

.auth-terms .form-check-input.is-invalid {
    border-color: #dc3545;
}

.js-validation-message {
    font-size: 0.78rem;
    margin-top: 5px;
}

.auth-input-simple:focus.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.10);
}

.auth-input-simple:focus.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.10);
}


/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .auth-input-simple {
        transition: none;
    }

}