/* ── Page shell ──────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 72px;
    background: radial-gradient(ellipse at 60% 0%, #15242c 0%, #070d11 60%);
}

/* ── Card ────────────────────────────────────────── */
.auth-box {
    width: 100%;
    max-width: 420px;
    background: #0d1820;
    border: 1px solid #1f3140;
    border-radius: 18px;
    padding: 48px 40px 42px;
    box-shadow: 0 40px 100px #000d;
}

/* ── Logo ────────────────────────────────────────── */
.auth-logo {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.auth-logo span { color: var(--gold); }
.auth-tagline {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ── Icon circle ─────────────────────────────────── */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #221a0e, #0b1318);
    border: 1px solid #7a611e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 22px;
}

/* ── Heading ─────────────────────────────────────── */
.auth-box h1 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 6px;
}
.auth-subtitle {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ── Field ───────────────────────────────────────── */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.field label {
    font-size: 11px;
    font-weight: 700;
    color: #8fa0aa;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.field input {
    background: #0b161e;
    border: 1px solid #243240;
    color: #fff;
    border-radius: 9px;
    padding: 13px 14px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px #f5bd3220;
}
.field input::placeholder { color: #445a68; }
.field.invalid input {
    border-color: #c53030;
    box-shadow: 0 0 0 3px #c5303018;
}
.err-msg {
    display: none;
    font-size: 11px;
    color: #f87171;
}
.field.invalid .err-msg { display: block; }

/* ── Submit button ───────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ffd65d, #e9aa20);
    color: #0a0d0f;
    font-size: 15px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    letter-spacing: .4px;
    transition: filter .2s, transform .12s, box-shadow .2s;
    box-shadow: 0 4px 24px #f5bd3240;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover { filter: brightness(1.08); box-shadow: 0 6px 32px #f5bd3255; }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; filter: none; }

/* ── Back link ───────────────────────────────────── */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.back-link i { font-size: 12px; }

/* ── Divider ─────────────────────────────────────── */
.divider {
    height: 1px;
    background: #1d2f3c;
    margin: 22px 0;
}

/* ── Success state ───────────────────────────────── */
#successState {
    display: none;
    text-align: center;
}
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2018, #0e2d1e);
    border: 1px solid #1a6b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4ade80;
    margin: 0 auto 22px;
    animation: popIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
#successState h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 10px;
    color: #fff;
}
#successState p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 26px;
}
#successState .email-display {
    display: inline-block;
    background: #0b161e;
    border: 1px solid #243240;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 26px;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #2a3d4a;
    color: #9aabb5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── Notice ──────────────────────────────────────── */
.notice {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 18px;
}
.notice.error   { background: #2a0e0e; border: 1px solid #6b1a1a; color: #f87171; }
.notice.success { background: #0a2018; border: 1px solid #1a6b3a; color: #4ade80; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 500px) {
    .auth-box { padding: 32px 22px 28px; }
}