/* The sign-in page (/sign-in), one page for new and returning people (apiplat-auth, owner 2026-11-02): the logo
   top left, a headline, one grey line, a white "Continue with Google" button, "or", an email field and "Email me a sign-in link",
   and one quiet line about the Terms and Privacy Policy. Calm black, flat greys, pill buttons, pure-white primary. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0a0a0a; color: #fafafa; }
html { color-scheme: dark; }
body {
  font: 14px/1.5 "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a, button, [role="button"], label[for], summary { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 16px/1 "Google Sans Flex", "Google Sans", "Geist", system-ui, sans-serif; letter-spacing: -0.01em; color: #fff; text-decoration: none; border-radius: 8px; padding: 6px 8px; margin-left: -8px; }
.brand img { width: 22px; height: 22px; }
.brand:hover { background: #1a1a1a; }
.center { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(40px, 11vh, 120px) 20px 64px; }
.card { width: 100%; max-width: 400px; }
.toggle { display: none; }

/* ------------------------------------------------------------------ the form */
h1 { margin: 0; text-align: center; font: 500 clamp(34px, 5vw, 46px)/1.1 "Geist", "Inter", system-ui, sans-serif; letter-spacing: -0.035em; text-wrap: balance; }
.line { margin: 14px 0 32px; text-align: center; color: #a3a3a3; font-size: 15px; line-height: 1.55; text-wrap: balance; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.form { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #c9c7c2; font-weight: 500; }
label .hint { color: #737373; font-weight: 400; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input:not([type="checkbox"]) {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #111; color: #fafafa;
  padding: 0 16px; font: inherit; font-size: 15px; outline: none;
}
input::placeholder { color: #6b6b6b; }
input:not([type="checkbox"]):focus { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.eye {
  position: absolute; right: 7px; top: 7px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent;
  color: #8a8a8a; display: inline-flex; align-items: center; justify-content: center;
}
.eye:hover { background: #1f1f1f; color: #fff; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.primary, .secondary {
  width: 100%; height: 48px; border-radius: 999px; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.primary, .secondary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color 0.12s ease, transform 0.08s ease, opacity 0.12s ease; }
.primary { border: 0; background: #fff; color: #0a0a0a; }
.primary:hover:not(:disabled) { background: #e5e5e5; }
.primary:active:not(:disabled) { background: #d4d4d4; transform: scale(0.985); }
a.primary, a.secondary { text-decoration: none; }
.secondary { border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #fff; font-weight: 500; }
.secondary:hover:not(:disabled) { background: #1a1a1a; }
.secondary:active:not(:disabled) { background: #262626; transform: scale(0.985); }
/* "Continue with Google / Whop" on its way to the provider: the same button, the same words, pulsing; a second press does nothing. */
button[aria-busy="true"] { cursor: progress; animation: working 1.1s ease-in-out infinite; }
button[aria-busy="true"]:active { transform: none; }
@keyframes working { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"] { animation: none; opacity: 0.6; } .primary, .secondary { transition: none; } }
.or { display: flex; align-items: center; gap: 14px; color: #737373; font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: rgba(255, 255, 255, 0.1); }
.link { background: none; border: 0; padding: 0; color: #fff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.link:hover { text-decoration-color: #fff; }
.quiet { background: none; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; color: #8a8a8a; font-size: 13px; }
.quiet:hover { color: #fff; background: #1a1a1a; }
.foot { margin-top: 20px; text-align: center; color: #a3a3a3; font-size: 13px; }
.terms { margin: 22px 0 0; text-align: center; color: #737373; font-size: 13px; line-height: 20px; }
.terms a { color: #a3a3a3; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.terms a:hover { color: #fff; text-decoration-color: #fff; }
.error { color: #fca5a5; font-size: 13px; line-height: 19px; margin: 0; text-align: center; text-wrap: balance; }
.line + .error { margin: -18px 0 24px; }
.note { display: flex; gap: 8px; color: #c9c7c2; font-size: 13px; line-height: 19px; margin: 0; }
.note::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: #f59e0b; margin-top: 7px; flex: none; }
.ok { color: #c9c7c2; font-size: 14px; margin: -14px 0 22px; text-align: center; }
.demo { font-size: 12px; color: #737373; font-weight: 400; }
.hidden { display: none !important; }
/* (Classes, not inline styles: the page's CSP allows only this file's styles.) */
.row-end { display: flex; justify-content: flex-end; align-items: center; min-height: 18px; }
.demo-button { margin-top: 10px; }
.center-row { text-align: center; margin: 14px 0 0; }

/* Sign in with a password: for the people who already have one. */
.more { margin-top: 22px; text-align: center; }
.more summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; color: #737373; font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: ""; border: 4px solid transparent; border-left: 6px solid currentColor; border-right: 0; transition: transform 0.15s ease; }
.more[open] summary::before { transform: rotate(90deg); }
.more summary:hover { color: #fff; background: #1a1a1a; }
.more .form { margin-top: 14px; text-align: left; }

/* The EU, EEA, UK and Switzerland tick a box before they continue; the second box (product email) starts unticked. */
.agree { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 13px; line-height: 20px; font-weight: 400; color: #a3a3a3; }
.agree input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: #fff; }
.agree a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.agrees { margin-top: 22px; }

/* account2fa: the two-step code. */
input.code { text-align: center; font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: 0.32em; padding-left: 0.32em; }
.trust { margin: 4px 0 2px; }

@media (max-width: 520px) {
  .top { padding: 14px 20px; }
  .center { padding: 36px 20px 48px; }
  .line { margin-bottom: 26px; }
}

/* Cleaner (owner 2026-11-08): one narrow column in the middle of the screen, a calmer heading, one shape for every
   control, no outlined boxes */
.center { align-items: center; padding: 40px 20px 96px; }
.card { max-width: 360px; }
h1 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.line { margin: 10px 0 28px; font-size: 14.5px; color: #8f8f8f; }
.stack, .form { gap: 8px; }
.primary, .secondary { height: 46px; font-size: 14.5px; }
.secondary { border: 0; background: #1d1e21; }
.secondary:hover:not(:disabled) { background: #26272a; }
input:not([type="checkbox"]) { height: 46px; border-radius: 999px; padding: 0 20px; border-color: transparent; background: #141416; font-size: 14.5px; }
input:not([type="checkbox"]):focus { border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.or { margin: 18px 0; font-size: 12px; color: #5f5f5f; }
.or::before, .or::after { background: rgba(255, 255, 255, 0.07); }
.terms { margin-top: 20px; font-size: 12px; color: #5f5f5f; }
.terms a { color: #8f8f8f; }
@media (max-width: 560px) { .center { align-items: flex-start; padding: 56px 20px 48px; } }
@media (min-width: 561px) { .card { max-width: 380px; } h1 { font-size: 32px; white-space: nowrap; } }
