/* BeamHello — auth pages (signin / signup / check-your-email).
   Reads design tokens; no theme overrides. Keeps the surface minimal so it
   feels like the marketing site, not a separate product. */

.auth {
  position: relative;
  min-height: calc(100vh - 68px); /* header height */
  display: grid; place-items: center;
  padding: 56px 24px 96px; overflow: hidden;
}

/* soft beam atmosphere behind the form — same vocabulary as the marketing hero
   aurora but quieter, so the form is the focus. */
.auth::before {
  content: ""; position: absolute; inset: -20% -10%;
  background: radial-gradient(60% 50% at 50% 0%, rgba(90,79,243,.14) 0%, transparent 65%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  max-width: 440px; width: 100%;
  background: var(--bh-surface); border: 1px solid var(--bh-line);
  border-radius: var(--bh-r-xl); padding: 40px 36px 32px;
  box-shadow: var(--bh-shadow-md);
}

.auth-card h1 {
  font-family: var(--bh-font-display); font-weight: 600;
  font-size: 36px; line-height: 1.05; letter-spacing: -0.02em;
  margin: 4px 0 12px; color: var(--bh-ink); text-wrap: balance;
}
.auth-sub {
  font-size: 16px; line-height: 1.55; color: var(--bh-ink-soft);
  margin: 0 0 28px; text-wrap: pretty;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .bh-field > span {
  font-family: var(--bh-font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bh-muted);
}

.auth-help { font-size: 14px; line-height: 1.45; color: var(--bh-muted); margin: 4px 2px 0; min-height: 20px; }
.auth-help.is-error { color: var(--bh-error); }
.auth-help.is-success { color: var(--bh-success); }

.auth-foot {
  font-size: 13.5px; color: var(--bh-muted); text-align: center;
  margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--bh-line);
}
.auth-foot a { color: var(--bh-beam); text-decoration: underline; text-underline-offset: 3px; }

/* Check-your-email confirmation state (same surface, different content) */
.auth-card.is-sent .auth-form,
.auth-card.is-sent .auth-sub { display: none; }
.auth-sent {
  display: none; flex-direction: column; gap: 18px; align-items: center;
  text-align: center; padding: 12px 0 6px;
}
.auth-card.is-sent .auth-sent { display: flex; }
.auth-sent-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
}
.auth-sent-mark i, .auth-sent-mark svg { color: var(--bh-beam); }
.auth-sent .email-chip {
  display: inline-block; padding: 6px 14px; border-radius: var(--bh-r-pill);
  background: var(--bh-bg); border: 1px solid var(--bh-line);
  font-family: var(--bh-font-mono); font-size: 13px; color: var(--bh-ink);
}

@media (max-width: 520px) {
  .auth-card { padding: 32px 22px 26px; }
  .auth-card h1 { font-size: 30px; }
}
