:root {
  --bg: #010603;
  --ink: #b9ffd0;
  --head: #eafff1;
  --muted: #6fbf8a;
  --green: #19ff74;
  --line: #17803f;
  --bad: #ff8d7a;
  --halo: 0 0 3px #000, 0 0 8px #000, 0 0 16px #000;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
/* Computer types in one row, and the table of builds under them. */
.radios { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.radios .check { margin-top: 0; }
table.builds { border-collapse: collapse; margin-top: 8px; }
table.builds th, table.builds td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
table.builds th { color: var(--green); font-weight: 400; white-space: nowrap; }
table.builds input[type=radio] { margin: 0; accent-color: var(--green); }
table.builds { table-layout: auto; width: max-content; max-width: 100%; word-break: break-word; }
table.builds td:first-child, table.builds th:first-child { width: 1%; }
/* The Instructions box: a title and the steps inside it, the numbers inside the box too. */
.instructions h2 { margin: 0 0 8px; font-size: 16px; color: var(--green); }
.instructions ol.steps { margin: 0; padding-left: 1.8em; }
.instructions ol.steps li { margin: 0 0 6px; }
.instructions .note { margin: 8px 0 0; }
main, main > form, main > form > fieldset { min-width: 0; }
.radios .check { max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--mono);
  text-shadow: var(--halo);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
}
#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
main > form { display: flex; flex-direction: column; gap: 14px; }
/* Each block of text is its own black box with a white outline, with a gap
   between boxes so the rain shows through. */
header.box, main > p, main > h2, main > ul, main > ol,
main > div:not([popover]),
main > form > *:not(.link, [type=hidden]) {
  margin: 0;
  padding: 14px 18px;
  background: #000;
  border: 1px solid #fff;
}
main > form > .row { gap: 16px; }
main > form > fieldset { padding-top: 6px; }
main > form > button, main > form > .check { margin: 0; }
.field label { margin: 0 0 2px; }
header.box .brand { margin: 0 0 2px; }
.brand {
  margin: 0 0 2px;
  color: var(--head);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 0 10px rgba(25, 255, 116, 0.55), var(--halo);
}
h1 {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}
h1 + .switch { margin: 0; line-height: 1.3; text-align: center; }
.switch, .note { color: var(--muted); }
.note { font-size: 14px; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
label {
  display: block;
  margin: 18px 0 2px;
  color: var(--green);
  font-size: 14px;
}
.opt { color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password] {
  width: 100%;
  padding: 8px 0;
  font: inherit;
  font-size: 18px;
  color: var(--head);
  caret-color: var(--green);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-shadow: var(--halo);
}
input:focus { border-bottom-color: var(--green); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; gap: 0; } }
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0 0;
  padding: 0;
}
legend { padding-right: 10px; color: var(--green); font-size: 14px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 15px;
  margin-top: 14px;
}
.check input { margin-top: 5px; width: 16px; height: 16px; flex: none; accent-color: var(--green); }
button, .button {
  display: inline-block;
  width: auto;
  align-self: center;
  margin-top: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--head);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 0;
  cursor: pointer;
  text-shadow: var(--halo);
  box-shadow: 0 0 12px rgba(25, 255, 116, 0.35);
}
button:hover:not(:disabled), .button:hover { color: var(--green); box-shadow: 0 0 20px rgba(25, 255, 116, 0.6); }
.button + .button, form + .button { margin-top: 14px; }
button.link {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  color: var(--green);
  font-weight: 400;
  text-decoration: underline;
}
.logout { margin-top: 28px; }
.errors {
  padding-left: 34px;
  color: var(--bad);
}
.secret {
  margin: 0;
  color: var(--head);
  font-size: 20px;
  letter-spacing: 0.08em;
  word-break: break-all;
}
.steps { padding-left: 38px; }
.steps li { margin: 10px 0; }
@media (prefers-reduced-motion: reduce) {
  button, .button { transition: none; }
}
code { word-break: break-all; }
[popover] {
  width: min(26rem, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  color: var(--ink);
  background: #000;
  border: 1px solid #fff;
}
[popover]::backdrop { background: rgba(0, 0, 0, 0.6); }

/* A field is one short row: label on the left, input on the right. A box
   with one field is as wide as its label and input and sits in the middle;
   boxes with several fields, and the name row, line their labels up. */
.field { display: flex; align-items: center; gap: 12px; }
.field label { flex: 0 0 auto; margin: 0; line-height: 1.3; }
.field input { flex: 0 0 220px; width: 220px; min-width: 0; padding: 2px 0; }
.field.eq label { min-width: 10ch; }
main > form > .field {
  width: fit-content;
  max-width: 100%;
  align-self: center;
  padding: 8px 14px;
}
main > form > .row { padding: 8px 14px; }
main > form > .combo, main > form > fieldset {
  width: 380px;
  max-width: 100%;
  align-self: center;
  padding: 8px 14px;
}
.combo .field label, fieldset .field label { flex: 0 0 120px; }
.combo .field input, fieldset .field input,
.row .field input { flex: 1; width: auto; }
.row .field label { flex: 0 0 auto; }
.combo .field + .field, fieldset .field + .field, fieldset .row {
  margin-top: 6px;
}
.combo .note { margin: 6px 0 0; }
fieldset legend { float: left; width: 100%; margin: 0; padding: 0 0 6px; }
fieldset legend + * { clear: both; }
main > form > .check { justify-content: center; text-align: center; }
@media (min-width: 640px) {
  header.box { margin-left: -15%; margin-right: -15%; }
}
@media (max-width: 420px) {
  .field { flex-direction: column; align-items: stretch; gap: 0; }
  .field input { flex: 0 0 auto; width: 100%; }
  main > form > .field, main > form > .combo, main > form > fieldset {
    width: auto;
    align-self: stretch;
  }
  .combo .field label, fieldset .field label { flex-basis: auto; }
}
/* Main actions are solid green: the Log in box, every form's submit
   button, and the Continue links. */
main > form > .actions { padding: 6px 8px; width: fit-content; }
main > form > .actions { text-align: center; align-self: center; }
.go, main > form > button[type=submit], main > p > .button {
  display: inline-block;
  width: auto;
  align-self: center;
  margin: 0;
  color: #000;
  background: var(--green);
  border: 1px solid var(--green);
  text-shadow: none;
  box-shadow: 0 0 14px rgba(25, 255, 116, 0.5);
}
.actions .go { margin: 0 0 10px; }
.go:hover:not(:disabled), main > form > button[type=submit]:hover:not(:disabled),
main > p > .button:hover {
  background: var(--head);
  color: #000;
}
.actions .note { margin: 0 0 10px; text-align: center; }
main > p.switch { text-align: center; }
main > form.logout {
  margin: 0;
  padding: 10px 18px;
  background: #000;
  border: 1px solid #fff;
  text-align: center;
}
main > div p { margin: 0 0 10px; }
main > div p:last-child { margin-bottom: 0; }
.actions .switch { margin: 0; text-align: center; }
/* First and last name: half-length inputs so both fit in the one box, each
   label and input centred in its half. */
.names .field { justify-content: center; }
.names .field input { flex: 0 0 100px; width: 100px; }
@media (max-width: 420px) {
  .names .field input { flex: 0 0 auto; width: 100%; }
}

/* Verify pages */
.vbox form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vbox .note { margin: 0; text-align: center; }
.mask { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.mask input {
  width: 2ch;
  padding: 2px 0;
  font-size: 18px;
  text-align: center;
  border-bottom-color: var(--green);
}
.mask input[name=local] { width: 11ch; text-align: right; }
.vbox button.go { margin: 4px 0 0; }
button:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bar form { margin: 0; }
.btn {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--head);
  background: #000;
  border: 1px solid #fff;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
.btn:hover { color: var(--green); border-color: var(--green); }
.vbox button.go {
  width: auto;
  padding: 10px 18px;
  white-space: nowrap;
}
.vbox button.go:disabled:hover { color: #000; background: var(--green); box-shadow: none; }
.count { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.count b { color: var(--head); }
/* The six code boxes look like the four phone-digit boxes: small, centred,
   underlined in green. */
.slots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.slots input {
  width: 2ch;
  padding: 2px 0;
  font-size: 18px;
  text-align: center;
  border-bottom-color: var(--green);
}
.slots input:disabled { opacity: 0.4; }

/* The 2FA QR code: black on white at a size a phone camera reads easily. */
.qr { width: 220px; max-width: 100%; margin: 6px auto 12px; }
.qr svg { display: block; width: 100%; height: auto; }
