/* The portal's account pages: plain, readable, large targets, light and dark. */
:root {
  --text: #1b1b19;
  --muted: #5e5e58;
  --surface: #ffffff;
  --page: #f4f4f2;
  --line: #d6d6d0;
  --accent: #2b5a8a;
  --problem: #a32a12;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2ee;
    --muted: #c8c8c0;
    --surface: #1f1f1d;
    --page: #151514;
    --line: #3d3d39;
    --accent: #7fb2e5;
    --problem: #ff8a70;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 1rem/1.5 "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.15rem; }

main { max-width: 32rem; margin: 1.5rem auto; padding: 0 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.25rem;
}

h1 { font-size: 1.4rem; margin: 0 0 0.75rem; }

label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }

input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

button {
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 0.4rem;
  cursor: pointer;
}

button.quiet { margin: 0; color: var(--accent); background: transparent; border: 1px solid var(--line); min-height: 2.25rem; }

.hint { color: var(--muted); font-size: 0.92rem; }

.problem { color: var(--problem); font-weight: 600; }

ul.organizations { list-style: none; padding: 0; }

ul.organizations li { padding: 0.6rem 0; border-top: 1px solid var(--line); }

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

button.secondary { color: var(--accent); background: transparent; border: 1px solid var(--accent); }

form.passkey { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }

ol.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; }

.banner { border-left: 4px solid var(--accent); padding: 0.5rem 0.75rem; background: var(--page); margin-bottom: 1rem; }

table.passkeys { width: 100%; border-collapse: collapse; }

table.passkeys td { padding: 0.4rem 0; border-top: 1px solid var(--line); }

.code { font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem; letter-spacing: 0.1em; }

.prose h2 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }

.foot { max-width: 32rem; margin: 0 auto 2rem; padding: 0 1rem; color: var(--muted); font-size: 0.9rem; }
.foot a { color: var(--muted); }
