/* ===== AUTH PAGES — register, forgot and reset password =====
   One frosted sheet floating over the same dark-teal world as the marketing
   page. Tokens, base and buttons come from signal-glass.css (loaded first). */

.auth-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--bg) 0%, var(--surface) 52%, var(--bg) 100%);
}

.auth-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 18%, rgb(var(--mint-rgb) / 0.11), transparent 50%),
    radial-gradient(circle at 12% 88%, rgb(var(--gold-rgb) / 0.06), transparent 45%);
  pointer-events: none;
}

.auth-sheet {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border: 1px solid var(--glass-edge-strong);
  border-radius: var(--radius-sheet);
  background: var(--sheen), var(--glass-bg-strong);
  backdrop-filter: var(--frost);
  -webkit-backdrop-filter: var(--frost);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}

/* Same wordmark as the marketing nav: pointy-top hex + name */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.auth-brand::before {
  content: '';
  width: 14px;
  height: 16px;
  background: var(--mint);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.auth-brand a {
  color: var(--ink);
  text-decoration: none;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.auth-kicker::before {
  content: '// ';
  letter-spacing: 0;
}

.auth-lede {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
}

.input-field {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-ctl);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.25);
  font-family: var(--font-body);
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.input-field:focus {
  outline: none;
  border-color: rgb(var(--mint-rgb) / 0.7);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgb(var(--mint-rgb) / 0.18);
}

.auth-form .btn-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  font-size: 15px;
}

/* Filled by the page script (danger for errors, mint for success via inline
   colour); collapses to nothing while empty */
.error-message {
  font-size: 14px;
  line-height: 1.45;
}

.error-message:empty { display: none; }

.login-help {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-screen { align-items: flex-start; padding-top: 20px; }
  .auth-sheet { padding: 28px 20px 24px; }
  .auth-title { font-size: 1.65rem; }
}
