/* Alpha Phone sign-in. Brand orange is #e85920; note that white text on it is
   about 3.6:1 and below AA, which is a known open item in STYLE_GUIDE.md. The
   darker #c2410c is used here for anything carrying text. */

:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e2e2e2;
  --brand: #c2410c;
  --bg: #f7f7f5;
  --card: #ffffff;
  --bad: #b42318;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}

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

h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

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

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

select, input {
  width: 100%;
  padding: 12px 12px;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

select:focus, input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

#msg {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--bad);
}

#msg.ok { color: #15803d; }

.foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --muted: #a5a5a5;
    --line: #383838;
    --bg: #131313;
    --card: #1d1d1d;
    --brand: #f97316;
    --bad: #f87171;
  }
  select, input { background: #262626; color: var(--ink); }
  button { color: #1a1a1a; }
}
