  body {
    background: var(--bg-page);
    min-height: 100vh; margin: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font);
    /* subtle purple glow behind the card */
    background-image: radial-gradient(60% 50% at 50% 0%, var(--accent-dim, rgba(123,92,255,.10)), transparent 70%);
    padding: 20px;
  }
  .auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 32px 30px;
    width: 380px; max-width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }
  /* Brand lockup mirrors the og-image share card: prominent logo above a clean,
     high-contrast wordmark (theme-aware via --text-hi so it works light + dark). */
  .auth-brand { display: flex; flex-direction: column; align-items: center; gap: 11px; margin-bottom: 26px; }
  .auth-brand .mark { height: 58px; width: auto; display: block; filter: drop-shadow(0 3px 14px rgba(123,92,255,.30)); }
  .auth-brand .name { font-weight: 700; font-size: 27px; letter-spacing: -.6px; color: var(--text-hi); }
  .auth-guest {
    display: block; text-align: center; margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border); color: var(--text-md);
    text-decoration: none; font-size: 13px; font-weight: 700; transition: color .15s;
  }
  .auth-guest:hover { color: var(--accent-2, #a78bff); }
  .auth-card h1 { color: var(--text-hi); font-size: 21px; font-weight: 700; margin: 0 0 5px; }
  .auth-card .sub { color: var(--text-md); font-size: 12.5px; margin: 0 0 22px; line-height: 1.5; }

  /* Google button + divider */
  #google-area { display: none; margin-bottom: 18px; }
  /* Custom Google button - same shape as .auth-submit (full-width pill), neutral
     surface so it reads as a secondary action; fully theme-controlled (no GSI
     iframe / white backplate). */
  .google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 10px; cursor: pointer;
    background: var(--bg-card2); color: var(--text-hi); border: 1px solid var(--border2);
    font-family: var(--font); font-size: 13.5px; font-weight: 700;
    transition: border-color .15s, background .15s, transform .1s;
  }
  .google-btn:hover { border-color: var(--accent-2, #a78bff); background: var(--bg-input, var(--bg-card2)); }
  .google-btn:active { transform: translateY(1px); }
  .google-btn .g-logo { flex-shrink: 0; }
  .auth-or {
    display: flex; align-items: center; gap: 10px; margin: 16px 0;
    color: var(--text-lo); font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .6px;
  }
  .auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .auth-card label {
    display: block; color: var(--text-md); font-size: 10.5px; margin: 14px 0 6px;
    font-family: var(--mono); letter-spacing: .5px; text-transform: uppercase; font-weight: 700;
  }
  .auth-card input {
    width: 100%; padding: 11px 12px; box-sizing: border-box;
    background: var(--bg-input, var(--bg-card2)); border: 1px solid var(--border2);
    border-radius: 9px; color: var(--text-hi); font-size: 13.5px; font-family: var(--mono);
    outline: none; transition: border-color .15s, box-shadow .15s;
  }
  .auth-card input::placeholder { color: var(--text-lo); }
  .auth-card input:focus { border-color: var(--accent, #7b5cff); box-shadow: 0 0 0 3px var(--accent-dim, rgba(123,92,255,.18)); }
  .auth-submit {
    width: 100%; padding: 12px; margin-top: 20px; border: none; border-radius: 10px;
    background: var(--grad-accent, linear-gradient(135deg, #9171ff, #6a45f5));
    color: #fff; font-size: 13.5px; font-weight: 700; font-family: var(--font); cursor: pointer;
    box-shadow: 0 6px 20px rgba(123,92,255,.32); transition: filter .15s, transform .1s, opacity .15s;
  }
  .auth-submit:hover { filter: brightness(1.08); }
  .auth-submit:active { transform: translateY(1px); }
  .auth-submit:disabled { opacity: .6; cursor: not-allowed; filter: none; }
  .err { color: var(--red); font-size: 11.5px; margin-top: 12px; font-family: var(--mono); line-height: 1.5; min-height: 0; }
  .switch { color: var(--text-md); font-size: 12px; text-align: center; margin-top: 20px; }
  .switch a { color: var(--accent-2, #a78bff); text-decoration: none; cursor: pointer; font-weight: 700; }
  .switch a:hover { text-decoration: underline; }
  .auth-legal { color: var(--text-lo); font-size: 11.5px; line-height: 1.5; text-align: center; margin: 14px 0 0; }
  .auth-legal a { color: var(--text-md); text-decoration: underline; }
  .auth-legal a:hover { color: var(--accent-2, #a78bff); }
  /* Marketing opt-in (register only). Left-aligned so the consent text reads as
     a sentence; the checkbox overrides .auth-card input (full-width pill). */
  /* Plain one-line checkbox. Scoped under .auth-card to beat `.auth-card label`,
     which otherwise forces uppercase mono bold (it's meant for field labels). */
  .auth-card label.auth-optin { display: flex; align-items: center; gap: 9px; margin: 16px 2px 2px;
    font: 400 13px var(--font); letter-spacing: normal; text-transform: none; line-height: 1.4;
    color: var(--text-md); cursor: pointer; text-align: left; user-select: none; }
  .auth-card label.auth-optin input { width: 16px; height: 16px; flex: none; margin: 0; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    accent-color: var(--accent-2, #a78bff); cursor: pointer; }
  .auth-card label.auth-optin:hover { color: var(--text-hi); }
  .auth-forgot { display: block; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--text-lo); text-decoration: none; margin: 8px 2px 14px; }
  .auth-forgot:hover { color: var(--accent-2, #a78bff); }
  .lang-toggle { position: fixed; top: 16px; right: 18px; display: flex; gap: 4px; z-index: 20; }
  .lang-toggle button { background: var(--bg-card2); border: 1px solid var(--border2); color: var(--text-md); font-size: 10px; font-weight: 700; font-family: var(--mono); padding: 4px 9px; border-radius: 7px; cursor: pointer; }
  .lang-toggle button.active { background: var(--accent-dim, rgba(123,92,255,.16)); border-color: var(--accent-border, rgba(123,92,255,.5)); color: var(--accent-2, #a78bff); }
