html, body { margin:0; }
body { min-height:100vh; font-family:'Segoe UI',system-ui,sans-serif; }
body.lang-bn, body.lang-bn .btn, body.lang-bn input, body.lang-bn select { font-family:'Noto Sans Bengali','Nirmala UI','Segoe UI',sans-serif; }

/* ---------- animated background ---------- */
.auth-bg { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; position:relative; overflow:hidden;
  background:linear-gradient(-45deg,#6a11cb,#2575fc,#00c9a7,#f7971e,#ec008c); background-size:500% 500%; animation:flow 18s ease infinite; }
@keyframes flow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.blob { position:absolute; background:rgba(255,255,255,.14); animation:morph 12s ease-in-out infinite, float 9s ease-in-out infinite; }
.b1 { width:280px; height:280px; top:-70px; left:-70px; } .b2 { width:200px; height:200px; bottom:30px; right:7%; animation-delay:2s; }
.b3 { width:140px; height:140px; bottom:-30px; left:18%; animation-delay:4s; } .b4 { width:100px; height:100px; top:12%; right:12%; animation-delay:1s; }
@keyframes morph { 0%,100%{ border-radius:60% 40% 30% 70% / 60% 30% 70% 40%; } 50%{ border-radius:30% 60% 70% 40% / 50% 60% 30% 60%; } }
@keyframes float { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-26px) } }
.float-sym { position:absolute; bottom:-60px; color:#fff; font-weight:700; pointer-events:none; user-select:none; animation:riseUp linear infinite; }
@keyframes riseUp { 0%{ transform:translateY(0) rotate(0deg); } 100%{ transform:translateY(-115vh) rotate(360deg); } }

/* ---------- card with glowing rotating border + tilt ---------- */
.auth-wrap { position:relative; width:100%; max-width:920px; padding:3px; border-radius:30px; overflow:hidden; z-index:1;
  transition:transform .25s ease-out; animation:cardIn .9s cubic-bezier(.2,.9,.3,1.15) backwards; box-shadow:0 30px 80px rgba(0,0,0,.4); }
.auth-wrap::before { content:''; position:absolute; inset:-60%; background:conic-gradient(from 0deg, transparent 0 55%, rgba(255,255,255,.95) 70%, #00e0b8 80%, transparent 92%); animation:spin 6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes cardIn { from{ opacity:0; transform:translateY(40px) scale(.94); } to{ opacity:1; transform:none; } }
.auth-card { position:relative; background:#fff; border-radius:27px; overflow:hidden; }
.auth-card::after { content:''; position:absolute; inset:0; pointer-events:none; z-index:3;
  background:radial-gradient(520px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.16), transparent 45%); }

/* ---------- left panel ---------- */
.auth-left { position:relative; background:linear-gradient(160deg,#141e30,#243b55 60%,#2575fc); color:#fff; padding:40px 36px; flex-direction:column; justify-content:center; overflow:hidden; }
.auth-left::before { content:''; position:absolute; inset:0; animation:glow 8s ease-in-out infinite alternate;
  background:radial-gradient(circle at 15% 15%, rgba(0,224,184,.28), transparent 50%), radial-gradient(circle at 85% 85%, rgba(247,151,30,.22), transparent 50%); }
@keyframes glow { from{ opacity:.5; transform:scale(1); } to{ opacity:1; transform:scale(1.12); } }
.auth-left > :not(.chip) { position:relative; z-index:1; }
.coin { width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:800; color:#8a5a00;
  background:radial-gradient(circle at 30% 30%, #fff3b0, #f7c948 50%, #c98c00); box-shadow:0 0 0 4px rgba(255,255,255,.15), 0 10px 30px rgba(247,201,72,.5);
  animation:coinSpin 3.2s linear infinite; }
@keyframes coinSpin { from{ transform:perspective(400px) rotateY(0deg); } to{ transform:perspective(400px) rotateY(360deg); } }
.brand { margin-top:14px; font-weight:800; background:linear-gradient(90deg,#fff,#8ee6ff,#fff); background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:shine 4s linear infinite; }
@keyframes shine { to{ background-position:-200% 0; } }
.typed-line { min-height:3.4em; margin:6px 0 0; opacity:.92; font-size:1.02rem; }
.caret { display:inline-block; width:2px; height:1.1em; background:#fff; margin-left:2px; vertical-align:-3px; animation:blink 1s steps(1) infinite; }
@keyframes blink { 50%{ opacity:0; } }
.feat { padding:0; margin:14px 0 0; }
.feat li { list-style:none; margin:9px 0; font-size:.98rem; opacity:0; transform:translateX(-16px); animation:slideIn .6s ease forwards; }
.feat li:nth-child(1){ animation-delay:.6s } .feat li:nth-child(2){ animation-delay:.8s } .feat li:nth-child(3){ animation-delay:1s } .feat li:nth-child(4){ animation-delay:1.2s }
.feat li i { color:#00e0b8; margin-right:10px; }
@keyframes slideIn { to{ opacity:1; transform:none; } }
.mini { margin-top:16px; padding:12px 14px 8px; border-radius:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(4px); }
.bars { display:flex; align-items:flex-end; gap:6px; height:54px; }
.bars span { flex:1; height:100%; border-radius:4px 4px 0 0; background:linear-gradient(180deg,#00e0b8,#2575fc); transform-origin:bottom; animation:barUp 3.4s ease-in-out infinite; animation-delay:var(--d,0s); }
@keyframes barUp { 0%,100%{ transform:scaleY(var(--lo,.3)); } 50%{ transform:scaleY(var(--hi,1)); } }
.spark { width:100%; height:34px; margin-top:6px; }
.spark polyline { fill:none; stroke:#ffd166; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:330; stroke-dashoffset:330; animation:draw 3.4s ease-in-out infinite; }
@keyframes draw { 0%{ stroke-dashoffset:330; } 60%,100%{ stroke-dashoffset:0; } }
.chip { position:absolute; z-index:2; padding:5px 12px; border-radius:999px; font-size:.78rem; font-weight:600; white-space:nowrap; backdrop-filter:blur(6px); animation:bob 5s ease-in-out infinite; }
.chip.up { background:rgba(56,239,125,.2); color:#c4ffd9; border:1px solid rgba(56,239,125,.45); }
.chip.dn { background:rgba(255,94,98,.2); color:#ffd6d8; border:1px solid rgba(255,94,98,.45); }
.c1 { top:22px; right:18px; } .c2 { top:44%; right:12px; animation-delay:1.3s; } .c3 { top:64%; right:22px; animation-delay:2.4s; }
@keyframes bob { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-9px); } }

/* ---------- right panel ---------- */
.auth-right { position:relative; padding:44px 40px; }
.auth-right h3 { font-weight:700; color:#243b55; }
.auth-right h3 .wave { display:inline-block; transform-origin:70% 70%; animation:wave 2.2s ease-in-out infinite; }
@keyframes wave { 0%,60%,100%{ transform:rotate(0); } 10%{ transform:rotate(16deg); } 20%{ transform:rotate(-8deg); } 30%{ transform:rotate(14deg); } 40%{ transform:rotate(-4deg); } 50%{ transform:rotate(10deg); } }
.auth-right > *, .auth-right form > * { opacity:0; animation:fadeUp .6s ease forwards; }
@keyframes fadeUp { from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
.auth-right > :nth-child(1), .auth-right form > :nth-child(1) { animation-delay:.25s; } .auth-right > :nth-child(2), .auth-right form > :nth-child(2) { animation-delay:.35s; }
.auth-right > :nth-child(3), .auth-right form > :nth-child(3) { animation-delay:.45s; } .auth-right > :nth-child(4), .auth-right form > :nth-child(4) { animation-delay:.55s; }
.auth-right > :nth-child(5), .auth-right form > :nth-child(5) { animation-delay:.65s; } .auth-right > :nth-child(6), .auth-right form > :nth-child(6) { animation-delay:.75s; }
.auth-right > :nth-child(7), .auth-right form > :nth-child(7) { animation-delay:.85s; } .auth-right > :nth-child(8), .auth-right form > :nth-child(8) { animation-delay:.95s; }
.auth-right > :nth-child(9), .auth-right form > :nth-child(9) { animation-delay:1.05s; }
.auth-right.shake { animation:shake .55s; }
@keyframes shake { 0%,100%{ transform:translateX(0) } 20%{ transform:translateX(-10px) } 40%{ transform:translateX(9px) } 60%{ transform:translateX(-6px) } 80%{ transform:translateX(4px) } }

.input-group { transition:transform .2s, filter .2s; border-radius:.5rem; }
.input-group:focus-within { transform:translateY(-2px); filter:drop-shadow(0 8px 14px rgba(37,117,252,.28)); }
.input-group-text { background:#f1f4ff; border:0; color:#6a11cb; }
.input-group-text i { display:inline-block; transition:transform .25s, color .25s; }
.input-group:focus-within .input-group-text i { transform:scale(1.3) rotate(-10deg); color:#2575fc; }
.auth-right .form-control { background:#f1f4ff; border:0; padding:.72rem .9rem; transition:background .2s, box-shadow .2s; }
.auth-right .form-control:focus { box-shadow:0 0 0 .2rem rgba(106,17,203,.2); background:#fff; }
.pw-btn { background:#f1f4ff; border:0; color:#6a11cb; }
.caps { color:#d97706; font-size:.82rem; margin-bottom:.9rem; }
.pw-meter .track { height:6px; border-radius:6px; background:#e6eaf5; overflow:hidden; }
.pw-meter .bar { height:100%; width:0; border-radius:6px; transition:width .35s ease, background .35s ease; }
.pw-meter .bar.s1 { width:25%; background:#ff5e62; } .pw-meter .bar.s2 { width:50%; background:#f7971e; }
.pw-meter .bar.s3 { width:75%; background:#2dce89; } .pw-meter .bar.s4 { width:100%; background:#00b894; }

.auth-right .btn-grad { position:relative; overflow:hidden; color:#fff; border:0; padding:.8rem; font-weight:700; border-radius:12px;
  background:linear-gradient(90deg,#6a11cb,#2575fc,#00c9a7,#6a11cb); background-size:300% 100%;
  animation:fadeUp .6s ease forwards, btnFlow 6s linear infinite; transition:transform .15s, box-shadow .15s; }
@keyframes btnFlow { to{ background-position:-300% 0; } }
.auth-right .btn-grad::after { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%; transform:skewX(-20deg); transition:left .6s;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); }
.auth-right .btn-grad:hover { color:#fff; transform:translateY(-2px); box-shadow:0 12px 24px rgba(37,117,252,.42); }
.auth-right .btn-grad:hover::after { left:130%; }
.auth-right .btn-grad:active { transform:translateY(0) scale(.98); }
.ripple { position:absolute; border-radius:50%; background:rgba(255,255,255,.5); transform:scale(0); animation:rip .6s linear; pointer-events:none; }
@keyframes rip { to{ transform:scale(4); opacity:0; } }
.auth-right a { position:relative; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

.auth-footer { position:absolute; bottom:10px; left:0; right:0; text-align:center; color:rgba(255,255,255,.88); font-size:.82rem; z-index:2; text-shadow:0 1px 3px rgba(0,0,0,.35); }
.auth-footer a { color:#fff; text-decoration:underline; }
