@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --brand-blue: #173edb;
  --brand-blue-shadow: #102cad;
  --brand-navy: #172152;
  --brand-yellow: #f6df57;
  --brand-canvas: #f7f7f2;
  --brand-panel: #fffef7;
  --brand-muted: #53607b;
  --brand-border: #dbe0e9;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--brand-navy); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--brand-navy); background: var(--brand-canvas); }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 5px; background: #fff; color: var(--brand-navy); }
.skip-link:focus { transform: translateY(0); }

.signup-top { width: 100%; min-height: 82px; padding: 17px max(5%, calc((100% - 1296px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--brand-canvas); color: var(--brand-navy); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-navy); text-decoration: none; font-size: 21px; font-weight: 850; letter-spacing: -.07em; white-space: nowrap; }
.brand b { color: var(--brand-yellow); }
.brand-mark { position: relative; flex: none; width: 38px; height: 38px; transform: rotate(-8deg); border-radius: 50% 50% 50% 7%; background: var(--brand-yellow); }
.brand-mark::after { position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-blue); content: ""; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.back-link span { color: var(--brand-muted); font-size: 16px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.signup-hero { width: 100%; min-height: min(720px, calc(100vh - 200px)); padding: 56px 5%; display: grid; grid-template-columns: minmax(0, 520px); justify-content: center; align-items: center; background: var(--brand-canvas); color: var(--brand-navy); }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--brand-muted); font-size: 12px; font-weight: 750; }
.kicker::before { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #7485a5; content: ""; }
h1, h2, p { margin-top: 0; }
.signup-card h1 { margin-bottom: 9px; color: var(--brand-navy); font-size: clamp(31px, 4vw, 42px); font-weight: 850; line-height: 1.08; letter-spacing: -.055em; }

.signup-stage { width: 100%; min-width: 0; }
.signup-card { padding: clamp(26px, 3.5vw, 42px); border: 1px solid #d5ddef; border-radius: 17px; background: var(--brand-panel); color: var(--brand-navy); box-shadow: 0 8px 32px #17215208; }
.signup-card h2 { margin-bottom: 7px; color: var(--brand-muted); font-size: 13px; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
.card-intro { max-width: 400px; margin-bottom: 24px; color: var(--brand-muted); font-size: 14px; line-height: 1.65; }
.auth-area { min-height: 76px; }
.auth-status { margin: 0 0 13px; color: #53607b; font-size: 13px; line-height: 1.6; }
.auth-area[data-state="error"] .auth-status { color: #9e2f2f; }
.auth-area[data-state="ready"] .auth-status { color: #41614e; }
.google-signin-button { min-height: 46px; }
.google-signin-button > div { max-width: 100%; }
.auth-method-toggle, .auth-mode-toggle { min-height: 42px; padding: 0 12px; border: 0; background: transparent; color: var(--brand-blue); font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-method-toggle { margin-top: 4px; }
.email-auth-form { display: grid; gap: 9px; margin-top: 10px; }
.email-auth-form label { color: var(--brand-navy); font-size: 12px; font-weight: 750; }
.email-auth-form input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--brand-border); border-radius: 9px; background: #fff; color: var(--brand-navy); font: inherit; font-size: 14px; }
.email-auth-form input:focus { border-color: var(--brand-blue); outline: 3px solid #173edb22; }
.email-auth-submit { min-height: 48px; margin-top: 8px; border: 0; border-radius: 100px; background: var(--brand-yellow); color: var(--brand-navy); font-size: 14px; font-weight: 850; cursor: pointer; }
.email-auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-mode-toggle { justify-self: center; }
.dashboard-link { width: 100%; min-height: 50px; display: grid; place-items: center; border-radius: 100px; background: var(--brand-yellow); color: var(--brand-navy); font-size: 14px; font-weight: 850; text-decoration: none; }
.dashboard-link:hover { background: #eed64b; }
.retry-button { min-height: 45px; padding: 0 20px; border: 1px solid var(--brand-blue); border-radius: 100px; background: transparent; color: var(--brand-blue); font-weight: 800; cursor: pointer; }
.retry-button:hover { background: #e8edff; }
.account-note { margin: 16px 0 0; color: #68718f; font-size: 12px; line-height: 1.7; }
.support-note { margin: 20px 0 0; color: #68718f; font-size: 12px; }
.support-note a { color: var(--brand-blue); font-weight: 800; text-underline-offset: 3px; }

.signup-footer { min-height: 118px; padding: 27px max(5%, calc((100% - 1296px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--brand-navy); color: #c0caed; font-size: 11px; }
.signup-footer .brand { font-size: 17px; }
.signup-footer .brand-mark { width: 30px; height: 30px; }
.signup-footer .brand-mark::after { top: 9px; left: 9px; width: 12px; height: 12px; }
.signup-footer > span:nth-child(2) { color: #c0caed; }
.signup-footer > span:last-child { white-space: nowrap; }

:focus-visible { outline: 3px solid #7485a5; outline-offset: 4px; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .signup-hero { min-height: calc(100vh - 188px); padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 600px) {
  .signup-top { min-height: 70px; padding: 14px 5%; }
  .brand { gap: 9px; font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark::after { top: 10px; left: 10px; width: 12px; height: 12px; }
  .back-link { gap: 5px; font-size: 11px; }
  .signup-hero { min-height: calc(100vh - 180px); padding: 32px 5%; }
  .signup-card { padding: 25px 21px; }
  .signup-card h1 { font-size: 32px; }
  .signup-footer { min-height: 0; padding: 24px 5%; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; }
  .signup-footer > span:nth-child(2) { order: 3; width: 100%; }
  .signup-footer > span:last-child { font-size: 10px; }
}

@media (max-width: 370px) {
  .back-link { font-size: 10px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark::after { top: 9px; left: 9px; width: 11px; height: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.signup-top { border-bottom: 1px solid var(--brand-border); }
.signup-footer .brand { color: #fff; }
.signup-stage { padding-inline: 0; }
