/* =====================================================================
   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:18px clamp(18px, 3vw, 48px) 18px}
.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:18px}
.ax-logo img{height:28px; width:auto}
.ax-body{flex:1; display:grid; place-items:center; padding:10px 0}
.ax-form{width:100%; max-width:420px}
.ax-form{text-align:left}
.ax-form .kulpi-slot{--ks:136px; margin:-8px auto 2px}

.ax-h{margin:0 0 16px; text-align:center; font-size:clamp(28px, 2.5vw, 38px); font-weight:600; letter-spacing:-.04em; line-height:1.06; color:var(--navy)}

/* ---- Google sign in & separator ---------------------------------------- */
.ax-google{
  display:flex; align-items:center; justify-content:center; gap:12px;
  width:100%; height:48px; padding:0 20px;
  border-radius:14px; border:1.5px solid var(--ax-line);
  background:#fff; color:var(--navy); font-size:15px; font-weight:500;
  text-decoration:none; cursor:pointer;
  transition:border-color .2s var(--ax-ease), background .2s var(--ax-ease), box-shadow .2s var(--ax-ease), transform .2s var(--ax-ease);
}
.ax-google:hover{
  border-color:rgba(16,34,64,.3); background:#FAFCFE;
  box-shadow:0 4px 14px -4px rgba(16,34,64,.08);
  transform:translateY(-1px);
}
.ax-google-g,
.ax-google svg,
svg.ax-google-g{
  width:20px !important;
  height:20px !important;
  max-width:20px !important;
  max-height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  flex:0 0 20px !important;
  display:inline-block !important;
  vertical-align:middle !important;
}

.ax-or{
  display:flex; align-items:center; gap:14px; margin:14px 0;
  color:var(--ink-3); font-size:13px; text-transform:lowercase; font-weight:500;
}
.ax-or::before, .ax-or::after{
  content:""; flex:1; height:1px; background:var(--ax-line);
}

.ax-fields{display:grid; gap:16px}
.ax-row{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px}
.ax-agree{display:flex; align-items:flex-start; justify-content:center; gap:12px; margin-top:16px; font-size:14px; line-height:1.42; 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:12px 0 0; font-size:14px; line-height:20px; color:var(--accent-rose-ink)}
.ax-go{margin-top:18px; height:50px; font-size:15.5px}
.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 16px; padding:12px 16px; border-radius:14px; 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:18px 0 0; text-align:center; font-size:14.5px; 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-form > .ax-google{animation-delay:.08s}
.ax-form > .ax-or{animation-delay:.12s}
.ax-fields > :nth-child(1){animation-delay:.15s}
.ax-fields > :nth-child(2){animation-delay:.2s}
.ax-fields > :nth-child(3){animation-delay:.25s}
.ax-fields > :nth-child(4){animation-delay:.3s}
.ax-form > .ax-agree{animation-delay:.35s}
.ax-form > .ax-go{animation-delay:.4s}
.ax-form > .ax-swap{animation-delay:.45s}
@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:border-color .2s, background .2s, transform .2s var(--ax-ease)}
.ax-arr:hover{background:rgba(255,255,255,.2); border-color:#fff}
.ax-arr:active{transform:scale(.94)}
.ax-arr + .ax-arr{margin-left:-8px}
.ax-arr svg{width:22px; height:22px}

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

/* ---- mobile / responsive ---------------------------------------------- */
@media (max-width: 960px){
  .ax{grid-template-columns:1fr}
  .ax-stage{order:0; position:relative; top:auto; height:auto; padding:12px 12px 0}
  .ax-card{height:54vw; min-height:280px; max-height:440px; border-radius:24px}
  .ax-words{font-size:clamp(22px, 4.4vw, 36px)}
  .ax-arr{width:48px; height:48px}
  .ax-arr svg{width:18px; height:18px}
  .ax-side{padding:24px 20px 40px}
  .ax-side::after{display:none}
  .ax-body{padding:20px 0}
}
@media (max-width: 480px){
  .ax-card{height:66vw; min-height:260px}
  .ax-words{font-size:22px}
  .ax-foot{bottom:16px; left:16px; right:16px}
  .ax-bars{width:120px}
  .ax-arr{width:42px; height:42px}
  .ax-row{grid-template-columns:1fr; gap:22px}
}
