/* The full-screen sign-in / sign-up screen (auth.js), on the website and in the web app. */
@font-face { font-family: Sora; src: url("/fonts/Sora-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.auth {
  --a-bg: #f6f3ec; --a-panel: #ffffff; --a-text: #12141a; --a-text2: #5c6068; --a-border: #ddd7cb; --a-field: #f3efe6;
  --a-sky: #3fa9f5; --a-sky-ink: #0e0f14; --a-link: #0b6cb5; --a-ok: #1f7a4a; --a-error: #b43c2c;
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(320px, 44%) 1fr;
  background: var(--a-bg); color: var(--a-text); font-family: Sora, system-ui, sans-serif; overflow: auto;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth {
    --a-bg: #14161b; --a-panel: #1a1c22; --a-text: #f3f0e9; --a-text2: #a9aeb8; --a-border: #3a3f4b; --a-field: #23262e;
    --a-link: #65baff; --a-ok: #5fd39a; --a-error: #ff8a79;
  }
}
:root[data-theme="dark"] .auth {
  --a-bg: #14161b; --a-panel: #1a1c22; --a-text: #f3f0e9; --a-text2: #a9aeb8; --a-border: #3a3f4b; --a-field: #23262e;
  --a-link: #65baff; --a-ok: #5fd39a; --a-error: #ff8a79;
}

.auth-brand {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 48px; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #3fa9f5 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #ff8a79 0%, transparent 55%),
    radial-gradient(80% 60% at 90% 10%, #ffc233 0%, transparent 50%), #1b1d2a;
}
.auth .auth-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 20px; }
.auth-logo img { border-radius: 9px; }
.auth-pitch h2, .auth-panel h1 { font-family: "Space Grotesk", Sora, system-ui, sans-serif; font-weight: 500; }
.auth-pitch h2 { margin: 0 0 24px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.auth-pitch h2 span { color: #ffd76a; }
.auth-pitch ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; color: #ffffffd9; }
.auth-pitch li { display: flex; gap: 10px; align-items: baseline; }
.auth-pitch li::before { content: "✦"; color: #ffd76a; }
.auth-fine { margin: 0; font-size: 13px; color: #ffffffa6; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-panel { width: min(460px, 100%); }
.auth-panel h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.01em; }
.auth-lead { margin: 0 0 24px; color: var(--a-text2); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 12px; background: var(--a-field); }
.auth-tabs button { border: 0; border-radius: 9px; padding: 10px; background: none; color: var(--a-text2); font: inherit; font-weight: 500; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--a-panel); color: var(--a-text); box-shadow: 0 1px 4px #0000001f; }

.auth-google { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid var(--a-border);
  border-radius: 12px; background: var(--a-panel); color: var(--a-text); font: inherit; font-weight: 500; cursor: pointer; }
.auth-google:hover { border-color: var(--a-text2); }
.auth-google svg { width: 20px; height: 20px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--a-text2); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--a-border); }

.auth-form, .beta-waitlist form { display: grid; gap: 16px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.auth-field { display: grid; gap: 6px; min-width: 0; }
.auth-field label { font-size: 13px; font-weight: 500; }
.auth input:not([type=checkbox]) { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--a-border); border-radius: 10px;
  background: var(--a-field); color: var(--a-text); font: inherit; }
.auth input:focus-visible { outline: 2px solid var(--a-sky); outline-offset: 1px; }
.auth-at { position: relative; }
.auth-at span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--a-text2); }
.auth-at input:not([type=checkbox]) { padding-left: 30px; }
.auth-password { position: relative; }
.auth-password input:not([type=checkbox]) { padding-right: 46px; }
.auth-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: grid; place-items: center; border: 0;
  border-radius: 8px; background: none; color: var(--a-text2); cursor: pointer; }
.auth-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth-eye[aria-pressed="true"] { color: var(--a-text); }
.auth-hint { margin: 0; min-height: 1em; font-size: 12px; color: var(--a-text2); }
.auth-hint[data-kind="ok"] { color: var(--a-ok); }
.auth-hint[data-kind="error"] { color: var(--a-error); }
.auth-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.auth-meter span { height: 4px; border-radius: 2px; background: var(--a-border); }
.auth-meter[data-score="1"] span[data-on="true"] { background: var(--a-error); }
.auth-meter[data-score="2"] span[data-on="true"] { background: #e3a008; }
.auth-meter[data-score="3"] span[data-on="true"], .auth-meter[data-score="4"] span[data-on="true"] { background: var(--a-ok); }
.auth-forgot { justify-self: end; font-size: 13px; }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--a-text2); }
.auth-check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--a-sky); }
.auth a, .auth-link { color: var(--a-link); }
.auth-link { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-human:empty { display: none; }
.auth-submit { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--a-sky); color: var(--a-sky-ink); font: inherit;
  font-weight: 600; cursor: pointer; }
.auth-submit:disabled { opacity: .5; cursor: default; }
.auth-status { margin: 16px 0 0; min-height: 1.2em; font-size: 14px; }
.auth-status[data-kind="error"] { color: var(--a-error); }
.auth-status[data-kind="ok"] { color: var(--a-ok); }
.auth-spots { margin: -8px 0 16px; font-size: 13px; color: var(--a-text2); }
.auth .beta-waitlist { display: grid; gap: 12px; }
.auth .beta-waitlist h3 { margin: 0; font-size: 18px; }
.auth .beta-waitlist p { margin: 0; color: var(--a-text2); }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { padding: 24px 20px; gap: 16px; }
  .auth-pitch h2 { font-size: 28px; margin-bottom: 0; }
  .auth-pitch ul, .auth-fine { display: none; }
  .auth-main { padding: 28px 16px 40px; place-items: start center; }
}
@media (max-width: 420px) { .auth-row { grid-template-columns: 1fr; } }
