/* identity-kit sign-in.css 0.3.4 — the top-right sign-in slot (HQ AD_032). Uses the host's ui-landing-saas tokens with
   plain fallbacks; light + dark via color-scheme / light-dark() like tokens.css. No font download, no external asset.
   Google button branding (Google's sign-in guidelines, two of its three sanctioned themes): LIGHT in light mode (#FFFFFF fill,
   #1F1F1F text, #747775 stroke) and NEUTRAL in dark mode (#F2F2F2 fill, #1F1F1F text, #747775 stroke) — Google's dark theme
   (#131314 fill) reads as a disabled control on a near-black canvas (P read pass 2026-11-19), so it is not used. The official
   multicolour "G" (inline SVG in sign-in-header.html), >= 44 px tall, visible focus ring. Tokens a host may set on :root
   (INSTALL § 8.11; only another of Google's sanctioned themes, never a brand colour): --ik-google-fill, --ik-google-fill-hover,
   --ik-google-fill-pressed (Google's 8 % / 12 % state layers of the text colour), --ik-google-text, --ik-google-stroke. The
   defaults are the fallbacks on .ik-signin, so they resolve light-dark() with the element's own color-scheme. */

.ik-slot { display: flex; align-items: center; gap: var(--space-3, 12px); }
.ik-slot [hidden] { display: none !important; }

/* ---- signed out: the Google-branded "Sign in" button ---- */
.ik-signin {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control-h, 44px); padding: 0 16px 0 12px;
  font: var(--type-control, 500 15px/1.2 system-ui, sans-serif); letter-spacing: var(--tracking-control, -0.01em);
  color: var(--ik-google-text, #1f1f1f); background: var(--ik-google-fill, light-dark(#ffffff, #f2f2f2));
  border: 1px solid var(--ik-google-stroke, #747775); border-radius: var(--radius-m, 10px);
  cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.ik-signin:hover { background: var(--ik-google-fill-hover, light-dark(#f2f2f2, #e1e1e1)); box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.2)); }
.ik-signin:active { background: var(--ik-google-fill-pressed, light-dark(#e6e6e6, #d9d9d9)); }
.ik-signin:focus-visible, .ik-avatar:focus-visible, .ik-menu [role="menuitem"]:focus-visible {
  outline: 2px solid var(--focus-ring, light-dark(#1d4ed8, #8fb3ff)); outline-offset: 2px;
}
.ik-signin svg { width: 20px; height: 20px; flex: none; }
.ik-signin--wide { width: 100%; }                 /* the inline "Continue with Google" CTA */

/* ---- signed in: avatar + menu ---- */
.ik-account { position: relative; }
.ik-avatar {
  display: inline-grid; place-items: center; width: var(--control-h, 44px); height: var(--control-h, 44px); padding: 0;
  border: 1px solid var(--stroke, light-dark(#dadce0, rgba(255,255,255,.1))); border-radius: 50%;
  background: var(--surface-tint, light-dark(#e8effd, #1a1f33)); color: var(--accent-text, light-dark(#1d4ed8, #8fb3ff));
  font: var(--type-control, 500 15px/1 system-ui, sans-serif); cursor: pointer; overflow: hidden;
}
.ik-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-avatar [hidden] { display: none; }
.ik-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface-raised, light-dark(#ffffff, #1b1b1d)); color: var(--text, light-dark(#3c4043, #d0d0d4));
  border: 1px solid var(--stroke, light-dark(#dadce0, rgba(255,255,255,.1))); border-radius: var(--radius-l, 18px);
  box-shadow: var(--shadow-2, 0 4px 16px rgba(0,0,0,.12));
}
.ik-menu__who { padding: 10px 12px 8px; border-bottom: 1px solid var(--stroke-soft, light-dark(#e8eaed, rgba(255,255,255,.06))); margin-bottom: 6px; }
.ik-menu__name { font: var(--type-control, 500 15px/1.3 system-ui, sans-serif); color: var(--text-emphasis, inherit); }
.ik-menu__email { font: var(--type-caption, 400 13px/1.45 system-ui, sans-serif); color: var(--text-muted, light-dark(#5f6368, #9a9aa0)); overflow-wrap: anywhere; }
.ik-menu [role="menuitem"] {
  display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; text-align: left;
  font: var(--type-control, 500 15px/1.2 system-ui, sans-serif); color: inherit; text-decoration: none;
  background: none; border: 0; border-radius: var(--radius-s, 6px); cursor: pointer;
}
.ik-menu [role="menuitem"]:hover { background: var(--surface-raised-hover, light-dark(#f1f3f4, #222224)); }
.ik-menu__sep { height: 1px; margin: 6px 0; background: var(--stroke-soft, light-dark(#e8eaed, rgba(255,255,255,.06))); }

/* ---- microcopy under a primary sign-in CTA ---- */
.ik-legal { margin: var(--space-2, 8px) 0 0; font: var(--type-caption, 400 13px/1.45 system-ui, sans-serif); color: var(--text-muted, light-dark(#5f6368, #9a9aa0)); }
.ik-legal a { color: inherit; text-decoration: underline; }

/* ---- the quiet "Sign-in cancelled" note and the callback / waitlist pages ---- */
.ik-note { font: var(--type-body-sm, 400 15px/1.5 system-ui, sans-serif); color: var(--text-muted, light-dark(#5f6368, #9a9aa0)); }
.ik-page { min-height: 60vh; display: grid; place-items: center; padding: var(--section-pad, 64px) var(--gutter, 16px); text-align: center; }
.ik-page h1 { font: var(--type-h2, 600 28px/1.2 system-ui, sans-serif); color: var(--text-emphasis, inherit); margin: 0 0 var(--space-3, 12px); }
.ik-page p { font: var(--type-body, 400 17px/1.5 system-ui, sans-serif); color: var(--text, inherit); max-width: 48ch; margin: 0 auto var(--space-4, 16px); }
.ik-page form { display: grid; gap: var(--space-3, 12px); width: min(100%, 420px); margin: var(--space-5, 24px) auto 0; }
.ik-page [hidden] { display: none !important; }   /* the waitlist form is hidden until sign-in.js finds an endpoint — display: grid above must not win */
.ik-page input[type="email"] {
  min-height: var(--control-h, 44px); padding: 0 14px; font: var(--type-body-sm, 400 15px/1.5 system-ui, sans-serif);
  color: var(--text, inherit); background: var(--surface-raised, light-dark(#ffffff, #1b1b1d));
  border: 1px solid var(--stroke-strong, light-dark(#c4c7cc, rgba(255,255,255,.18))); border-radius: var(--radius-s, 6px);
}
.ik-page button[type="submit"] {
  min-height: var(--control-h, 44px); padding: 0 20px; font: var(--type-control, 500 15px/1.2 system-ui, sans-serif);
  color: var(--on-accent, #fff); background: var(--accent, #1d4ed8); border: 0; border-radius: var(--radius-m, 10px); cursor: pointer;
}
.ik-page button[type="submit"]:hover { background: var(--accent-hover, #1e40af); }
.ik-page button[type="submit"]:focus-visible, .ik-page input:focus-visible { outline: 2px solid var(--focus-ring, light-dark(#1d4ed8, #8fb3ff)); outline-offset: 2px; }

/* narrow screens keep the single button (AD_032 §3); the host hides its secondary CTA next to it */
@media (max-width: 480px) {
  .ik-slot [data-ik="cta"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ik-signin { transition: none; } }
