:root {
  --bg: #0E0F14;
  --card: #16171F;
  --text: #F3F4F8;
  --muted: #9AA0B0;
  --line: #2A2C38;
  --purple: #4F46E5;
  --purple-dark: #3730A3;
  --ok: #34D399;
  --err: #F87171;
  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Syne", "Instrument Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 70, 229, 0.28), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: #A5B4FC;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  border: 0;
}

.field > span,
.field > legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

input[type="email"]:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.28);
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.choice + .choice { margin-top: 8px; }

.choice:has(input:checked) {
  border-color: var(--purple);
  background: rgba(79, 70, 229, 0.12);
}

.choice input {
  accent-color: var(--purple);
  width: 16px;
  height: 16px;
}

button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--purple-dark); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

.form-msg {
  min-height: 1.25em;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
