/* Login / customer pages: animated maroon + white background with security touches */
.auth-page{position:relative;min-height:100vh;overflow-x:hidden;background:linear-gradient(135deg,#ffffff 0%,#fdf4f6 50%,#ffffff 100%)}
.auth-page .auth-wrap{position:relative;z-index:2;background:none}

/* ---------- Background layers ---------- */
.auth-bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.auth-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(60% 55% at 50% 50%,rgba(255,255,255,.96),rgba(255,255,255,.55) 55%,rgba(255,255,255,0) 100%)}
.bg-svg{position:absolute;inset:0;width:100%;height:100%}
.wave{transform-box:fill-box}
.w1{animation:swayA 14s ease-in-out infinite}
.w2{animation:swayB 18s ease-in-out infinite}
.w3{animation:swayB 16s ease-in-out infinite}
.w4{animation:swayA 20s ease-in-out infinite}
@keyframes swayA{0%,100%{transform:translate(0,0)}50%{transform:translate(18px,12px)}}
@keyframes swayB{0%,100%{transform:translate(0,0)}50%{transform:translate(-16px,-10px)}}

/* floating soft dots (bokeh) */
.dot{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.95),rgba(232,180,191,.35) 60%,rgba(232,180,191,0));animation:floatUp var(--d,16s) ease-in-out infinite;animation-delay:var(--dl,0s)}
@keyframes floatUp{0%,100%{transform:translateY(0) scale(1);opacity:.35}50%{transform:translateY(-34px) scale(1.15);opacity:.85}}

/* twinkling sparkles */
.spark{position:absolute;width:14px;height:14px;background:#fff;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);filter:drop-shadow(0 0 4px rgba(232,180,191,.9));animation:twinkle 3.4s ease-in-out infinite}
@keyframes twinkle{0%,100%{transform:scale(.6) rotate(0);opacity:.3}50%{transform:scale(1.2) rotate(45deg);opacity:1}}

/* faint security icons drifting in the background */
.sec-icon{position:absolute;color:#800020;opacity:.09;animation:drift 20s ease-in-out infinite}
.sec-icon svg{display:block}
@keyframes drift{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-22px) rotate(6deg)}}

/* ---------- Card ---------- */
.auth-page .auth-card{position:relative;overflow:hidden;background:rgba(255,255,255,.84);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.8);box-shadow:0 30px 60px -20px rgba(128,0,32,.35),0 0 0 1px rgba(128,0,32,.06);animation:cardIn .7s cubic-bezier(.2,.8,.2,1) both}
.auth-page .auth-card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#800020,#c9a227,#800020);background-size:200% 100%;animation:sheen 4s linear infinite}
@keyframes cardIn{from{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:none}}
@keyframes sheen{0%{background-position:0 0}100%{background-position:200% 0}}

/* ---------- Secure note under the form ---------- */
.auth-secure{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;padding:9px 14px;border-radius:999px;background:rgba(251,242,244,.92);border:1px solid #efc9d2;color:#800020;font-size:.76rem;font-weight:600;line-height:1.35;text-align:left}
.secure-ic{position:relative;flex:none;width:22px;height:22px;display:grid;place-items:center}
.secure-ic::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid rgba(128,0,32,.35);animation:ring 2.4s ease-out infinite}
.secure-ic .chk{stroke-dasharray:14;stroke-dashoffset:14;animation:draw 3s ease-in-out infinite}
/* ---------- Uploaded background image ---------- */
.auth-bg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;object-position:center;animation:bgBreathe 8s ease-in-out infinite alternate}
@keyframes bgBreathe{0%{filter:brightness(1) saturate(1)}100%{filter:brightness(1.06) saturate(1.12)}}
/* tall phone screens: keep the image natural instead of stretching */
@media (max-aspect-ratio:3/4){.auth-bg-img{object-fit:cover}}
/* soft light glow behind the card so the form stays easy to read */
.auth-bg.has-image::after{display:none}
@media (prefers-reduced-motion:reduce){.auth-bg-img{animation:none !important}}
@keyframes ring{0%{transform:scale(.7);opacity:.9}100%{transform:scale(1.5);opacity:0}}
@keyframes draw{0%{stroke-dashoffset:14}35%,80%{stroke-dashoffset:0}100%{stroke-dashoffset:14}}

@media (max-width:560px){
    .auth-page .auth-card{padding:28px 20px}
    .sec-icon{display:none}
}
@media (prefers-reduced-motion:reduce){
    .wave,.dot,.spark,.sec-icon,.auth-card,.auth-card::before,.secure-ic::after,.secure-ic .chk{animation:none !important}
    .secure-ic .chk{stroke-dashoffset:0}
}
.dot-0{left:8%;top:5%;width:8px;height:8px;--d:12s;--dl:-0s}
.dot-1{left:45%;top:58%;width:15px;height:15px;--d:15s;--dl:-1s}
.dot-2{left:82%;top:19%;width:22px;height:22px;--d:18s;--dl:-2s}
.dot-3{left:23%;top:72%;width:11px;height:11px;--d:21s;--dl:-3s}
.dot-4{left:60%;top:33%;width:18px;height:18px;--d:14s;--dl:-4s}
.dot-5{left:1%;top:86%;width:25px;height:25px;--d:17s;--dl:-5s}
.dot-6{left:38%;top:47%;width:14px;height:14px;--d:20s;--dl:-6s}
.dot-7{left:75%;top:8%;width:21px;height:21px;--d:13s;--dl:-7s}
.dot-8{left:16%;top:61%;width:10px;height:10px;--d:16s;--dl:-8s}
.dot-9{left:53%;top:22%;width:17px;height:17px;--d:19s;--dl:-9s}
.dot-10{left:90%;top:75%;width:24px;height:24px;--d:12s;--dl:-10s}
.dot-11{left:31%;top:36%;width:13px;height:13px;--d:15s;--dl:-11s}
.dot-12{left:68%;top:89%;width:20px;height:20px;--d:18s;--dl:-12s}
.dot-13{left:9%;top:50%;width:9px;height:9px;--d:21s;--dl:-13s}

.spark-1{left:12%;top:18%;animation-delay:.2s}
.spark-2{left:86%;top:30%;animation-delay:1.1s}
.spark-3{left:78%;top:82%;animation-delay:2s}
.spark-4{left:20%;top:76%;animation-delay:.7s}
.sec-icon-1{left:7%;top:58%;animation-delay:-3s}
.sec-icon-2{right:8%;top:14%;animation-delay:-9s}
.sec-icon-3{right:12%;bottom:10%;animation-delay:-14s}
.auth-head .auth-logo{height:118px;width:auto;margin:0 auto -28px;display:block}
.auth-note{text-align:center;color:var(--text-2);font-size:.9rem;margin:0 0 18px}
.error.otp-error{text-align:center;min-height:18px}
.otp-resend{text-align:center;margin-top:16px}
.text-sm.otp-resend-note{color:var(--text-2)}
.otp-resend-wrap{margin-top:8px}
.otp-i-0{--i:0}
.otp-i-1{--i:1}
.otp-i-2{--i:2}
.otp-i-3{--i:3}
.otp-i-4{--i:4}
.otp-i-5{--i:5}