
  :root {
    --page: #F7F7F8;
    --ink: #141414;
    --ink-2: #3F3F46;
    --muted: #71717A;
    --line: #ECECEE;
    --line-2: #E4E4E7;
    --surface: #FFFFFF;
    --control-bg: #F7F7F8;
    --placeholder: #A1A1AA;
    --accent: #E92312;
    --accent-hover: #D11F10;
    --accent-text: #FFFFFF;
    --accent-shadow: 0 1px 2px rgba(233,35,18,0.25), 0 6px 16px rgba(233,35,18,0.16);
    --accent-soft: rgba(233, 35, 18, 0.12);
    --focus-ring: 0 0 0 3px rgba(233, 35, 18, 0.22);
    --focus-ring-strong: 3px solid rgba(233, 35, 18, 0.35);
    --navy-50: #F7F7F8;
    --navy-100: #F4F4F5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-logo: "Jost", "Inter", system-ui, sans-serif;
    --tracking-logo: 0.18em;
    --tracking-sub: 0.1em;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --badge-bg: #F4F4F5;
    --badge-border: #E4E4E7;
    --badge-text: #52525B;
    color-scheme: light;
  }
  html[data-theme="dark"] {
    color-scheme: dark;
    --page: #0E0E0E;
    --ink: #F5F5F5;
    --ink-2: #D4D4D8;
    --muted: #A1A1AA;
    --line: #242424;
    --line-2: #2E2E2E;
    --surface: #181818;
    --control-bg: #141414;
    --placeholder: #8A8A93;
    --navy-50: #1A1A1A;
    --navy-100: #222222;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.45);
    --focus-ring: 0 0 0 3px rgba(233, 35, 18, 0.32);
    --focus-ring-strong: 3px solid rgba(233, 35, 18, 0.45);
    --badge-bg: #1C1C1C;
    --badge-border: #2A2A2A;
    --badge-text: #A1A1AA;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    font-family: var(--font);
    background: var(--page);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }

  .mockup-badge {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 20;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--badge-text);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 5px 10px;
    border-radius: 999px;
  }

  .theme-toggle {
    position: fixed;
    top: 16px;
    right: 110px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--navy-50);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 150ms var(--ease-out), transform 150ms var(--ease-out);
  }
  .theme-toggle:hover { background: var(--navy-100); transform: translateY(-1px) scale(1.03); }
  .theme-toggle:active { transform: scale(0.97); }
  .theme-toggle:focus-visible { outline: var(--focus-ring-strong); outline-offset: 2px; }
  .theme-toggle svg { width: 18px; height: 18px; display: block; }
  html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
  html[data-theme="light"] .theme-toggle .icon-sun,
  html:not([data-theme]) .theme-toggle .icon-sun { display: none; }

  .card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px 28px;
  }

  .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    text-align: center;
  }
  .brand-mark {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
  }
  .wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
  .wordmark-hogg {
    font-family: var(--font-logo);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: var(--tracking-logo);
    color: var(--ink);
  }
  .wordmark-ins {
    font-family: var(--font-logo);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: var(--tracking-sub);
    color: var(--ink);
    margin-top: 4px;
  }
  h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 8px;
  }
  .lede {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 6px;
    max-width: 32em;
  }

  form { display: flex; flex-direction: column; gap: 14px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
  }
  input[type="email"],
  input[type="password"] {
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--control-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    outline: none;
    width: 100%;
    transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  }
  input::placeholder { color: var(--placeholder); }
  input:hover { border-color: var(--muted); }
  input:focus {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    background: var(--surface);
  }

  .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }
  .check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-weight: 500;
    user-select: none;
  }
  .check input { accent-color: var(--accent); width: 15px; height: 15px; }
  .ghost {
    appearance: none;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    padding: 0;
  }

  .btn {
    appearance: none;
    border: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: var(--accent-shadow);
    margin-top: 6px;
    transition: background-color 150ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  }
  .btn:hover { background: var(--accent-hover); transform: translateY(-1px) scale(1.02); }
  .btn:active { transform: scale(0.97); }
  .btn:focus-visible { outline: var(--focus-ring-strong); outline-offset: 2px; }

  .note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.55;
  }
  .note strong { color: var(--ink-2); font-weight: 650; }

  html.theme-anim, html.theme-anim body, html.theme-anim .card, html.theme-anim input, html.theme-anim .btn, html.theme-anim .theme-toggle {
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
  }
  @media (prefers-reduced-motion: reduce) {
    .btn, .theme-toggle, input { transition: none !important; }
    .btn:hover, .theme-toggle:hover, .btn:active, .theme-toggle:active { transform: none !important; }
    html.theme-anim, html.theme-anim * { transition: none !important; }
  }
