/* Sign in, sign up and the first-run welcome pages. Colours come from the theme tokens only. */
.auth-body .foot-site { margin-top: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 120px); min-height: max(560px, calc(100dvh - 120px)); }
.auth-form { display: flex; flex-direction: column; padding: clamp(20px, 4vw, 40px); background: var(--surface); }
.auth-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.auth-box { width: min(100%, 440px); margin: auto; padding: 32px 0; }
.auth-box h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 10px; }
.auth-lede { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }
.auth-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--can-bg); color: var(--can-fg); border: 1px solid var(--can-bd); line-height: 1.45; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border-radius: 12px; background: var(--grad); color: var(--accent-ink, white); font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: var(--soft); }
.auth-google:hover { filter: brightness(1.06); }
.auth-google svg { background: white; border-radius: 6px; padding: 3px; box-sizing: content-box; }
.auth-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.auth-facts li { position: relative; padding-left: 24px; }
.auth-facts li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: var(--cov-fg); }
.auth-small { margin: 22px 0 0; font-size: .82rem; color: var(--muted); }
.auth-side { position: relative; overflow: hidden; display: none; background: var(--grad-hero); color: white; }
@media (min-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .auth-side { display: grid; place-items: center; } }
.auth-rings span { position: absolute; left: 50%; top: 42%; border-radius: 50%; border: 1px solid color-mix(in srgb, white 14%, transparent); transform: translate(-50%, -50%); }
.auth-rings span:nth-child(1) { width: 560px; height: 560px; }
.auth-rings span:nth-child(2) { width: 860px; height: 860px; }
.auth-rings span:nth-child(3) { width: 1180px; height: 1180px; }
.auth-side-inner { position: relative; display: grid; justify-items: center; gap: 34px; padding: 32px; width: min(100%, 460px); }
.auth-mark { width: 120px; height: auto; }
.auth-card { position: relative; width: 100%; min-height: 330px; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px 26px 44px; box-shadow: var(--shadow-lg); text-align: center; }
.auth-slide { margin: 0; display: none; justify-items: center; gap: 4px; }
.auth-slide.is-on { display: grid; }
.auth-avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: var(--accent-ink, white); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.auth-slide figcaption { display: grid; gap: 2px; }
.auth-slide figcaption span { color: var(--muted); font-size: .9rem; }
.auth-slide blockquote { margin: 14px 0 0; line-height: 1.55; font-size: .98rem; }
.auth-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.auth-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; min-height: 0; }
.auth-dot.is-on { background: var(--accent); }

/* Welcome (first run) */
.welcome { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 40px; }
.wl-steps { display: flex; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wl-steps .is-on { color: var(--accent); }
.welcome h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 8px; }
.welcome .lede { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }
.wl-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.wl-choice { text-align: left; display: grid; gap: 6px; padding: 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.wl-choice:hover, .wl-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.wl-choice strong { font-size: 1.1rem; }
.wl-choice span { color: var(--muted); line-height: 1.45; }
.wl-form { display: grid; gap: 14px; }
.wl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.wl-plan { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 16px; padding: 22px; display: grid; gap: 10px; }
.wl-plan h2 { margin: 0; font-size: 1.3rem; }
.wl-plan ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.wl-more { margin-top: 18px; display: grid; gap: 10px; }
.wl-status { color: var(--muted); min-height: 1.4em; }
.wl-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-tool { padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.wl-tool:hover { border-color: var(--accent); color: var(--accent); }
