/* Auth pages (register / login / forgot / reset / verify-email). Reuses
   the existing dark/glass design tokens from tokens.css — no new palette,
   just a centered card layout these pages need that the marketing pages
   don't. */

.auth-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.auth-card h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.auth-card p.auth-sub {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.auth-field label {
  font-size: 0.82rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.auth-field input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.auth-field input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
  border-color: var(--accent-2);
}

.auth-field .hint {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0.2rem 0 1.3rem;
  cursor: pointer;
}

.auth-check input { margin-top: 0.25rem; flex: none; }
.auth-check a { color: var(--accent-2); }

.auth-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.auth-status {
  min-height: 1.2em;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.auth-status[data-tone="error"] { color: #ff9b9b; }
.auth-status[data-tone="success"] { color: var(--accent-2); }

.auth-links {
  margin-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.auth-links a { color: var(--accent-2); }

.auth-result-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-card { animation: auth-rise var(--dur-med) var(--ease-out); }
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
