/* ═══════════════════════════════════════════════════════════════════
   Auth Pages — Shared Styles  (login, signup, forgot, verify, reset)
   Dark-mode only — matches sidebar & email branding
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────────────── */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.auth-card {
    width: 420px;
    max-width: 420px;
    min-height: 480px;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
                0 4px 16px rgba(0, 0, 0, 0.4),
                0 12px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-body {
    padding: 2.5rem 2.5rem;
}

/* ── Brand / Logo ─────────────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(255, 180, 50, 0.25));
}

.auth-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #f8f9fa;
    margin: 0;
}

.auth-title-accent {
    color: #3498db;
}

.auth-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #bbb;
    font-weight: 600;
    margin-top: 4px;
}

.auth-page-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    margin-top: 0.75rem;
}

/* ── Labels ───────────────────────────────────────────────────────── */
.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #bbb;
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
    display: block;
}

.auth-label-sm {
    font-size: 0.78rem;
    color: #999;
}

/* ── Inputs ───────────────────────────────────────────────────────── */
.auth-input {
    background: #141414 !important;
    border: 1px solid #444 !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15) !important;
    background: #181818 !important;
}

.auth-input::placeholder {
    color: #666 !important;
    opacity: 1 !important;
}

.auth-input.input-error {
    border-color: #dc3545 !important;
}

/* Select dropdown */
.auth-select {
    background: #141414 !important;
    border: 1px solid #444 !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-select:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15) !important;
}

.auth-select option {
    background: #1e1e1e;
    color: #fff;
}

/* Checkbox override for dark bg */
.auth-card .form-check-input {
    background-color: #2a2a2a;
    border-color: #555;
}
.auth-card .form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

/* ── Primary Button — text-only, bold blue ────────────────────────── */
.auth-btn {
    display: block;
    width: 100%;
    background: transparent !important;
    border: 1px solid #3498db !important;
    color: #3498db !important;
    font-weight: 700 !important;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding: 0.85rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}

.auth-btn:hover {
    color: #fff !important;
    background: #3498db !important;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Secondary text button (resend code, smaller actions) */
.auth-btn-secondary {
    display: inline-block;
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.auth-btn-secondary:hover {
    color: #3498db !important;
    background: rgba(52, 152, 219, 0.08) !important;
}

/* ── Links ────────────────────────────────────────────────────────── */
.auth-link {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #3498db;
    text-decoration: none;
}

.auth-link-dot {
    color: #555;
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

/* ── Monospace (codes, numbers) ───────────────────────────────────── */
.mono {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace !important;
    letter-spacing: 0.08em;
}

/* ── Hint / Helper Text ──────────────────────────────────────────── */
.auth-hint {
    font-size: 0.73rem;
    color: #888;
    margin-top: 0.4rem;
}

.auth-hint i {
    opacity: 0.7;
}

.auth-hint a {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 600;
}

.auth-hint a:hover {
    color: #ffcd39;
}

.auth-hint-warning {
    color: #e6a817;
}

/* ── Notice Box (quarantine, info) ───────────────────────────────── */
.auth-notice {
    background: rgba(52, 152, 219, 0.06);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.75rem;
    color: #aaa;
}

.auth-notice a {
    color: #3498db;
    font-weight: 600;
    text-decoration: underline;
}

.auth-notice a:hover {
    color: #5dade2;
}

/* ── Flash Messages ──────────────────────────────────────────────── */
.auth-flash {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    min-width: 300px;
    max-width: 460px;
    animation: authFlashIn 0.35s ease;
}

.auth-flash-error,
.auth-flash-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f87171;
}

.auth-flash-success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #6ee7b7;
}

.auth-flash-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.4;
    line-height: 1;
    transition: opacity 0.15s;
}

.auth-flash-close:hover {
    opacity: 0.9;
}

@keyframes authFlashIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Inline Alert (for form errors) ──────────────────────────────── */
.auth-alert {
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: authFadeIn 0.3s ease;
}

.auth-alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #f87171;
}

.auth-alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.25);
    color: #6ee7b7;
}

/* ── Validation error text ───────────────────────────────────────── */
.auth-field-error {
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 0.35rem;
    display: none;
}

/* ── Divider ─────────────────────────────────────────────────────── */
.auth-divider {
    height: 1px;
    background: #333;
    margin: 1.75rem 0;
}

/* ── Section heading (first_login_setup) ─────────────────────────── */
.auth-section-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ccc;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

/* ── Fade animation ──────────────────────────────────────────────── */
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .auth-card {
        border-radius: 12px;
        max-width: 100%;
    }
    .auth-card-body {
        padding: 2rem 1.5rem;
    }
    .auth-logo {
        width: 64px;
        height: 64px;
    }
}
