/* ==========================================================================
   Sign-in and password pages (templates/registration/): a centred card on the
   page background, with the logo above it. Reuses the tokens, .card, .btn,
   .field and .input from dashboard.css.
   ========================================================================== */

body.auth-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.auth-page .site-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4); }

.auth-theme-toggle { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--text-muted); }
.auth-theme-toggle:hover { color: var(--text); background: var(--surface-2); }

.auth { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4); }

.auth__brand { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.auth__mark { width: 36px; height: 36px; }
.auth__name { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.auth__tag {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 7px;
}

.auth__card { padding: var(--space-5); gap: var(--space-4); border-top: 3px solid var(--accent); }
.auth__title { font-size: 1.25rem; }
.auth__lead { margin: 0; overflow-wrap: anywhere; }
.auth__lead strong { color: var(--text); font-weight: 600; }
.auth__note { margin: 0; text-align: center; font-size: 0.82rem; }

.auth-form { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.auth-form .input { min-height: 40px; padding: 0 var(--space-3); font-size: 0.95rem; }
.auth-field { gap: 6px; }
.auth-field--error .input { border-color: var(--danger); }
.auth-form__submit { width: 100%; min-height: 40px; font-size: 0.95rem; }

.auth-error { margin: 0; color: var(--danger); font-size: 0.8rem; }
.auth-help { font-size: 0.78rem; }
.auth-help ul { margin: 2px 0 0; padding-left: 1.1em; }

.auth-alert {
  padding: var(--space-3); border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger); font-size: 0.85rem; font-weight: 500;
}
.auth-alert p { margin: 0; }
