:root {
  --auth-ink: #1a1a1a;
  --auth-slate: #445773;
  --auth-muted: #707b94;
  --auth-line: #d5dae3;
  --auth-paper: #fff;
  --auth-soft: #f5f6f8;
  --auth-head: 'Cormorant Garamond', Georgia, serif;
  --auth-body: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--auth-body);
  background:
    linear-gradient(160deg, #eef1f6 0%, #f8f9fb 40%, #fff 100%);
  color: var(--auth-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--auth-paper);
  border: 1px solid var(--auth-line);
  padding: 36px 32px;
  box-shadow: 0 18px 50px rgba(30, 40, 60, 0.08);
}
.auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--auth-head);
  font-weight: 500;
  font-size: 32px;
  color: var(--auth-slate);
  letter-spacing: 0.04em;
}
.auth-card .auth-sub {
  margin: 0 0 28px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.5;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-muted);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--auth-line);
  background: var(--auth-soft);
  padding: 0 12px;
  font: inherit;
}
.auth-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: var(--auth-slate);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
}
.auth-btn:disabled { opacity: 0.6; cursor: wait; }
.auth-btn.secondary {
  background: transparent;
  color: var(--auth-slate);
  border: 1px solid var(--auth-line);
}
.auth-error { color: #a33; font-size: 14px; margin-top: 12px; }
.auth-ok { color: #2f6b4f; font-size: 14px; margin-top: 12px; }
.auth-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
}
.auth-links a { color: var(--auth-slate); }
.auth-step { display: none; }
.auth-step.is-active { display: block; }

@media (max-width: 480px) {
  body.auth-page { padding: 16px; align-items: flex-start; padding-top: 28px; }
  .auth-card { padding: 24px 18px; }
  .auth-card h1 { font-size: 28px; }
  .auth-links { flex-direction: column; gap: 10px; }
  .auth-links a { min-height: 40px; display: inline-flex; align-items: center; }
}
