/* ═══════════════════════════════════════════════════════════════════════
   MGL PORTAL — LOGIN SCREEN · NEUMORPHISM (soft UI)
   শুধু ভিজ্যুয়াল। লগইন লজিক (js/01-core.js) ও HTML অপরিবর্তিত।
   এই ফাইল সবার শেষে লোড হয় এবং যেকোনো থিমেই লগইন পেজকে নিউমরফিক রাখে।
   রং বদলাতে নিচের --nu-* ভ্যারিয়েবল বদলান।
   ═══════════════════════════════════════════════════════════════════════ */
html:root:root:root:root #login-screen{
  --nu-bg:#e0e5ec;
  --nu-dark:#bec3cf;
  --nu-light:#ffffff;
  --nu-ink:#3d4468;
  --nu-muted:#565d7b;
  --nu-accent:#6c5ce7;
  --nu-ok:#00a87c;
  --nu-err:#b91c1c;
  background:var(--nu-bg)!important;
  color:var(--nu-ink);
}

/* পুরনো অ্যানিমেটেড ব্যাকগ্রাউন্ড ও সেলাই-বর্ডার লুকানো (নিউমরফিজমে ফ্ল্যাট সারফেস লাগে) */
html:root:root:root:root #login-screen .lbg,
html:root:root:root:root #login-screen .lstitch{display:none!important}

/* ───────── কার্ড ───────── */
html:root:root:root:root #login-screen .lwrap{max-width:420px;animation:nuRise .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes nuRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

html:root:root:root:root #login-screen .lcard{
  background:var(--nu-bg);
  border:0;
  border-radius:30px;
  padding:46px 38px 34px;
  box-shadow:20px 20px 60px var(--nu-dark),-20px -20px 60px var(--nu-light);
  transition:transform .3s ease;
}
html:root:root:root:root #login-screen .lcard:hover{transform:translateY(-4px)}

/* ───────── লোগো ───────── */
html:root:root:root:root #login-screen .llogo{
  width:96px;height:96px;margin:0 auto 22px;padding:16px;
  background:var(--nu-bg);border:0;border-radius:50%;
  box-shadow:8px 8px 20px var(--nu-dark),-8px -8px 20px var(--nu-light);
  display:grid;place-items:center;
  transition:box-shadow .3s ease;
}
html:root:root:root:root #login-screen .llogo:hover{
  box-shadow:4px 4px 10px var(--nu-dark),-4px -4px 10px var(--nu-light),
             inset 4px 4px 10px var(--nu-dark),inset -4px -4px 10px var(--nu-light);
}
html:root:root:root:root #login-screen .llogo::before{display:none}
html:root:root:root:root #login-screen .llogo img{
  width:100%;height:100%;object-fit:contain;border-radius:50%;
  mix-blend-mode:multiply; /* লোগোর সাদা ব্যাকগ্রাউন্ড মিশিয়ে দেয় */
}

html:root:root:root:root #login-screen .ltitle{color:var(--nu-ink);font-size:21px;font-weight:800}
html:root:root:root:root #login-screen .lsub{color:var(--nu-muted);margin-bottom:30px}
html:root:root:root:root #login-screen .lsub::before,
html:root:root:root:root #login-screen .lsub::after{border-top:2px solid transparent;height:3px;width:22px;border-radius:3px;
  background:var(--nu-bg);box-shadow:inset 1px 1px 2px var(--nu-dark),inset -1px -1px 2px var(--nu-light)}

/* ───────── ফর্ম / ইনপুট (ভেতরে বসা) ───────── */
html:root:root:root:root #login-screen .fg{margin-bottom:22px}
html:root:root:root:root #login-screen .fg label{color:var(--nu-muted);font-size:13px;font-weight:600;margin:0 0 9px 6px}

html:root:root:root:root #login-screen .fi{
  height:54px;
  background:var(--nu-bg);
  color:var(--nu-ink);font-weight:500;
  border:0!important;border-radius:15px;
  box-shadow:inset 8px 8px 16px var(--nu-dark),inset -8px -8px 16px var(--nu-light);
  transition:box-shadow .3s ease;
}
html:root:root:root:root #login-screen .fi::placeholder{color:#8c93ad}
html:root:root:root:root #login-screen .fi:hover{background:var(--nu-bg);box-shadow:inset 8px 8px 16px var(--nu-dark),inset -8px -8px 16px var(--nu-light)}
html:root:root:root:root #login-screen .fi:focus{
  background:var(--nu-bg);
  box-shadow:inset 4px 4px 8px var(--nu-dark),inset -4px -4px 8px var(--nu-light),
             0 0 0 2px rgba(108,92,231,.35);
}
html:root:root:root:root #login-screen .fw .fi{padding-left:50px}
html:root:root:root:root #login-screen .fw.has-eye .fi{padding-right:58px}
html:root:root:root:root #login-screen .fw .ic{left:18px;color:var(--nu-muted)}
html:root:root:root:root #login-screen .fw:focus-within .ic{color:var(--nu-accent)}

/* পাসওয়ার্ড চোখ (উঁচু বোতাম) */
html:root:root:root:root #login-screen .eye{
  right:10px;width:36px;height:36px;margin-top:-18px;border-radius:11px;
  background:var(--nu-bg);color:var(--nu-muted);
  box-shadow:4px 4px 10px var(--nu-dark),-4px -4px 10px var(--nu-light);
  transition:box-shadow .2s ease,color .2s ease;
}
html:root:root:root:root #login-screen .eye:hover{background:var(--nu-bg);color:var(--nu-ink)}
html:root:root:root:root #login-screen .eye:active,
html:root:root:root:root #login-screen .eye.on{
  color:var(--nu-accent);
  box-shadow:inset 2px 2px 5px var(--nu-dark),inset -2px -2px 5px var(--nu-light);
}
html:root:root:root:root #login-screen .eye svg{width:18px;height:18px}

/* Caps Lock হিন্ট */
html:root:root:root:root #login-screen .caps{margin:9px 0 0 6px}

/* ───────── এরর / সফল মেসেজ (ভেতরে বসা প্যানেল) ───────── */
html:root:root:root:root #login-screen .al{
  background:var(--nu-bg);border:0;border-radius:15px;padding:13px 16px;margin-bottom:22px;
  box-shadow:inset 5px 5px 10px var(--nu-dark),inset -5px -5px 10px var(--nu-light);
}
html:root:root:root:root #login-screen .al.ae{background:var(--nu-bg);color:var(--nu-err);border:0}
html:root:root:root:root #login-screen .al.ag{background:var(--nu-bg);color:var(--nu-ok);border:0}

/* ───────── বাটন (উঁচু → চাপলে ভেতরে) ───────── */
html:root:root:root:root #login-screen .btn.bfull{
  height:56px;margin-top:10px;
  background:var(--nu-bg);
  color:var(--nu-ink);font-size:16px;font-weight:700;
  border:0;border-radius:15px;
  box-shadow:8px 8px 20px var(--nu-dark),-8px -8px 20px var(--nu-light);
  filter:none;
  transition:transform .25s ease,box-shadow .25s ease,color .25s ease,background .25s ease;
}
html:root:root:root:root #login-screen .btn.bfull::after{
  content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-20deg);transition:none;
}
html:root:root:root:root #login-screen .btn.bfull:hover:not(:disabled){
  background:linear-gradient(135deg,#7c6cf0,#5b4bd6);color:#fff;filter:none;transform:translateY(-2px);
  box-shadow:10px 12px 26px rgba(108,92,231,.45),-8px -8px 20px var(--nu-light);
}
html:root:root:root:root #login-screen .btn.bfull:hover:not(:disabled)::after{left:130%;transition:left .75s ease}
html:root:root:root:root #login-screen .btn.bfull:active:not(:disabled){
  transform:translateY(0);
  box-shadow:inset 4px 4px 10px var(--nu-dark),inset -4px -4px 10px var(--nu-light);
}
html:root:root:root:root #login-screen .btn.bfull:focus-visible{outline:2px solid rgba(108,92,231,.55);outline-offset:3px}
html:root:root:root:root #login-screen .btn.bfull:disabled{
  filter:none;color:var(--nu-muted);cursor:progress;
  box-shadow:inset 4px 4px 10px var(--nu-dark),inset -4px -4px 10px var(--nu-light);
}
html:root:root:root:root #login-screen #login-btn:disabled::before{
  border:3px solid var(--nu-dark);border-top-color:var(--nu-muted);
}
/* Change Password বাটনে সবুজ টোন */
html:root:root:root:root #login-screen #v-cp .btn.bfull{background:var(--nu-bg);color:var(--nu-ok);box-shadow:8px 8px 20px var(--nu-dark),-8px -8px 20px var(--nu-light)}
html:root:root:root:root #login-screen #v-cp .btn.bfull:hover:not(:disabled){background:linear-gradient(135deg,#10c79a,#00a07a);color:#fff;box-shadow:10px 12px 26px rgba(0,168,124,.4),-8px -8px 20px var(--nu-light)}
html:root:root:root:root #login-screen #v-cp .btn.bfull:active:not(:disabled){box-shadow:inset 4px 4px 10px var(--nu-dark),inset -4px -4px 10px var(--nu-light)}

/* ───────── লিংক / ফুটার ───────── */
html:root:root:root:root #login-screen .llink{color:var(--nu-muted);margin-top:26px}
html:root:root:root:root #login-screen .llink:hover{color:var(--nu-ink)}
html:root:root:root:root #login-screen .lfoot{border-top:0;color:var(--nu-muted)}

/* থিম বদলের বোতাম (কোণায়) */
html:root:root:root:root .thm-login{
  background:var(--nu-bg,#e0e5ec);color:#565d7b;border:0;
  box-shadow:5px 5px 12px #bec3cf,-5px -5px 12px #fff;
}
html:root:root:root:root .thm-login:hover{background:#e0e5ec;color:#3d4468}
html:root:root:root:root .thm-login:active{box-shadow:inset 3px 3px 7px #bec3cf,inset -3px -3px 7px #fff}

/* ───────── মোবাইল ───────── */
@media (max-width:480px){
  html:root:root:root:root #login-screen .lcard{padding:36px 24px 28px;border-radius:22px;
    box-shadow:12px 12px 32px var(--nu-dark),-12px -12px 32px var(--nu-light)}
  html:root:root:root:root #login-screen .llogo{width:84px;height:84px}
  html:root:root:root:root #login-screen .ltitle{font-size:18.5px}
  html:root:root:root:root #login-screen .fi{height:52px}
}

@media (prefers-reduced-motion:reduce){
  html:root:root:root:root #login-screen .lwrap,html:root:root:root:root #login-screen .lcard,html:root:root:root:root #login-screen .llogo,html:root:root:root:root #login-screen .btn.bfull{animation:none!important;transition:none!important}
}

/* ═══════════════════════════════════════════════════════════════════════
   লগইন ইফেক্ট: ভুল → লাল ফ্ল্যাশ · সঠিক → সবুজ + টিক অ্যানিমেশন
   (js/31-login-fx.js ক্লাস বসায়: .nu-bad / .nu-good / .nu-shake / .nu-ok / .nu-leave)
   ═══════════════════════════════════════════════════════════════════════ */
html:root:root:root:root #login-screen{--nu-red:#e5484d;--nu-red-soft:#f7d4d6;--nu-green:#00b386;--nu-green-soft:#cdeee3}

/* ───────── ভুল: লাল মার্ক + ফ্ল্যাশ ───────── */
html:root:root:root:root #login-screen .fw.nu-bad .fi,
html:root:root:root:root #login-screen .fw.nu-bad .fi:focus{
  color:#8f1d22;
  box-shadow:inset 6px 6px 12px var(--nu-dark),inset -6px -6px 12px var(--nu-light),
             0 0 0 2px var(--nu-red),0 0 16px rgba(229,72,77,.38);
  animation:nuFlashBad .9s ease-in-out 1;
}
html:root:root:root:root #login-screen .fw.nu-bad .ic{color:var(--nu-red)}
html:root:root:root:root #login-screen .fw.nu-bad .eye{color:var(--nu-red)}
html:root:root:root:root #login-screen .fw.nu-bad::after{ /* ডান পাশে ছোট লাল "!" চিহ্ন */
  content:"!";position:absolute;right:14px;top:50%;width:22px;height:22px;margin-top:-11px;
  display:grid;place-items:center;border-radius:50%;
  background:var(--nu-red);color:#fff;font:800 13px/1 'DM Sans',sans-serif;
  animation:nuPop .35s cubic-bezier(.2,1.4,.4,1) both;pointer-events:none;
}
html:root:root:root:root #login-screen .fw.has-eye.nu-bad::after{right:54px}
html:root:root:root:root #login-screen .fw.has-eye.nu-bad .fi{padding-right:84px}
@keyframes nuFlashBad{
  0%,100%{background:var(--nu-bg)}
  16%,50%,84%{background:var(--nu-red-soft)}
  33%,67%{background:var(--nu-bg)}
}
@keyframes nuPop{from{transform:scale(0)}to{transform:scale(1)}}

html:root:root:root:root #login-screen .lcard.nu-shake{animation:nuShake .5s cubic-bezier(.36,.07,.19,.97) both}
@keyframes nuShake{
  10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}
  30%,50%,70%{transform:translateX(-8px)}40%,60%{transform:translateX(8px)}
}

/* ───────── সঠিক: সবুজ + টিক ───────── */
html:root:root:root:root #login-screen .lcard.nu-ok{pointer-events:none;animation:nuCardOk 1.1s ease both}
@keyframes nuCardOk{
  0%{box-shadow:20px 20px 60px var(--nu-dark),-20px -20px 60px var(--nu-light)}
  45%{box-shadow:20px 20px 60px var(--nu-dark),-20px -20px 60px var(--nu-light),0 0 0 3px rgba(0,179,134,.28),0 0 70px rgba(0,179,134,.45)}
  100%{box-shadow:20px 20px 60px var(--nu-dark),-20px -20px 60px var(--nu-light),0 0 0 3px rgba(0,179,134,.18),0 0 50px rgba(0,179,134,.3)}
}
html:root:root:root:root #login-screen .fw.nu-good .fi{
  box-shadow:inset 6px 6px 12px var(--nu-dark),inset -6px -6px 12px var(--nu-light),
             0 0 0 2px var(--nu-green),0 0 16px rgba(0,179,134,.35);
  animation:nuFlashGood .8s ease-in-out 1;
}
html:root:root:root:root #login-screen .fw.nu-good .ic{color:var(--nu-green)}
@keyframes nuFlashGood{0%,100%{background:var(--nu-bg)}40%{background:var(--nu-green-soft)}}

/* লোগোর চারপাশে সবুজ রিং ছড়িয়ে পড়ে */
html:root:root:root:root #login-screen .lcard.nu-ok .llogo{color:var(--nu-green)}
html:root:root:root:root #login-screen .lcard.nu-ok .llogo::before{
  display:block;content:"";position:absolute;inset:-2px;border-radius:50%;
  border:3px solid var(--nu-green);opacity:0;animation:nuRing 1s ease-out 1 both;
}
@keyframes nuRing{0%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}

/* বাটন: সবুজ হয়ে যায়, লেখার জায়গায় টিক আঁকা হয় */
html:root:root:root:root #login-screen .lcard.nu-ok #login-btn{
  color:transparent!important;
  box-shadow:inset 4px 4px 10px var(--nu-dark),inset -4px -4px 10px var(--nu-light),0 0 0 2px var(--nu-green),0 0 22px rgba(0,179,134,.4);
  animation:nuBtnOk .5s ease both;
}
html:root:root:root:root #login-screen .lcard.nu-ok #login-btn::after{display:none}
html:root:root:root:root #login-screen .lcard.nu-ok #login-btn::before{
  content:"";position:absolute;left:50%;top:50%;width:11px;height:22px;
  margin:-14px 0 0 -5px;border:solid var(--nu-green);border-width:0 4px 4px 0;border-radius:2px;
  transform:rotate(45deg) scale(0);transform-origin:70% 70%;opacity:1;
  animation:nuCheck .45s .25s cubic-bezier(.2,1.5,.4,1) forwards;
}
@keyframes nuBtnOk{from{transform:scale(1)}50%{transform:scale(.97)}to{transform:scale(1)}}
@keyframes nuCheck{from{transform:rotate(45deg) scale(0)}to{transform:rotate(45deg) scale(1)}}

/* পোর্টালে যাওয়ার আগে কার্ড নরমভাবে মিলিয়ে যায় */
html:root:root:root:root #login-screen .lcard.nu-leave{
  animation:none;opacity:0;transform:translateY(-14px) scale(.95);
  transition:opacity .38s ease,transform .38s ease;
  box-shadow:20px 20px 60px var(--nu-dark),-20px -20px 60px var(--nu-light),0 0 50px rgba(0,179,134,.3);
}

@media (max-width:480px){
  html:root:root:root:root #login-screen .lcard.nu-ok{animation-name:nuCardOkM}
}
@keyframes nuCardOkM{
  0%{box-shadow:12px 12px 32px var(--nu-dark),-12px -12px 32px var(--nu-light)}
  45%{box-shadow:12px 12px 32px var(--nu-dark),-12px -12px 32px var(--nu-light),0 0 0 3px rgba(0,179,134,.28),0 0 50px rgba(0,179,134,.45)}
  100%{box-shadow:12px 12px 32px var(--nu-dark),-12px -12px 32px var(--nu-light),0 0 0 3px rgba(0,179,134,.18),0 0 36px rgba(0,179,134,.3)}
}
@media (prefers-reduced-motion:reduce){
  html:root:root:root:root #login-screen .fw.nu-bad .fi,html:root:root:root:root #login-screen .fw.nu-good .fi,html:root:root:root:root #login-screen .lcard.nu-shake,html:root:root:root:root #login-screen .lcard.nu-ok,html:root:root:root:root #login-screen .lcard.nu-ok #login-btn,html:root:root:root:root #login-screen .lcard.nu-ok .llogo::before{animation-duration:.001ms!important}
}
