:root {
  --bg: #1a1b1e;
  --bg-elev: #2b2d31;
  --bg-input: #1e1f22;
  --border: #3a3c41;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --danger: #f2555a;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(88, 101, 242, 0.18), transparent 70%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* Landing hero */
.hero { text-align: center; max-width: 560px; }

.wordmark {
  margin: 0;
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lede {
  margin: 16px 0 32px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards for the form flows */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

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

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

.field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input::placeholder { color: #6a6d73; }

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.35);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.check input { margin-top: 3px; accent-color: var(--accent); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 60ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

.hero-actions .btn { width: auto; min-width: 132px; }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.5);
}

.err {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
  min-height: 0;
}
.err:empty { display: none; }
.form-err { text-align: center; }

.notice {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
}
.notice h2 { margin: 0 0 8px; color: var(--text); font-size: 20px; }

.alt {
  margin: 20px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

a { color: #9aa4ff; }
a:hover { color: #c3c9ff; }

.invite { text-align: center; }
.invite .btn-primary { margin-top: 20px; }

.code {
  margin: 4px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.cf-turnstile { display: flex; justify-content: center; }

.hidden { display: none; }

@media (max-width: 480px) {
  .card { padding: 24px; border-radius: 12px; }
}
