/* Plain and legible: dark text on white, one accent colour. */
:root {
  --text: #14161a;
  --muted: #5a6170;
  --line: #d6d9df;
  --background: #ffffff;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --problem: #b3261e;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 16px;
}

.brand {
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.25;
}

p { margin: 0 0 16px; }

.muted, .hint { color: var(--muted); }
.hint { font-size: 0.9rem; margin-top: 8px; }

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

input {
  display: block;
  width: 100%;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

#code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

button[type="submit"], button.primary {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

button[disabled] { opacity: 0.6; cursor: wait; }

button.link {
  padding: 0;
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.problem {
  margin-top: 12px;
  color: var(--problem);
}

fieldset.accounts {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

fieldset.accounts legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.account-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 400;
}

.account-choice input { width: auto; }

.turnstile { margin-top: 16px; min-height: 65px; }

a { color: var(--accent); }

.account { margin: 0 0 24px; }
.account h2 { margin: 0 0 8px; font-size: 1.15rem; }
ul.apps { list-style: none; margin: 0; padding: 0; }
.app-row {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.app-row h3 { margin: 0 0 4px; font-size: 1rem; }
.app-row p { margin: 0 0 8px; }
.app-row.highlight { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.actions label { margin-top: 8px; font-weight: 400; font-size: 0.9rem; }

button.secondary, button.danger {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
button.secondary { color: var(--accent); }
button.danger { color: var(--problem); }

[hidden] { display: none !important; }
