/* =====================================================================
 * Login / forgot / reset / 404 pages. Loaded after dashboard.css, which
 * provides the colour tokens, buttons and inputs.
 * ===================================================================== */
body.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-toggles { position: fixed; top: 16px; right: 16px; display: flex; gap: 8px; }

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 32px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.auth-logo { font-family: 'Montserrat', 'Inter', sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; }
.auth-logo span { color: var(--accent); }
.auth-sub { margin: 6px 0 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }

.auth-icon {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.6rem;
}
.auth-title { margin-bottom: 8px; font-size: 1.25rem; }
.auth-desc { margin: 0 0 24px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.field { position: relative; margin-bottom: 14px; text-align: left; }
.field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.field .form-input { height: 46px; padding-left: 42px; }
.field .form-input.has-toggle { padding-right: 46px; }
.toggle-pw {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px;
    border: none; border-radius: 6px;
    background: transparent; color: var(--text-muted);
    cursor: pointer;
}
.toggle-pw:hover { color: var(--text); background: var(--surface-2); }

.auth-card .btn { width: 100%; height: 46px; margin-top: 6px; letter-spacing: 0.04em; }

.auth-msg { display: none; margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; text-align: left; }
.auth-msg.error { display: block; color: var(--danger); background: var(--danger-soft); }
.auth-msg.success { display: block; color: var(--success); background: var(--success-soft); }

.auth-links { margin-top: 22px; font-size: 13px; }
.auth-links a { font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

.error-code { font-size: 6rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
