/* Jonah sign-in. Honey Whale Design System tokens (copied from tokens.css), mobile first. */
:root {
  --hw-midnight-ink: #0f1115;
  --hw-deep-slate: #1a1d23;
  --hw-charcoal-tide: #1a1d23;
  --hw-drift-grey: #5f6368;
  --hw-soft-ash: #9aa0a6;
  --hw-mist-grey: #f1f3f5;
  --hw-moon-white: #edeef0;
  --hw-cloud-white: #fafafa;
  --hw-pure-white: #ffffff;
  --hw-sun-gold: #f7d046;
  --hw-sun-gold-strong: #efc01f;
  --hw-sun-gold-soft: #fbe7a6;
  --hw-border-light: #e4e7eb;
  --hw-border-dark: #2a2e36;

  --surface-bg: var(--hw-cloud-white);
  --surface-card: var(--hw-mist-grey);
  --surface-raised: var(--hw-pure-white);
  --text-primary: var(--hw-charcoal-tide);
  --text-secondary: var(--hw-drift-grey);
  --text-on-accent: var(--hw-midnight-ink);
  --border-hairline: var(--hw-border-light);
  --border-strong: #c9cdd3;
  --accent: var(--hw-sun-gold);
  --accent-hover: var(--hw-sun-gold-strong);
  --accent-wash: var(--hw-sun-gold-soft);
  --focus-ring: rgba(247, 208, 70, 0.55);
  --shadow-sm: 0 1px 3px rgba(15, 17, 21, 0.08), 0 1px 2px rgba(15, 17, 21, 0.04);
  --shadow-gold: 0 8px 28px rgba(247, 208, 70, 0.3);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --font-display: Satoshi, "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --ease-standard: cubic-bezier(0.32, 0.72, 0.24, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-bg: var(--hw-midnight-ink);
    --surface-card: var(--hw-deep-slate);
    --surface-raised: #212530;
    --text-primary: var(--hw-moon-white);
    --text-secondary: var(--hw-soft-ash);
    --border-hairline: var(--hw-border-dark);
    --border-strong: #3a3f49;
    --accent-hover: #ffdd66;
    --accent-wash: rgba(247, 208, 70, 0.16);
    --focus-ring: rgba(247, 208, 70, 0.65);
    --shadow-sm: none;
    --shadow-gold: none;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6) var(--space-4) var(--space-5);
  background: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: 440px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* align-self stops the flex column stretching the logo to full width. */
.logo { display: block; align-self: flex-start; height: 28px; width: auto; }
.logo--dark { display: none; height: 32px; }
@media (prefers-color-scheme: dark) {
  .logo--light { display: none; }
  .logo--dark { display: block; }
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

h1 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
h1:focus { outline: none; }

p { margin: 0 0 var(--space-4); }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; }

.who {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.who strong { font-weight: 600; }

.grants {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-hairline);
}
.grants li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 15px;
  line-height: 1.45;
}
.grants svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke: var(--text-primary);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions { display: flex; flex-direction: column; gap: var(--space-3); }

.btn {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible,
.link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-gold); }
.btn--primary:active { box-shadow: none; }
.btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
/* Sign-in buttons carry the Microsoft and Google logos. Both companies' brand rules put their
   logo on a neutral button, never a coloured one, so these don't use the gold fill. */
.btn--provider {
  /* Tighter than the other buttons so "Sign in with Microsoft" stays on one line at 320px. */
  gap: 10px;
  padding: 15px var(--space-3);
  font-size: 16px;
  background: var(--surface-raised);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn__logo { flex: none; width: 20px; height: 20px; }

/* Hover only where a real pointer exists, so a tap on a phone doesn't leave a stuck state. */
@media (hover: hover) {
  .btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
  .btn--secondary:hover:not(:disabled) { background: var(--surface-card); }
  .btn--provider:hover:not(:disabled) { background: var(--surface-card); }
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.center { text-align: center; }
.fineprint { margin: var(--space-4) 0 0; }
.detail {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.foot { margin: 0; font-size: 13px; color: var(--text-secondary); }

@media (min-width: 600px) {
  body { padding: var(--space-7) var(--space-5); }
  .card { padding: var(--space-6); }
  h1 { font-size: 32px; }
  .actions--row { flex-direction: row-reverse; }
  .actions--row .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
