/* account.adelaidelive.app — one sign-in for the Adelaide pages.
   The same palette and type as the pages it serves. */
:root {
  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg: #f3f1ec; --surface: #faf8f4; --ink: #1b1a17; --dim: #6b655c;
  --line: rgba(27, 26, 23, 0.12); --line-strong: rgba(27, 26, 23, 0.3);
  --accent: #2f6fb0; --bad: #c0392b; --good: #1d8a6b;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="day"] {
    color-scheme: dark;
    --bg: #0f141a; --surface: #161d25; --ink: #e9ecef; --dim: #98a1ab;
    --line: rgba(233, 236, 239, 0.12); --line-strong: rgba(233, 236, 239, 0.3);
    --accent: #5a9fe0; --bad: #f0655a; --good: #4fcf9f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: clamp(16px, 0.5vw + 11px, 19px); line-height: 1.45; }
body { margin: 0; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem var(--gutter); font-family: var(--font-mono); font-size: 0.8rem; }
.brand { text-decoration: none; font-weight: 500; }
.top nav a { color: var(--dim); text-decoration: none; }
main { display: grid; place-items: start center; padding: clamp(1rem, 5vh, 3rem) var(--gutter); width: min(100%, 34rem); margin: 0 auto; gap: 0.8rem; }
.card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0.9rem; padding: clamp(1.2rem, 4vw, 2rem); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variation-settings: "opsz" 60; }
h2 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 1.6rem 0 0.5rem; font-weight: 400; }
.hint { color: var(--dim); margin-top: 0.4rem; line-height: 1.4; }
.form { display: grid; gap: 0.9rem; margin-top: 1.3rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.form input[type=email], .form input[type=password], .form input[type=text] { font: inherit; padding: 0.7rem 0.8rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0.6rem; width: 100%; }
.note { font-size: 0.78rem; color: var(--dim); }
.back { margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
input.primary, .primary { font: inherit; font-weight: 600; padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); border: 0; border-radius: 0.6rem; cursor: pointer; }
input.primary:hover { opacity: 0.9; }
.secondary button, button.secondary, .secondary input { font: inherit; padding: 0.6rem 1rem; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0.6rem; cursor: pointer; margin-top: 1.4rem; }
.alt { margin-top: 0.9rem; font-size: 0.88rem; color: var(--dim); }
.split { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.split h2 { margin: 0 0 0.4rem; }
a.button { display: inline-block; margin-top: 0.9rem; font-weight: 600; text-decoration: none;
           padding: 0.65rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 0.6rem; }
a.button:hover { border-color: var(--ink); }
a.button.google { display: inline-flex; align-items: center; gap: 0.6rem; width: 100%; justify-content: center; margin-top: 0; }
.or-line { display: flex; align-items: center; gap: 0.8rem; margin: 1.3rem 0 1rem; color: var(--dim); font-family: var(--font-mono); font-size: 0.72rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkish { font: inherit; font-size: 0.8rem; background: transparent; border: 0; padding: 0 0 0 0.6rem; color: var(--dim); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--ink); }
form.inline { display: inline; }
.flash { width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.6rem; font-size: 0.9rem; }
.flash.alert { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); }
.flash.notice { background: color-mix(in srgb, var(--good) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--line)); }
.rows { display: grid; gap: 0.4rem; margin-top: 1.2rem; }
.rows > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--dim); }
.settings { display: grid; gap: 0.35rem; }
.settings li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; padding: 0.5rem 0.7rem; background: var(--bg); border: 1px solid var(--line); border-radius: 0.5rem; }
.settings b { font-family: var(--font-mono); font-weight: 500; }
.settings span { color: var(--dim); }
.foot { padding: 1rem var(--gutter) 1.4rem; font-size: 0.78rem; color: var(--dim); line-height: 1.5; width: min(100%, 40rem); margin: 0 auto; }
.foot a { color: var(--dim); }

/* Closing the account: it should not look like the button you press by accident. */
input.danger, .danger { font: inherit; font-weight: 600; padding: 0.75rem 1rem; background: transparent; color: #b23b2e; border: 1px solid #b23b2e; border-radius: 0.6rem; cursor: pointer; }
input.danger:hover, .danger:hover { background: #b23b2e; color: var(--bg); }

/* Deleting the account is folded away until someone asks for it. */
.danger-zone summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone summary::after { content: ""; width: 0.42rem; height: 0.42rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-1px) rotate(45deg); transition: transform 0.15s ease; }
.danger-zone[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.danger-zone summary:hover { color: var(--ink); }
.danger-zone summary:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 4px; border-radius: 0.3rem; }
.danger-zone[open] summary { color: var(--ink); margin-bottom: 0.2rem; }
