/* ============================================================
   auth.css — Shared styles for dedicated auth pages
   Login, Register, VerifyOtp, ForgotPassword, ResetPassword
   ============================================================ */

/* Full-height centred section */
.auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #f4f9f6;
}

/* Card */
.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-card-wide {
    max-width: 520px;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

    .auth-logo img {
        height: 48px;
        width: auto;
    }

/* Headings */
.auth-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d7a52;
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Password rules list */
.password-rules-list {
    list-style: none;
    padding: 0 0 0 0.5rem;
    margin: -0.25rem 0 1rem 0;
    font-size: 0.82rem;
}

.password-rules-list .rule {
    color: #6c757d;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}

    .password-rules-list .rule.rule-pass {
        color: #2d7a52;
    }

    .password-rules-list .rule.rule-fail {
        color: #dc3545;
    }

.rule-icon {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

/* Password strength meter */
.strength-meter {
    margin: -0.25rem 0 1rem 0;
}

.strength-meter-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: transparent;
}

    .strength-bar-fill.strength-weak   { background-color: #dc3545; }
    .strength-bar-fill.strength-fair   { background-color: #fd7e14; }
    .strength-bar-fill.strength-good   { background-color: #ffc107; }
    .strength-bar-fill.strength-strong { background-color: #2d7a52; }

.strength-label {
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 1.1em;
    display: block;
}

    .strength-label.strength-weak   { color: #dc3545; }
    .strength-label.strength-fair   { color: #fd7e14; }
    .strength-label.strength-good   { color: #ffc107; }
    .strength-label.strength-strong { color: #2d7a52; }

/* OTP digit inputs */
.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.otp-digit {
    width: 48px !important;
    height: 52px !important;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0 !important;
    background-color: #e8f4ee;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: #2d7a52;
}

    .otp-digit:focus {
        border-color: #2d7a52;
        box-shadow: 0 0 0 3px rgba(45, 122, 82, 0.15);
        outline: none;
        background-color: #e8f4ee;
    }

    .otp-digit.otp-filled {
        border-color: #3d8f62;
    }

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.25rem;
    }

    .otp-digit {
        width: 40px !important;
        height: 46px !important;
        font-size: 1.2rem;
    }
}
