/* Login / sign-up: creative animated layer on top of the night-city scene (same look as the admin sign-in). */
.auth-fx{--o1:#FFC54D;--o2:#F7931E;--o3:#E8590C;--ink:#0B2545;max-width:1120px;grid-template-columns:1.05fr 440px;gap:48px;min-height:calc(100vh - 140px);min-height:calc(100dvh - 140px)}

/* floating icons */
.fx-floats{position:absolute;inset:0;pointer-events:none;z-index:-1}
.fx-floats span{position:absolute;font-size:28px;opacity:.16;animation:fx-float 12s ease-in-out infinite}
.fx-floats span:nth-child(1){left:2%;top:70%;animation-delay:-2s}
.fx-floats span:nth-child(2){left:44%;top:6%;font-size:34px;animation-delay:-5s}
.fx-floats span:nth-child(3){right:2%;top:12%;color:var(--o1);font-size:30px;animation-delay:-1s}
.fx-floats span:nth-child(4){left:40%;bottom:6%;animation-delay:-8s}
.fx-floats span:nth-child(5){left:16%;top:4%;color:var(--o1);font-weight:800;animation-delay:-4s}
@keyframes fx-float{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-26px) rotate(8deg)}}

/* hero */
.auth-fx .auth-side{text-align:left;animation:fx-in .9s cubic-bezier(.2,.8,.2,1) both}
.fx-logo{position:relative;width:112px;height:112px;margin:0 0 24px;animation:fx-bob 6s ease-in-out infinite}
.fx-logo img{position:relative;z-index:2;width:100%;height:100%;border-radius:50%;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.fx-ring{position:absolute;inset:-11px;border-radius:50%;border:2px solid transparent;border-top-color:var(--o2);border-right-color:rgba(247,147,30,.35);animation:fx-rot 3.2s linear infinite}
.fx-ring.r2{inset:-21px;border-top-color:transparent;border-bottom-color:rgba(255,197,77,.6);border-left-color:rgba(59,130,246,.45);animation-duration:5.5s;animation-direction:reverse}
.fx-glow{position:absolute;inset:-28px;border-radius:50%;background:radial-gradient(circle,rgba(247,147,30,.45),transparent 65%);animation:fx-pulse 3s ease-in-out infinite}
@keyframes fx-rot{to{transform:rotate(360deg)}}
@keyframes fx-pulse{0%,100%{opacity:.5;transform:scale(.92)}50%{opacity:1;transform:scale(1.06)}}
@keyframes fx-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.has-scene .auth-fx .fx-title{margin:0;font-size:clamp(34px,4.6vw,54px);line-height:1.05;font-weight:800;letter-spacing:-.02em;color:#fff}
.fx-title span{background:linear-gradient(90deg,#fff 0%,#fff 40%,var(--o1) 50%,#fff 60%,#fff 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:fx-sheen 5s ease-in-out infinite}
.fx-title em{font-style:normal;background:linear-gradient(135deg,var(--o1),var(--o2) 50%,var(--o3));-webkit-background-clip:text;background-clip:text;color:transparent}
@keyframes fx-sheen{0%,60%{background-position:100% 0}100%{background-position:-150% 0}}
.has-scene .auth-fx .auth-side p{margin:14px 0 0;font-size:clamp(16px,1.8vw,19px);color:#C9D4E8}
.fx-type{min-height:1.6em}
.fx-type::after{content:"";display:inline-block;width:2px;height:1.05em;margin-left:3px;vertical-align:-3px;background:var(--o2);animation:fx-caret 1s steps(1) infinite}
@keyframes fx-caret{50%{opacity:0}}
.fx-feats{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.fx-feats li{display:flex;align-items:center;gap:10px;padding:10px 16px 10px 10px;border-radius:16px;color:#fff;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:fx-in .7s cubic-bezier(.2,.8,.2,1) both;transition:transform .25s,background .25s}
.fx-feats li:nth-child(1){animation-delay:.35s}.fx-feats li:nth-child(2){animation-delay:.5s}.fx-feats li:nth-child(3){animation-delay:.65s}
.fx-feats li:hover{transform:translateY(-3px);background:rgba(255,255,255,.12)}
.fx-feats b{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,rgba(247,147,30,.3),rgba(232,89,12,.15));font-size:18px}
.fx-feats span{display:flex;flex-direction:column;font-weight:700;font-size:14px;line-height:1.25}
.fx-feats small{font-weight:500;font-size:12px;color:#9FB0CC}

/* card */
.auth-fx{perspective:1200px}
.has-scene .auth-fx .auth-card{position:relative;overflow:hidden;border-radius:30px;padding:32px 30px 24px;background:rgba(255,255,255,.96);box-shadow:0 30px 80px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.4) inset;animation:fx-card-in 1s cubic-bezier(.2,.9,.25,1.15) .15s both;transform-style:preserve-3d;transition:transform .2s ease-out}
.auth-fx .auth-card::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--o3),var(--o1),var(--o2),#3B82F6,var(--o3));background-size:300% 100%;animation:fx-bar 6s linear infinite}
.auth-fx .auth-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(400px circle at var(--mx,50%) var(--my,0%),rgba(247,147,30,.11),transparent 45%)}
@keyframes fx-bar{to{background-position:300% 0}}
@keyframes fx-card-in{from{opacity:0;transform:translateY(40px) rotateX(14deg) scale(.96)}to{opacity:1;transform:none}}
@keyframes fx-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.fx-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.has-scene .auth-fx .fx-head h2{margin:0;font-size:24px;font-weight:800;color:var(--ink)}
.fx-head p{margin:2px 0 0;color:#667085;font-size:14px}
.fx-lock{flex:0 0 52px;height:52px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#0B2545,#1B3A6B);box-shadow:0 10px 24px rgba(11,37,69,.35);animation:fx-wiggle 3.5s ease-in-out infinite}
.fx-lock svg{width:24px;height:24px;fill:var(--o1)}
@keyframes fx-wiggle{0%,100%{transform:rotate(0)}8%{transform:rotate(-10deg)}16%{transform:rotate(8deg)}24%{transform:rotate(0)}}
.auth-fx .auth-tabs{background:#F1F4F9;border-radius:16px;margin-bottom:18px}
.auth-fx .auth-tabs button{border-radius:12px;transition:background .25s,color .25s,box-shadow .25s,transform .15s}
.auth-fx .auth-tabs button:active{transform:scale(.97)}
.auth-fx .error{border-radius:14px;animation:fx-in .4s ease both}
.auth-fx [data-pane]:not([hidden]){animation:fx-in .35s cubic-bezier(.2,.8,.2,1) both}

/* fields */
.auth-fx .field{position:relative;animation:fx-in .6s cubic-bezier(.2,.8,.2,1) both}
.auth-fx .field:nth-of-type(1){animation-delay:.35s}.auth-fx .field:nth-of-type(2){animation-delay:.45s}.auth-fx .field:nth-of-type(3){animation-delay:.55s}.auth-fx .field:nth-of-type(4){animation-delay:.62s}.auth-fx .field:nth-of-type(5){animation-delay:.7s}
.auth-fx .field>span{font-size:13px;font-weight:700;color:#475467;letter-spacing:.01em}
.auth-fx .field input{height:54px;border-radius:16px;background:#F8FAFC;font-size:16px;transition:border-color .2s,box-shadow .2s,background .2s}
.auth-fx .field input:hover{border-color:#CBD5E1}
.auth-fx .field input:focus{background:#fff;border-color:var(--o2);box-shadow:0 0 0 5px rgba(247,147,30,.16)}
.auth-fx .fx-in{position:relative;display:block}
.auth-fx .fx-in input{padding-left:46px}
.auth-fx .fx-in.pw input{padding-right:52px}
.auth-fx .fx-ic{position:absolute;left:15px;top:50%;width:21px;height:21px;margin-top:-10.5px;fill:#98A2B3;pointer-events:none;transition:fill .2s,transform .3s}
.auth-fx .fx-in input:focus~.fx-ic{fill:var(--o2);transform:scale(1.12)}
.auth-fx .fx-eye{position:absolute;right:6px;top:50%;margin-top:-21px;width:42px;height:42px;border:0;border-radius:12px;background:transparent;cursor:pointer;display:grid;place-items:center}
.auth-fx .fx-eye:hover{background:#EEF2F7}
.auth-fx .fx-eye svg{width:22px;height:22px;fill:#667085}
.auth-fx .fx-eye .s{stroke:#667085;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:26;transition:stroke-dashoffset .3s}
.auth-fx .fx-eye[aria-pressed=true] .s{stroke-dashoffset:26}
.auth-fx .fx-eye[aria-pressed=true] svg{fill:var(--o3)}
.auth-fx .fx-caps[hidden]{display:none}
.auth-fx .fx-caps{display:block;margin-top:6px;font-size:12.5px;font-weight:700;color:#B54708}
.auth-fx .phone-row input{height:54px}
.auth-fx .phone-row .cc{border-radius:16px}

/* buttons */
.has-scene .auth-fx .auth-card .btn-orange{position:relative;overflow:hidden;height:56px;border-radius:18px;font-size:17px;font-weight:800;background:linear-gradient(135deg,var(--o1) -20%,var(--o2) 35%,var(--o3) 100%);box-shadow:0 14px 30px rgba(232,89,12,.38);animation:none;transition:transform .15s,box-shadow .2s,filter .2s}
.auth-fx .btn-orange::before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:fx-shimmer 3.2s ease-in-out infinite 1.4s}
@keyframes fx-shimmer{0%{left:-60%}45%,100%{left:130%}}
.auth-fx .btn-orange:hover{transform:translateY(-2px);box-shadow:0 20px 38px rgba(232,89,12,.45)}
.auth-fx .btn-orange:active{transform:scale(.98)}
.auth-fx .btn-orange.fx-busy{pointer-events:none;filter:saturate(.85)}
.auth-fx .btn-orange.fx-busy::after{content:"";display:inline-block;width:18px;height:18px;margin-left:10px;vertical-align:-3px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:fx-rot .7s linear infinite}
.auth-fx .fx-shake{animation:fx-card-in 1s cubic-bezier(.2,.9,.25,1.15) .15s both,fx-shake .5s ease 1.1s}
.auth-fx .fx-shake-now{animation:fx-shake .5s ease!important}
@keyframes fx-shake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-8px)}40%,60%{transform:translateX(8px)}}

/* tablet / phone */
@media (max-width:920px){
  .auth-fx{grid-template-columns:1fr;gap:20px;max-width:520px;min-height:0;padding-top:20px}
  .auth-fx .auth-side{text-align:center;display:flex;flex-direction:column;align-items:center}
  .fx-logo{width:88px;height:88px;margin-bottom:14px}
  .fx-feats{justify-content:center;margin-top:18px}
}
@media (max-width:560px){
  .auth-fx{padding:14px 16px 32px}
  .fx-logo{width:76px;height:76px}
  .fx-ring{inset:-8px}.fx-ring.r2{inset:-15px}
  .has-scene .auth-fx .fx-title{font-size:30px}
  .has-scene .auth-fx .auth-side p{font-size:15px;margin-top:8px}
  .fx-feats{display:none}
  .has-scene .auth-fx .auth-card{padding:24px 18px 18px;border-radius:26px}
  .fx-lock{flex-basis:46px;height:46px;border-radius:15px}
  .has-scene .auth-fx .fx-head h2{font-size:21px}
  .fx-floats span{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .auth-fx *,.auth-fx *::before,.auth-fx *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
