/* Same palette and motion as the app (css/theme.css); this page carries its own copy so it is
     complete before anyone has logged in. */
  :root { --ink: #0f1b33; --muted: #56627a; --faint: #6c778c; --line: #cbd4e1; --brand: #1d4fd8; --brand-bright: #2f6bff;
    --danger: #c0291f; --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); }
  * { box-sizing: border-box; }
  body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; overflow-x: hidden;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #081022; color: var(--ink); }
  /* slow coloured light behind the card */
  .aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 0%, #14285a 0%, #081022 62%); }
  .aurora i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
  .aurora i:nth-child(1) { left: -18vmax; top: -22vmax; background: #2f6bff; animation: drift-a 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { right: -22vmax; bottom: -26vmax; background: #1a3fa8; animation: drift-b 28s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { left: 34%; bottom: -34vmax; width: 40vmax; height: 40vmax; background: #c99e4f; opacity: 0.28; animation: drift-c 32s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
  @keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(1.1); } }
  @keyframes drift-c { to { transform: translate(-10vmax, -6vmax) scale(1.25); } }

  .shell { position: relative; z-index: 1; width: 100%; max-width: 920px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: rise 0.7s var(--ease) backwards; }
  .pitch { display: flex; flex-direction: column; gap: 22px; padding: 44px 40px; color: #fff;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
  .pitch h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
  .pitch h2 em { font-style: normal; background: linear-gradient(100deg, #bcd2ff, #f0d59a); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .pitch ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 14px; }
  .pitch li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.86);
    animation: rise 0.6s var(--ease) backwards; }
  .pitch li:nth-child(1) { animation-delay: 0.25s; } .pitch li:nth-child(2) { animation-delay: 0.35s; } .pitch li:nth-child(3) { animation-delay: 0.45s; }
  .pitch li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.14);
    fill: none; stroke: #dbe7ff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

  .card { background: #fff; padding: 44px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
  .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
  .brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 10px 22px -10px rgba(47, 107, 255, 0.7);
    animation: pop 0.7s var(--ease-spring) 0.15s backwards; }
  .brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
  .brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
  .brand small { font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: 0.6; }
  h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.025em; }
  .sub { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; }
  label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: #33415c; }
  input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 12px; margin-bottom: 18px; background: #f9fbff; color: inherit;
    transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.14s var(--ease); }
  input:hover { border-color: #a3aec0; }
  input:focus-visible { outline: none; border-color: var(--brand-bright); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.16); }
  button { position: relative; overflow: hidden; width: 100%; min-height: 48px; font: inherit; font-size: 15.5px; font-weight: 650; padding: 12px;
    border: 0; border-radius: 12px; color: #fff; cursor: pointer; margin-top: 6px; touch-action: manipulation;
    background: linear-gradient(135deg, #3b7bff 0%, #1d4fd8 55%, #173fb4 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 14px 26px -12px rgba(47, 107, 255, 0.75);
    transition: transform 0.14s var(--ease), box-shadow 0.24s var(--ease), filter 0.14s var(--ease); }
  button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%); transition: transform 0.7s var(--ease); }
  button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 20px 34px -14px rgba(47, 107, 255, 0.85); }
  button:hover::after { transform: translateX(120%); }
  button:active { transform: scale(0.985); }
  button:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
  button:disabled { opacity: 0.7; cursor: default; transform: none; }
  .error { min-height: 20px; margin: 14px 0 0; color: var(--danger); font-size: 13.5px; }
  .error:not(:empty) { animation: shake 0.4s var(--ease); }
  .note { margin: 22px 0 0; color: var(--faint); font-size: 12.5px; text-align: center; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
  @keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

  @media (max-width: 760px) {
    .shell { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
    .pitch { display: none; }
    .card { padding: 34px 26px 28px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
