/* =====================================================================
   SIGN IN / SIGN UP v4 — mockup, 2026-10-14
   After the Untitled UI split screen: the form on white, the story in a
   rounded photo card. The headline is a row of outlined word pills that
   pop in per scene; one word per scene is filled. Colours are the Blue
   Rail five and their alphas only; inputs, buttons and the checkbox are
   the app.css components, resized.
   ===================================================================== */

:root{
  --navy:#102240; --blue:#3070B6; --sky:#9DCAE3;
  --ink-2:rgba(16,34,64,.76); --ink-3:rgba(16,34,64,.64);
  --ax-line:rgba(16,34,64,.14);
  --ax-ease:cubic-bezier(.22,1,.36,1);
  --ax-pop:cubic-bezier(.34,1.56,.64,1);
  --ax-f:"Google Sans Flex","Google Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
html, body{height:100%}
body{margin:0; background:#fff; color:var(--navy); font-family:var(--ax-f); -webkit-font-smoothing:antialiased}

.ax{display:grid; grid-template-columns:minmax(0, 1.12fr) minmax(440px, 1fr); min-height:100dvh}

/* ---- the form side ---------------------------------------------------- */
.ax-side{display:flex; flex-direction:column; min-width:0; padding:30px clamp(24px, 4vw, 60px) 30px}
.ax-logo{align-self:flex-start; display:block; border-radius:8px}
/* a spacer as tall as the logo, so the form sits in the true middle of the column */
.ax-side::after{content:""; flex:none; height:30px}
.ax-logo img{height:30px; width:auto}
.ax-body{flex:1; display:grid; place-items:center; padding:44px 0}
.ax-form{width:100%; max-width:420px}
.ax-form{text-align:left}
.ax-form .kulpi-slot{--ks:164px; margin:-12px auto 6px}

.ax-h{margin:0 0 40px; text-align:center; font-size:clamp(34px, 3vw, 44px); font-weight:600; letter-spacing:-.04em; line-height:1.04; color:var(--navy)}

.ax-fields{display:grid; gap:26px}
.ax-row{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px}
.ax-agree{display:flex; align-items:flex-start; justify-content:center; gap:12px; margin-top:30px; font-size:14.5px; line-height:1.45; color:var(--ink-2); cursor:pointer}
.ax-agree .check{margin-top:1px}
.ax-agree a, .ax-swap a, .ax-note a{color:var(--blue); font-weight:600; text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px}
.ax-agree a:hover, .ax-swap a:hover{color:var(--navy)}

.ax-err{margin:16px 0 0; font-size:14px; line-height:20px; color:var(--accent-rose-ink)}
.ax-go{margin-top:32px; height:56px; font-size:16px}
.ax-go .ax-go-i{width:18px; height:18px; transition:transform .3s var(--ax-ease)}
.ax-go:hover .ax-go-i{transform:translateX(3px)}

.ax-note{margin:0 0 22px; padding:14px 16px; border-radius:16px; background:rgba(157,202,227,.24); font-size:14px; line-height:1.5; color:var(--navy)}
.ax-note button{padding:0; border:0; background:none; font:inherit; font-weight:600; color:var(--blue); text-decoration:underline; text-underline-offset:3px; cursor:pointer}

.ax-swap{margin:30px 0 0; text-align:center; font-size:15px; color:var(--ink-2)}

/* the form arrives in a short stagger */
.ax-form > *, .ax-fields > *{animation:ax-up .7s var(--ax-ease) both}
.ax-form > :nth-child(2){animation-delay:.05s}
.ax-fields > :nth-child(1){animation-delay:.1s}
.ax-fields > :nth-child(2){animation-delay:.15s}
.ax-fields > :nth-child(3){animation-delay:.2s}
.ax-fields > :nth-child(4){animation-delay:.25s}
.ax-form > .ax-agree{animation-delay:.3s}
.ax-form > .ax-go{animation-delay:.35s}
.ax-form > .ax-swap{animation-delay:.4s}
@keyframes ax-up{from{opacity:0; transform:translateY(12px)}}

/* ---- the story card --------------------------------------------------- */
.ax-stage{order:-1; position:sticky; top:0; height:100dvh; padding:12px 0 12px 12px}
.ax-card{position:relative; height:100%; overflow:hidden; isolation:isolate; border-radius:32px; background:var(--navy); color:#fff}

.ax-scene{position:absolute; inset:0; opacity:0; transition:opacity 1s var(--ax-ease)}
.ax-scene.on{opacity:1}
.ax-scene img{width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform 7s linear}
.ax-scene.on img{transform:scale(1.09)}
/* navy at the top and bottom so white type always reads */
.ax-card::after{content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(16,34,64,.5) 0%, rgba(16,34,64,0) 36%, rgba(16,34,64,0) 50%, rgba(16,34,64,.82) 100%)}

.ax-words{position:absolute; z-index:2; top:clamp(26px, 3vw, 46px); left:clamp(26px, 3vw, 46px); right:clamp(26px, 3vw, 46px);
  display:flex; flex-wrap:wrap; align-items:center;
  font-size:clamp(28px, 2.9vw, 48px); max-width:10.4em}   /* width in em: the same line breaks at every size */
.ax-w{--i:0; display:inline-flex; align-items:center; height:1.34em; padding:0 .44em; margin:0 -.12em -.1em 0;
  border:2px solid rgba(255,255,255,.94); border-radius:999px; background:rgba(16,34,64,.14);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  font-size:1em; font-weight:600; letter-spacing:-.035em; line-height:1; white-space:nowrap; color:#fff;
  opacity:0; transform:translateY(24px) scale(.84);
  transition:opacity .35s var(--ax-ease), transform .75s var(--ax-pop), background .3s, color .3s;
  transition-delay:calc(var(--i) * 75ms)}
.ax-words.in .ax-w{opacity:1; transform:none}
.ax-words.out .ax-w{opacity:0; transform:translateY(-12px) scale(.96); transition-duration:.22s; transition-delay:calc(var(--i) * 25ms)}
.ax-w.key{background:#fff; border-color:#fff; color:var(--blue)}

.ax-foot{position:absolute; z-index:2; left:clamp(26px, 3vw, 46px); right:clamp(26px, 3vw, 46px); bottom:clamp(26px, 3vw, 42px);
  display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:20px}

/* one bar per scene; the current one fills while it plays */
.ax-bars{display:flex; gap:6px; width:min(240px, 100%)}
.ax-bars i{position:relative; flex:1; height:4px; border-radius:99px; overflow:hidden; background:rgba(255,255,255,.3)}
.ax-bars i::after{content:""; position:absolute; inset:0; background:#fff; transform:scaleX(0); transform-origin:left}
.ax-bars i.done::after{transform:scaleX(1)}
.ax-bars i.on::after{animation:ax-fill var(--hold, 5.4s) linear forwards}
.ax-card:hover .ax-bars i.on::after{animation-play-state:paused}
@keyframes ax-fill{to{transform:scaleX(1)}}

.ax-nav{display:flex}
.ax-arr{display:grid; place-items:center; width:62px; height:62px; border-radius:50%; cursor:pointer; color:#fff;
  border:2.5px solid rgba(255,255,255,.94); background:rgba(16,34,64,.14); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:background .25s, color .25s, transform .35s var(--ax-pop)}
.ax-arr + .ax-arr{margin-left:-10px}
.ax-arr:hover{background:#fff; color:var(--blue); transform:scale(1.05); position:relative; z-index:1}
.ax-arr svg{width:22px; height:22px}
.ax-arr:focus-visible, .ax-logo:focus-visible{outline:2px solid #fff; outline-offset:3px}
.ax-logo:focus-visible{outline-color:var(--blue)}

.ax-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* ---- smaller screens: the card becomes a banner above the form -------- */
@media (max-width:960px){
  .ax{grid-template-columns:minmax(0, 1fr)}
  .ax-stage{order:-1; position:relative; height:360px; padding:10px 10px 0}
  .ax-card{border-radius:26px}
  .ax-words{font-size:26px}
  .ax-w{border-width:2px}
  .ax-arr{width:48px; height:48px; border-width:2px}
  .ax-arr svg{width:18px; height:18px}
  .ax-side{padding:22px 20px 30px}
  .ax-body{padding:30px 0}
}
@media (max-width:520px){
  .ax-stage{height:300px}
  .ax-words{font-size:21px}
  .ax-row{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .ax-form > *, .ax-fields > *{animation:none}
  .ax-scene, .ax-scene img, .ax-w{transition:none}
  .ax-scene.on img{transform:scale(1.02)}
  .ax-bars i.on::after{animation:none; transform:scaleX(1)}
}

/* ---- 2026-11-17: like the real app's screens, and sized to the window --
   Naveen: "Sign in / Sign up has to be like" the app (Continue with Google,
   or, First and Last name, Forgot password, remove account), and "on some
   devices the content was going down". It was: every size was fixed, so the
   sign up form stood 805px tall and on a 1440x900 Mac (789px of window), a
   1536x864 Windows laptop (730px) or a 1366x768 one (657px) Create account
   fell below the fold and the page scrolled under the pinned photo card.
   Now each vertical size runs from a compact value at a 660px tall window to
   the full one at 950px (--u is 1px per step of that range), so the whole
   form fits from 660px up and keeps its air on tall screens. */
.ax{--u:calc((100vh - 660px) / 290)}
.ax-side{padding-block:clamp(16px, calc(16px + 14 * var(--u)), 30px)}
.ax-side::after{height:clamp(0px, calc(30 * var(--u)), 30px)}
.ax-body{padding-block:clamp(8px, calc(8px + 20 * var(--u)), 28px)}
.ax-form .kulpi-slot{--ks:clamp(64px, calc(64px + 76 * var(--u)), 140px); margin:calc(var(--ks) * -.06) auto 0}
.ax-h{font-size:min(clamp(34px, 3vw, 44px), clamp(28px, calc(28px + 16 * var(--u)), 44px));
  margin-bottom:clamp(14px, calc(14px + 16 * var(--u)), 30px)}
.ax-form .fld{gap:clamp(6px, calc(6px + 2 * var(--u)), 8px)}
.ax-form .fld-lg{--fld-h:clamp(42px, calc(42px + 6 * var(--u)), 48px)}
.ax-fields{gap:clamp(12px, calc(12px + 10 * var(--u)), 22px)}
.ax-agree{margin-top:clamp(12px, calc(12px + 12 * var(--u)), 24px)}
.ax-go{margin-top:clamp(14px, calc(14px + 14 * var(--u)), 28px); height:clamp(46px, calc(46px + 10 * var(--u)), 56px)}
.ax-swap{margin-top:clamp(12px, calc(12px + 12 * var(--u)), 24px)}

/* Continue with Google: a white button with the hairline ring of the fields */
.ax-google{display:flex; align-items:center; justify-content:center; gap:12px; width:100%; height:clamp(42px, calc(42px + 10 * var(--u)), 52px);
  padding:0 20px; border:0; border-radius:16px; background:#fff; cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(16,34,64,.16), 0 1px 2px rgba(16,34,64,.05);
  font:inherit; font-size:16px; font-weight:500; letter-spacing:-.01em; color:var(--navy);
  transition:box-shadow .15s, background-color .15s}
.ax-google svg{flex:none; width:20px; height:20px}
.ax-google:hover{background:color-mix(in srgb, var(--navy) 3%, #fff); box-shadow:inset 0 0 0 1px rgba(16,34,64,.28), 0 1px 2px rgba(16,34,64,.05)}
.ax-google:focus-visible{outline:2px solid var(--blue); outline-offset:3px}
/* or, between two hairlines */
.ax-or{display:flex; align-items:center; gap:14px; margin:clamp(10px, calc(10px + 12 * var(--u)), 22px) 0; font-size:14px; line-height:20px; color:var(--ink-3)}
.ax-or::before, .ax-or::after{content:""; flex:1; height:1px; background:var(--ax-line)}
/* a field label with a link at its right (Forgot password?) */
.fld-top{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.ax-link{padding:0; border:0; background:none; font:inherit; font-size:14px; font-weight:600; color:var(--blue); cursor:pointer;
  text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px}
.ax-link:hover{color:var(--navy)}
.ax-link:focus-visible{outline:2px solid var(--blue); outline-offset:3px; border-radius:4px}
/* remove account: last, under a hairline, in the warning ink */
.ax-remove{margin:clamp(12px, calc(12px + 12 * var(--u)), 24px) 0 0; padding-top:clamp(12px, calc(12px + 12 * var(--u)), 24px);
  border-top:1px solid var(--ax-line); text-align:center}
.ax-link.ax-danger{font-size:15px; color:var(--accent-rose-ink, #da1a51)}
.ax-link.ax-danger:hover{color:#a3123c}
/* the message line: a link inside it, and a quiet "done" */
.ax-err a{color:var(--blue); font-weight:600; text-decoration:underline; text-underline-offset:3px}
.ax-err.is-ok{color:var(--blue)}
.ax-form > .ax-google{animation-delay:.08s}
.ax-form > .ax-or{animation-delay:.1s}
.ax-form > .ax-remove{animation-delay:.45s}
