/* site/signup/signup.css: the sign-up screen. One purpose: a key. Built
   from the --ui-* tokens in /assets/craton-ui.css; the su-* parts are the
   screen's own layout. System fonts
   only; nothing here fetches anything. */

.su-main {
  min-height: calc(100vh - var(--ui-top-h));
  min-height: calc(100svh - var(--ui-top-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--ui-space-9) var(--ui-gutter) var(--ui-space-10);
  background:
    radial-gradient(60% 48% at 50% 0%, var(--ui-accent-soft), transparent 72%),
    var(--ui-bg);
}
.su-stage { width: 100%; max-width: 520px; }

/* The card: a floating surface on desktop, the bare page on phones. */
.su-card {
  padding: 44px 44px 36px; border-radius: var(--ui-radius-xl);
  background: var(--ui-surface); border: 1px solid var(--ui-line); box-shadow: var(--ui-shadow-2);
  text-align: center;
}
.su-card[hidden] { display: none; }

.su-glyph {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 20px; background: var(--ui-accent-soft); color: var(--ui-accent);
}
.su-glyph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.su-glyph-good { background: color-mix(in srgb, var(--ui-good) 14%, transparent); color: var(--ui-good); animation: ui-pop var(--ui-dur-slow) var(--ui-ease) both; }

.su-title {
  margin: 0; font: var(--ui-weight-bold) clamp(32px, 4vw, 42px) / 1.05 var(--ui-font-display);
  letter-spacing: var(--ui-tracking-display); color: var(--ui-ink); text-wrap: balance;
}
.su-title:focus { outline: none; }
.su-title:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 6px; border-radius: 8px; }
.su-lede { margin: 12px auto 0; max-width: 34ch; font-size: 18px; line-height: 1.45; color: var(--ui-ink-2); text-wrap: balance; }

/* ---------- the form ---------- */

.su-form { margin: 32px 0 0; text-align: left; }
.su-form .ui-field { margin-bottom: 16px; }
.su-form .ui-label { display: flex; justify-content: space-between; gap: 12px; }
.su-opt { font-weight: var(--ui-weight-medium); letter-spacing: 0; text-transform: none; color: var(--ui-faint); font-size: 13px; }
.su-form .ui-input { min-height: 52px; font-size: 17px; }
/* The busy button (aria-busy) is the design system's. */

.consent { margin: 16px auto 0; max-width: 40ch; font-size: 13.5px; line-height: 1.5; color: var(--ui-muted); }
.consent a { color: var(--ui-ink-2); }

.su-facts {
  list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--ui-line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  font-size: 13.5px; line-height: 1.3; color: var(--ui-muted);
}
.su-facts li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.su-facts svg {
  width: 30px; height: 30px; padding: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--ui-good) 13%, transparent);
  fill: none; stroke: var(--ui-good); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.su-problem { text-align: left; margin: 22px 0 0; }
.su-problem[hidden] { display: none; }
.su-problem pre { margin: 6px 0 0; font: 12.5px/1.5 var(--ui-font-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ui-ink-2); }

/* ---------- the key, revealed once ---------- */

.su-done { animation: ui-enter var(--ui-dur-slow) var(--ui-ease) both; }
.su-key { margin: 28px 0 0; }
.su-key .ui-label { margin: 0 0 10px; text-align: left; }
/* The key's well is the design system's .ui-secret. */
.su-key .ui-btn { margin-top: 14px; }
.su-once { margin: 14px auto 0; max-width: 42ch; font-size: 15px; line-height: 1.45; color: var(--ui-ink-2); }
.su-once b { color: var(--ui-ink); }

.su-after { margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--ui-line); text-align: left; }
.su-after .ui-code { margin: 0 0 22px; }
.su-after .ui-code pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.su-after .ui-group { margin: 0 0 22px; }
.su-after .ui-group:last-child { margin-bottom: 0; }
.su-after .ui-group-head { padding: 0 4px; }
.su-after a.ui-row { font-weight: var(--ui-weight-medium); }

/* ---------- the quiet footnote under the card ---------- */

.su-about { margin: 22px auto 0; max-width: 100%; }
.su-about > summary { margin: 0 auto; }
.su-about { text-align: center; }
.su-about .ui-quiet-body { text-align: left; margin: 6px auto 0; padding: 0 4px; font-size: 14px; color: var(--ui-muted); }
.su-about .ui-code { margin: 4px 0 14px; }

/* ---------- phones: no card, the page is the card ---------- */

@media (max-width: 560px) {
  .su-main {
    justify-content: flex-start; padding: var(--ui-space-8) var(--ui-gutter) var(--ui-space-9);
    min-height: 0;
  }
  .su-card { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .su-glyph { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 18px; }
  .su-glyph svg { width: 27px; height: 27px; }
  .su-title { font-size: 34px; }
  .su-lede { font-size: 17px; }
  .su-form { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .su-done, .su-glyph-good { animation: none; }
}
