/* ═══════════════════════════════════════════════════════════════════════════════
   AUTH PAGES — FORGOT PASSWORD / VERIFY / RESET
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
    --auth-ink: #0f172a;
    --auth-muted: #475569;
    --auth-line: #e2e8f0;
    --auth-orange: #ea580c;
    --auth-orange-deep: #c2410c;
    --auth-indigo: #4f46e5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--auth-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(1.25rem + env(safe-area-inset-top, 0px)) calc(1rem + env(safe-area-inset-right, 0px))
        calc(1.25rem + env(safe-area-inset-bottom, 0px)) calc(1rem + env(safe-area-inset-left, 0px));
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 70, 229, 0.4) 0%, transparent 48%),
        radial-gradient(circle at 88% 82%, rgba(6, 182, 212, 0.35) 0%, transparent 48%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

.auth-card {
    width: 100%;
    max-width: 30rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 30px 70px -20px rgba(2, 6, 23, 0.55);
    padding: 2.2rem 2rem 2rem;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2.6rem 2.4rem 2.2rem;
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    max-height: 44px;
    max-width: 190px;
    object-fit: contain;
    display: inline-block;
}

.auth-eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--auth-orange);
    margin-bottom: 0.4rem;
}

.auth-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-ink);
}

.auth-sub {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--auth-muted);
}

.auth-email-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    background: rgba(234, 88, 12, 0.09);
    color: var(--auth-orange-deep);
    font-size: 0.78rem;
    font-weight: 700;
    word-break: break-all;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border-radius: 0.85rem;
    padding: 0.72rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
    border: 1px solid transparent;
}

.auth-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.auth-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.4rem;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 0.85rem;
    background: #f8fafc;
    padding: 0.75rem 0.9rem;
    font-size: 0.98rem;
    color: var(--auth-ink);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--auth-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-input-invalid {
    border-color: #fca5a5;
    background: #fef2f2;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-error {
    margin: 0.35rem 0 0;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    box-shadow: 0 12px 26px -8px rgba(79, 70, 229, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.65);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-orange {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    box-shadow: 0 12px 26px -8px rgba(234, 88, 12, 0.55);
}

.auth-btn-orange:hover {
    box-shadow: 0 16px 32px -8px rgba(234, 88, 12, 0.65);
}

.auth-btn-ghost {
    background: transparent;
    color: var(--auth-indigo);
    box-shadow: none;
    border: 1px solid rgba(79, 70, 229, 0.3);
    margin-top: 0.7rem;
}

.auth-btn-ghost:hover {
    background: rgba(79, 70, 229, 0.06);
    filter: none;
    box-shadow: none;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.1rem;
    font-size: 0.8rem;
}

.auth-link {
    color: var(--auth-indigo);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-muted {
    color: var(--auth-muted);
}

.auth-hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-code {
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.42em;
    padding-left: 0.42em;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--auth-line);
    border-radius: 0.9rem;
    background: #f8fafc;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.auth-code:focus {
    outline: none;
    border-color: var(--auth-indigo);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
