/* No external fonts, no CDN: the sign-up page is the one thing that has to work
   on a cold connection from a machine that has never seen this server before. */

:root {
  --ink:      #1d2430;
  --muted:    #5d6b7f;
  --line:     #d8dfe8;
  --field:    #ffffff;
  --ground:   #eef1f6;
  --card:     #ffffff;
  --accent:   #2f6f4f;
  --accent-2: #3d8a63;
  --bad:      #b3392f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:    #e6ecf3;
    --muted:  #98a6b8;
    --line:   #333d4c;
    --field:  #1b212b;
    --ground: #11151c;
    --card:   #191f28;
    --accent: #5aa87c;
    --accent-2: #6dbf90;
    --bad:    #e2776b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.6 "Segoe UI", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

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

header { margin-bottom: 24px; }

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }

.lead { margin: 0; color: var(--muted); }

.banner:empty { display: none; }
.banner {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--bad);
  color: var(--bad);
  font-size: 14px;
}

.field {
  display: block;
  margin-bottom: 18px;
  border: 0;
  padding: 0;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hint {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.err {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--bad);
}

.picks { display: flex; gap: 8px; flex-wrap: wrap; }

.pick {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.pick:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.pick input { accent-color: var(--accent); }

/* The honeypot: off-screen rather than display:none, because some bots skip
   fields they can tell are hidden. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--accent-2); }

.steps { margin: 20px 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 6px; }
.steps code {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}

.note {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ground);
  font-size: 13.5px;
  color: var(--muted);
}

.again { color: var(--accent); }
