/* ═══════════════════════════════════════════════════════════
   auth.css  —  Login, Signup, Verify, Reset pages
   ═══════════════════════════════════════════════════════════ */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 16px;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(233,69,96,.1) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 70%, rgba(80,250,123,.07) 0%, transparent 55%);
}

/* ─── Auth Card ─── */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    padding: 40px 36px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

/* decorative top strip */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}

/* ─── Auth Logo ─── */
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo img { width: 26px; }

/* ─── Auth Title ─── */
.auth-title {
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ─── OTP Box ─── */
.otp-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}
.otp-digit {
    width: 52px;
    height: 64px;
    background: var(--surface2);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    caret-color: transparent;
}
.otp-digit:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,.2);
}
.otp-digit.filled { border-color: var(--accent2); color: var(--accent2); }

/* ─── Password strength ─── */
.pw-strength-wrap { margin-top: 6px; }
.pw-strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .4s, background .4s;
    width: 0%;
}
.pw-strength-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Strength colors */
.strength-0 { width: 0%;   background: transparent; }
.strength-1 { width: 25%;  background: var(--accent); }
.strength-2 { width: 50%;  background: var(--accent2); }
.strength-3 { width: 75%;  background: #4ecdc4; }
.strength-4 { width: 100%; background: var(--accent3); }

/* ─── Eye toggle (show/hide password) ─── */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 44px; }
.pw-toggle {
    position: absolute;
    right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    font-size: 18px; padding: 0; width: auto; margin: 0; line-height: 1;
    transition: color .2s;
}
.pw-toggle:hover { color: var(--text); }

/* ─── Divider ─── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── Bottom link ─── */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.auth-footer a:hover { text-decoration: underline; }

/* ─── Countdown timer ─── */
.otp-timer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}
.otp-timer #countdown { color: var(--accent2); font-weight: 700; font-family: 'Space Mono', monospace; }
.otp-timer #resend-link { color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; display: none; }

/* ─── Email display ─── */
.email-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,166,35,.1);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--accent2);
    margin: 4px 0 16px;
}

/* ─── Mobile tweaks ─── */
@media (max-width: 500px) {
    .auth-card { padding: 28px 20px; }
    .otp-digit { width: 44px; height: 56px; font-size: 22px; }
}
