/* BananAuto — auth scene: real LC300 photo graded to a desert night; lights, plate and hazards react to the form */
.garage{container-type:size;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0;isolation:isolate;background:#05080f}
.garage>.g-hud{position:relative;z-index:4}
.g-scene{position:absolute;z-index:0;left:50%;top:var(--ty,42%);width:min(max(100cqw,100cqh*.6714),100cqh*1.2);aspect-ratio:1900/2830;container-type:inline-size;
  translate:-50% -31%;transform:translate(calc(var(--px,0)*-14px),calc(var(--py,0)*-8px)) scale(1.05);transition:transform .8s cubic-bezier(.2,.9,.2,1)}
.g-photo{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;filter:brightness(.22) saturate(.7);transition:filter 2.4s ease}
.garage.moon .g-photo{filter:none}
.garage:after{content:"";position:absolute;z-index:1;inset:auto 0 0;height:42%;pointer-events:none;background:linear-gradient(transparent,rgba(4,7,13,.85))}
.g-scene i{position:absolute;pointer-events:none;display:block}

/* wide panels (ultrawide monitors): the photo is capped at 1.2× the panel height instead of stretching to its full
   width, so the car keeps a sane size; its sides — and the flare inside it — fade into the night instead of ending in an edge */
@container (aspect-ratio > 1.2){
  .g-scene{-webkit-mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.35) 9%,#000 24%,#000 76%,rgba(0,0,0,.35) 91%,transparent);mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.35) 9%,#000 24%,#000 76%,rgba(0,0,0,.35) 91%,transparent)}
}

/* headlights, fog lamps, flare, pool of light on the sand */
.g-glow{width:15%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;mix-blend-mode:screen;opacity:0;transition:opacity .5s;
  background:radial-gradient(circle,#fffef6 0,rgba(255,250,232,.95) 9%,rgba(255,236,200,.4) 24%,rgba(170,210,255,.1) 46%,transparent 68%)}
.g-glow.l{left:18.4%;top:27.9%}.g-glow.r{left:52.6%;top:28.3%}
.g-fogl{width:7%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;mix-blend-mode:screen;opacity:0;transition:opacity .6s;background:radial-gradient(circle,#fff7e0 0,rgba(255,230,180,.5) 25%,transparent 65%)}
.g-fogl.l{left:16.6%;top:35.4%}.g-fogl.r{left:53.4%;top:36.1%}
.g-pool{left:-5%;top:40%;width:80%;height:30%;mix-blend-mode:screen;opacity:0;transition:opacity 1.2s;
  background:radial-gradient(ellipse 50% 50% at 50% 45%,rgba(255,232,190,.32),rgba(255,220,170,.08) 55%,transparent 75%)}
.garage.drl .g-glow{opacity:.35}
.garage.beam .g-glow{opacity:1;animation:ignite .7s ease-out}
.garage.beam .g-fogl{opacity:.9}.garage.beam .g-pool{opacity:1}
@keyframes ignite{0%{opacity:0}15%{opacity:1;scale:1.3}30%{opacity:.4}100%{opacity:1;scale:1}}

/* typing → lights pulse; password → lights off; reveal → half */
.garage.key .g-glow{scale:1.18;transition:scale .05s}
.garage.shy .g-glow,.garage.shy .g-fogl,.garage.shy .g-pool{opacity:0;animation:none}
.garage.shy.peek .g-glow{opacity:.45}

/* indicators: hazards on error, chirp on click */
.g-ind{width:3.4%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;mix-blend-mode:screen;opacity:0;background:radial-gradient(circle,#ffd27a 0,rgba(255,160,20,.85) 22%,rgba(255,140,0,.25) 50%,transparent 70%)}
.g-ind.l{left:16.4%;top:28%}.g-ind.r{left:57.6%;top:28.5%}
/* side-mirror repeaters (from the photo: the strip on each mirror cap) */
.g-ind.m{width:3.6%;aspect-ratio:2.4}
.g-ind.m.l{left:25.6%;top:23.9%}.g-ind.m.r{left:71.7%;top:24.8%}
.garage.hazard .g-ind{animation:blink .5s steps(1) 6}
.garage.chirp .g-ind{animation:blink .25s steps(1) 4}
@keyframes blink{0%{opacity:1}50%{opacity:0}}
.garage.chirp .g-glow{animation:flash .5s ease-out}
/* horn held → high beam */
.garage.honk .g-glow{opacity:1;scale:1.9;transition:scale .08s}
.garage.honk .g-pool{opacity:1;filter:brightness(1.6)}
.g-hit{touch-action:none;-webkit-tap-highlight-color:transparent}
@keyframes flash{0%,100%{opacity:1}30%{opacity:1;scale:1.7}}

/* plate: Qatari style, shows what is typed */
.g-plate{position:absolute;left:27.3%;top:34.4%;width:11.6%;aspect-ratio:3.3;display:flex;direction:ltr;border-radius:.35cqw;background:#e9ecf0;border:.18cqw solid #1b1d22;overflow:hidden;
  filter:brightness(.45);transition:filter 1.2s;rotate:.8deg;box-shadow:0 .2cqw .5cqw rgba(0,0,0,.5)}
.garage.beam .g-plate{filter:brightness(.66)}
.g-plate>i{position:static;flex:none;width:22%;background:#8a1538;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-style:normal;line-height:1}
.g-plate>i b{font-size:.8cqw;font-weight:800}.g-plate>i small{font-size:.5cqw;font-weight:800;margin-top:.15cqw}
.g-plate>span{flex:1;display:grid;place-items:center;font:900 1.9cqw/1 "Plus Jakarta Sans",Cairo,sans-serif;color:#111;white-space:nowrap;overflow:hidden;letter-spacing:.02em}
.g-plate>span.long{font-size:1.35cqw}
.g-hit{position:absolute;left:15%;top:18%;width:69%;height:26%;background:none;border:0;cursor:pointer;z-index:2}

/* submit → ignition */
.garage.ignite .g-scene{animation:rumble .09s linear infinite}
.garage.ignite .g-glow{opacity:1;scale:2.4;transition:scale .5s}
.garage.ignite:before{content:"";position:absolute;z-index:5;inset:0;pointer-events:none;background:radial-gradient(circle at 36% 30%,rgba(255,250,236,.9),rgba(255,240,210,.3) 40%,transparent 75%);animation:blast .7s ease-in both}
@keyframes rumble{0%,100%{translate:-50% -31%}25%{translate:calc(-50% + 1px) calc(-31% - 1px)}75%{translate:calc(-50% - 1px) calc(-31% + 1px)}}
@keyframes blast{from{opacity:0}to{opacity:1}}

.g-dust{position:absolute;z-index:3;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}
.g-hud{width:min(620px,100%);padding:0 48px 32px;display:flex;flex-direction:column;gap:12px}
.garage .toast{background:rgba(10,16,26,.6)}

.auth-foot:empty{display:none}
/* pitch, now on the form side */
.auth-pitch{max-width:440px;width:100%;margin:clamp(18px,5vh,56px) auto 0;display:flex;flex-direction:column;gap:10px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.auth-pitch h2{font-size:clamp(1.6rem,2.3vw,2.2rem);font-weight:900;line-height:1.2;letter-spacing:-.02em;color:var(--ink);margin:0}
.auth-pitch h2 em{font-style:normal;background:linear-gradient(90deg,#fba51a,#ffd27a);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-pitch p{color:var(--slate);font-size:.92rem;line-height:1.75;margin:0}
.auth-pitch .show-tag{color:var(--slate);background:rgba(255,255,255,.05);border-color:var(--line)}
.auth-pitch~.auth-box{padding-top:26px}
html.day .auth-pitch h2 em{background:linear-gradient(90deg,#e08600,#f5a623);-webkit-background-clip:text;background-clip:text}
.neon{filter:drop-shadow(0 0 0 transparent);opacity:.18;transition:opacity .2s}
.neon-on .neon{opacity:1;animation:neon 1.1s steps(1) both,hum 4s 1.1s ease-in-out infinite}
@keyframes neon{0%,22%,48%{opacity:1;filter:drop-shadow(0 0 14px rgba(251,165,26,.9))}12%,36%,60%{opacity:.2;filter:none}70%,100%{opacity:1;filter:drop-shadow(0 0 16px rgba(251,165,26,.75))}}
@keyframes hum{50%{filter:drop-shadow(0 0 22px rgba(251,165,26,.9))}}
html.day .neon-on .neon{animation:neon 1.1s steps(1) both}
@media(max-width:1000px),(max-height:760px){.auth-pitch{display:none}.auth-pitch~.auth-box{padding-top:36px}}

@media(max-width:1000px){
  .auth .garage{display:flex;order:-1;height:clamp(170px,27vh,240px)}
  .auth{grid-template-rows:auto 1fr}
  .garage{--ty:52%}
  .garage .g-hud{display:none}
  .garage:after{height:30%}
  /* the form rises over the photo like a sheet */
  .auth-form{margin-top:-24px;border-radius:24px 24px 0 0;z-index:3;background:#0a101a;backdrop-filter:none;box-shadow:0 -12px 30px rgba(0,0,0,.35);padding-top:16px}
  html.day .auth-form{background:#fff}
  .auth-form:before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:var(--line2)}
  .auth-brand img{height:38px}.auth-brand b{font-size:1.1rem}
  .auth-top .ib,.auth-top .lang a,.auth-top .lang button{width:40px;height:40px}
  .auth-box{padding:22px 0 16px;justify-content:flex-start}
  .auth-box h1{font-size:1.55rem}
  .auth-sub{margin:2px 0 14px}
  .auth-fields{gap:10px}
  .auth-foot{padding-top:12px}
}
@media(prefers-reduced-motion:reduce){.g-scene{transition:none}.g-dust{display:none}}
