/**
 * Shared auth pages theme (admin login, OTP, forgot/reset password, user login).
 */
.auth-theme-color { color: #93c5fd; }

.auth-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: center;
}

.auth-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-wrap i {
    font-size: 28px;
    color: #fff;
}

.auth-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 14px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-alert {
    border-radius: 8px !important;
    border: 0;
}

.auth-info-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.5;
}

.auth-captcha-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px 12px 10px;
    margin-bottom: 12px;
}

.auth-captcha-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-captcha-label i {
    margin-right: 6px;
    color: #93c5fd;
}

.auth-captcha-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.auth-captcha-frame {
    flex: 1;
    min-height: 62px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 10px;
    padding: 4px 6px;
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.18);
}

.auth-captcha-frame img,
.staff-captcha-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    vertical-align: middle;
}

.auth-captcha-refresh {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.auth-captcha-refresh:hover {
    transform: rotate(20deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.auth-captcha-input {
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
}

.auth-captcha-hint {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    margin-top: 6px;
}

.auth-btn-primary {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    color: #1e3a5f;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    color: #1e3a5f;
}

.auth-btn-secondary {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-btn-secondary:hover,
.auth-btn-secondary:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.auth-btn-secondary.disabled,
.auth-btn-secondary.disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
}

.auth-resend-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.auth-resend-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    margin: 0 0 10px;
}

.auth-resend-cooldown {
    display: none;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.auth-resend-cooldown strong {
    color: #fff;
}

.auth-back-section {
    margin-top: 14px;
    text-align: center;
}

.auth-btn-back {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-btn-back:hover,
.auth-btn-back:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.auth-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-link-row a,
.auth-link-row .forgot {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.auth-link-row a:hover,
.auth-link-row .forgot:hover {
    color: #fff;
    text-decoration: underline;
}

/* OTP verification page */
.otp-page .loginbg {
    max-width: 420px;
    margin: 0 auto;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 8px;
}

.otp-box {
    width: 46px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.otp-box:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.otp-box.filled {
    border-color: #7dd3fc;
    background: rgba(125, 211, 252, 0.15);
}

.otp-timer {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 12px 0 18px;
}

.otp-timer.expired {
    color: #fecaca;
}

.otp-right-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.otp-info-card {
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.otp-info-card h4 {
    color: #1e3a5f;
    font-weight: 700;
    margin-top: 0;
}

.otp-step {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.otp-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.otp-step-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .otp-right-panel {
        min-height: auto;
        padding: 24px 16px 40px;
    }
}
