/* Public signup page. Hand-written, no framework, ~1KB. */

/* VT323 — self-hosted from Google Fonts (latin subset). */
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/vt323-latin.woff2) format('woff2');
}

/* Scoped to the signup form page only (body.form-page). VT323 is a pixel/
   terminal font that reads small, so bump the base size on this page. */
body.form-page {
  font: 20px/1.5 'VT323', ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root {
  --bg: #0f172a;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --error: #b91c1c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #000000;
}
.card {
  width: 100%;
  max-width: 30rem;
  background: var(--card);
  border-radius: 0;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
h1 { margin: 0 0 0.5rem; font-size: 1.6rem; line-height: 1.2; }
.lede { margin: 0 0 1.5rem; color: var(--muted); }
.signup { display: grid; gap: 0.6rem; }
label { font-weight: 600; font-size: 0.9rem; }
input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0;
}
input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
button {
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
button:hover { background: #1d4ed8; }
button.danger { background: var(--error); }
button.danger:hover { background: #991b1b; }
.fine { margin: 1.25rem 0 0; font-size: 0.8rem; color: var(--muted); }
.error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
  border-radius: 10px;
}
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
