/* ==========================================================================
   VEYORA AUTH PAGES (login, signup)
   Layout from the FounderSync reference: dotted page, centred logo, one large rounded card split into
   a form column and an inset stat panel. Skinned with Veyora's theme: cream page, ink + yellow, Geist,
   and the dark grid panel from the landing hero.
   ========================================================================== */
:root {
  --bg: #F6F5F1; --card: #FFFFFF; --line: #E7E5DD; --line-strong: #D6D3C9;
  --ink: #161615; --ink-2: #3B3B38; --muted: #6B6A66; --faint: #9B9993;
  --accent: #FFDD1F; --accent-hover: #F2D00A;
  --red: #C62A1F; --red-soft: #FDECEA; --red-line: #F3C3BE;
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ring: 0 0 0 3px rgba(255, 221, 31, .55);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 400 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(22, 22, 21, .11) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
h1, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: var(--ring); }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- page ---------- */
.page { display: flex; flex-direction: column; align-items: center; gap: 26px; width: min(100% - 32px, 1010px); margin: 0 auto; padding: 30px 0 36px; min-height: 100dvh; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 28px; letter-spacing: -.05em; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }

/* ---------- card: form + stage ---------- */
.card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; min-height: 676px; padding: 18px; border-radius: 40px;
  background: var(--card); border: 1px solid rgba(22, 22, 21, .06); box-shadow: 0 1px 0 rgba(22, 22, 21, .03), 0 30px 60px -40px rgba(22, 22, 21, .25);
}
.card__form { display: flex; align-items: center; justify-content: center; padding: 24px clamp(24px, 4.6vw, 33px) 24px clamp(28px, 4vw, 33px); }
.formwrap { width: 100%; max-width: 433px; }

.head h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.045em; }
.head p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--faint); }

.form { display: grid; gap: 18px; margin-top: 36px; }
.field { display: grid; gap: 10px; }
.field label { font-size: 13px; line-height: 1; font-weight: 500; }
.field small { font-size: 12.5px; color: var(--faint); }
.field input {
  display: block; width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:hover { border-color: var(--line-strong); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.field input:disabled { opacity: .55; cursor: not-allowed; }

.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw__toggle { position: absolute; right: 14px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--faint); cursor: pointer; transform: translateY(-50%); transition: color .15s; }
.pw__toggle:hover { color: var(--ink); }
.pw__toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; }
.pw__off { display: none; }
.pw__toggle[aria-pressed="true"] .pw__on { display: none; }
.pw__toggle[aria-pressed="true"] .pw__off { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 4px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(22, 22, 21, .65); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.form__error { padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--red); background: var(--red-soft); border: 1px solid var(--red-line); }
.switch { margin-top: 30px; text-align: center; font-size: 14px; color: var(--muted); }
.switch a { color: var(--ink); font-weight: 500; text-decoration: none; }
.switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- stage: dark grid panel with a stat carousel ---------- */
.stage {
  position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 100%; padding: 30px 32px 30px; overflow: hidden; border-radius: 28px; color: #fff; background-color: #161615;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px;
}
.slides { display: grid; align-content: start; justify-items: center; padding-top: clamp(70px, 14%, 120px); text-align: center; }
.slide { grid-area: 1 / 1; display: grid; justify-items: center; gap: 14px; max-width: 380px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.slide__n { font-size: clamp(64px, 7.4vw, 96px); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: var(--accent); }
.slide__t { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; color: #F1EFE8; text-wrap: balance; }
.slide__s { font-size: 13px; line-height: 1.5; color: #9D9B94; }

.dots { position: absolute; left: 50%; top: 61%; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); }
.dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .35s var(--ease), background-color .35s; }
.dots button[aria-current="true"] { width: 34px; background: var(--accent); }
.dots button:focus-visible { outline-color: #fff; }
.stage__cap { align-self: end; max-width: 420px; font-size: 13px; line-height: 1.5; color: #BDBBB4; }
.stage__cap a { color: #fff; text-underline-offset: 3px; }

.foot { max-width: 620px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--faint); }
.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 8px; border-radius: 28px; }
  .stage { display: none; }
  .card__form { padding: 28px 18px 26px; }
  .head h1 { font-size: 26px; }
}
@media (max-width: 420px) { .page { padding-top: 22px; } .brand { font-size: 24px; } .brand__mark { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
