:root{
      --purple:#4c2a86;
      --purple-dark:#24113f;
      --purple-soft:#f7f2ff;
      --gold:#fdb821;
      --text:#21152f;
      --muted:#746987;
      --line:rgba(76,42,134,.13);
      --shadow:0 28px 80px rgba(36,17,63,.16);
      --white:#fff;
      --green:#06c755;
      --blue:#1877f2;
    }

    *{box-sizing:border-box}

    body{
      margin:0;
      min-height:100vh;
      font-family:'Sarabun',sans-serif;
      color:var(--text);
      background:
        radial-gradient(circle at 12% 12%,rgba(253,184,33,.20),transparent 24%),
        radial-gradient(circle at 88% 15%,rgba(109,63,209,.18),transparent 28%),
        linear-gradient(135deg,#fbf8ff 0%,#ffffff 42%,#f5efff 100%);
      display:grid;
      /* place-items:center; */
      overflow-x:hidden;
      padding:24px 0;
    }

    a{text-decoration:none;color:inherit}

    .login-page{
      width:min(960px,calc(100% - 28px));
      display:grid;
      grid-template-columns:.95fr .9fr;
      background:rgba(255,255,255,.82);
      border:1px solid rgba(255,255,255,.9);
      border-radius:28px;
      box-shadow:var(--shadow);
      overflow:hidden;
      backdrop-filter:blur(18px);
      position:relative;
    }

    .login-page-shell{
      width:100%;
      /* display:grid;
      align-items:center; */
      justify-content:center;
      min-height:100vh;
      padding:0;
      place-items: center;
    }

    .login-page:before{
      content:'';
      position:absolute;
      inset:0;
      background:
        linear-gradient(rgba(76,42,134,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,42,134,.025) 1px, transparent 1px);
      background-size:42px 42px;
      pointer-events:none;
      opacity:.7;
    }

    .brand-panel,
    .login-panel{
      position:relative;
      z-index:1;
    }

    .brand-panel{
      min-height:590px;
      padding:34px;
      background:
        radial-gradient(circle at 15% 15%,rgba(253,184,33,.25),transparent 26%),
        linear-gradient(145deg,#180b2e 0%,#321766 55%,#120821 100%);
      color:#fff;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      overflow:hidden;
    }

    .brand-panel:after{
      content:'';
      position:absolute;
      right:-160px;
      bottom:-160px;
      width:420px;
      height:420px;
      border-radius:50%;
      background:radial-gradient(circle,rgba(253,184,33,.22),transparent 70%);
      pointer-events:none;
    }

    .brand{
      display:flex;
      align-items:center;
      gap:14px;
      position:relative;
      z-index:2;
    }

    .brand-mark{
      width:46px;
      height:46px;
      border-radius:16px;
      overflow:hidden;
      flex:0 0 auto;
      box-shadow:0 18px 40px rgba(0,0,0,.24);
    }



    .brand-mark img{
      width:46px;
      height:46px;
      display:block;
    }

.brand-name strong{
      display:block;
      font-size:22px;
      font-weight:700;
      letter-spacing:-.4px;
    }

    .brand-name span{
      display:block;
      font-size:12px;
      color:rgba(255,255,255,.68);
      font-weight:600;
      text-transform:uppercase;
      letter-spacing:.9px;
      margin-top:2px;
    }

    .hero-copy{
      position:relative;
      z-index:2;
      max-width:420px;
      margin-top:42px;
    }

    .hero-copy .badge{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:8px 14px;
      border-radius:999px;
      background:rgba(253,184,33,.13);
      border:1px solid rgba(253,184,33,.26);
      color:#ffd56f;
      font-size:13px;
      font-weight:700;
      margin-bottom:18px;
    }

    .hero-copy h1{
      font-size:clamp(28px,3.3vw,40px);
      line-height:1.28;
      margin:0 0 14px;
      letter-spacing:-.8px;
    }

    .hero-copy p{
      margin:0;
      color:rgba(255,255,255,.76);
      line-height:1.8;
      font-size:14px;
    }

    .feature-list{
      position:relative;
      z-index:2;
      display:grid;
      gap:10px;
      margin-top:22px;
    }

    .feature-item{
      display:flex;
      gap:12px;
      align-items:flex-start;
      padding:12px;
      border-radius:16px;
      background:rgba(255,255,255,.07);
      border:1px solid rgba(255,255,255,.10);
      backdrop-filter:blur(10px);
    }

    .feature-icon{
      width:34px;
      height:34px;
      border-radius:13px;
      display:grid;
      place-items:center;
      background:linear-gradient(135deg,#ffd86b,#fdb821);
      color:#24113f;
      flex:0 0 auto;
    }

    .feature-item b{
      display:block;
      font-size:14px;
      color:#fff;
      margin-bottom:2px;
    }

    .feature-item span{
      display:block;
      font-size:12px;
      color:rgba(255,255,255,.66);
      line-height:1.55;
    }

    .panel-footer{
      position:relative;
      z-index:2;
      display:flex;
      gap:10px;
      flex-wrap:wrap;
    }

    .panel-footer span{
      padding:8px 12px;
      border-radius:999px;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.10);
      color:rgba(255,255,255,.72);
      font-size:12px;
      font-weight:600;
    }

    .login-panel{
      padding:38px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:rgba(255,255,255,.88);
    }

    .login-page-shell.dark-layout .login-page{
      background:rgba(20,10,36,.88);
      border-color:rgba(255,255,255,.08);
      box-shadow:0 28px 80px rgba(0,0,0,.46);
    }

    .login-page-shell.dark-layout .login-panel{
      background:rgba(24,11,46,.82);
    }

    .login-page-shell.dark-layout .login-head h2,
    .login-page-shell.dark-layout .field label,
    .login-page-shell.dark-layout .help-menu-head b,
    .login-page-shell.dark-layout .help-link-text b,
    .login-page-shell.dark-layout .support-head h3,
    .login-page-shell.dark-layout .support-field label,
    .login-page-shell.dark-layout .forgot-head h3,
    .login-page-shell.dark-layout .forgot-field label{
      color:#f5efff;
    }

    .login-page-shell.dark-layout .login-head p,
    .login-page-shell.dark-layout .social-note,
    .login-page-shell.dark-layout .support-head p,
    .login-page-shell.dark-layout .support-note,
    .login-page-shell.dark-layout .forgot-head p,
    .login-page-shell.dark-layout .forgot-note,
    .login-page-shell.dark-layout .help-menu-head span,
    .login-page-shell.dark-layout .help-link-text span,
    .login-page-shell.dark-layout .signup,
    .login-page-shell.dark-layout .security-note{
      color:rgba(245,239,255,.74);
    }

    .login-page-shell.dark-layout .input,
    .login-page-shell.dark-layout .support-field input,
    .login-page-shell.dark-layout .support-field select,
    .login-page-shell.dark-layout .support-field textarea,
    .login-page-shell.dark-layout .forgot-field input{
      background:rgba(255,255,255,.96);
      color:#21152f;
    }

    .login-page-shell.dark-layout .help-menu,
    .login-page-shell.dark-layout .support-dialog,
    .login-page-shell.dark-layout .forgot-dialog{
      background:rgba(27,14,49,.96);
      border-color:rgba(255,255,255,.08);
      box-shadow:0 30px 80px rgba(0,0,0,.46);
    }

    .login-page-shell.dark-layout .help-link{
      color:#f5efff;
    }

    .login-page-shell.dark-layout .help-link:hover{
      background:rgba(255,255,255,.06);
    }

    .login-page-shell.dark-layout .forgot-note{
      background:rgba(255,255,255,.06);
      border-color:rgba(255,255,255,.08);
    }

    html[dir='rtl'] body{
      direction:rtl;
    }

    html[dir='rtl'] .brand,
    html[dir='rtl'] .feature-item,
    html[dir='rtl'] .help-link,
    html[dir='rtl'] .remember,
    html[dir='rtl'] .security-note{
      flex-direction:row-reverse;
    }

    html[dir='rtl'] .hero-copy,
    html[dir='rtl'] .login-head,
    html[dir='rtl'] .field label,
    html[dir='rtl'] .help-menu-head,
    html[dir='rtl'] .help-link-text,
    html[dir='rtl'] .support-head,
    html[dir='rtl'] .support-field label,
    html[dir='rtl'] .forgot-head,
    html[dir='rtl'] .forgot-field label,
    html[dir='rtl'] .signup{
      text-align:right;
    }

    html[dir='rtl'] .input-wrap svg,
    html[dir='rtl'] .forgot-input-wrap svg{
      left:auto;
      right:15px;
    }

    html[dir='rtl'] .input{
      padding:0 44px 0 15px;
    }

    html[dir='rtl'] .password-wrap .input{
      padding-right:15px;
      padding-left:54px;
    }

    html[dir='rtl'] .toggle-password{
      right:auto;
      left:12px;
    }

    html[dir='rtl'] .forgot-field input{
      padding:0 44px 0 14px;
    }

    html[dir='rtl'] .form-options,
    html[dir='rtl'] .panel-footer{
      flex-direction:row-reverse;
    }

    html[dir='rtl'] .help-menu{
      right:auto;
      left:0;
    }

    html[dir='rtl'] .help-link:hover{
      transform:translateX(2px);
    }

    html[dir='rtl'] .support-close,
    html[dir='rtl'] .forgot-close{
      right:auto;
      left:14px;
    }

    .login-card{
      width:100%;
      max-width:385px;
    }

    .login-head{
      margin-bottom:20px;
    }

    .login-head .mini-badge{
      display:inline-flex;
      align-items:center;
      gap:7px;
      padding:7px 13px;
      border-radius:999px;
      background:rgba(76,42,134,.08);
      color:var(--purple);
      font-size:13px;
      font-weight:700;
      margin-bottom:14px;
    }

    .login-head h2{
      font-size:30px;
      line-height:1.25;
      margin:0 0 8px;
      color:var(--purple-dark);
      letter-spacing:-.7px;
    }

    .login-head p{
      margin:0;
      color:var(--muted);
      line-height:1.7;
      font-size:14px;
    }

    .social-grid{
      display:grid;
      gap:10px;
      margin-bottom:18px;
    }

    .social-btn{
      width:100%;
      height:46px;
      border-radius:14px;
      border:1px solid var(--line);
      background:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:12px;
      font-family:'Sarabun',sans-serif;
      font-size:14px;
      font-weight:700;
      color:#2f2740;
      cursor:pointer;
      transition:.22s ease;
      box-shadow:0 10px 26px rgba(36,17,63,.05);
    }

    .social-btn:hover{
      transform:translateY(-2px);
      box-shadow:0 16px 34px rgba(36,17,63,.10);
      border-color:rgba(76,42,134,.22);
    }

    .social-btn svg{
      width:21px;
      height:21px;
      flex:0 0 auto;
    }

    .social-btn.facebook{
      background:#1877f2;
      color:#fff;
      border-color:#1877f2;
    }

    .social-btn.line{
      background:#06c755;
      color:#fff;
      border-color:#06c755;
    }

    .social-btn.google{
      background:#fff;
      color:#2f2740;
    }

    .divider{
      display:flex;
      align-items:center;
      gap:14px;
      color:#9b92aa;
      font-size:13px;
      margin:18px 0;
    }

    .divider:before,
    .divider:after{
      content:'';
      height:1px;
      flex:1;
      background:rgba(76,42,134,.12);
    }

    .form{
      display:grid;
      gap:12px;
    }

    .field label{
      display:block;
      color:#4f435f;
      font-size:13px;
      font-weight:700;
      margin-bottom:8px;
    }

    .input-wrap{
      position:relative;
    }

    .input-wrap svg{
      position:absolute;
      left:15px;
      top:50%;
      transform:translateY(-50%);
      width:18px;
      height:18px;
      color:#8d839c;
    }

    .input{
      width:100%;
      height:46px;
      border-radius:14px;
      border:1px solid rgba(76,42,134,.13);
      background:#fff;
      padding:0 15px 0 44px;
      font-family:'Sarabun',sans-serif;
      font-size:14px;
      color:var(--text);
      outline:none;
      transition:.2s;
    }

    .input:focus{
      border-color:rgba(76,42,134,.42);
      box-shadow:0 0 0 4px rgba(76,42,134,.08);
    }

    .form-options{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      margin:2px 0 4px;
      font-size:13px;
      color:var(--muted);
    }

    .remember{
      display:flex;
      align-items:center;
      gap:8px;
      cursor:pointer;
    }

    .remember input{
      accent-color:var(--purple);
    }

    .forgot{
      color:var(--purple);
      font-weight:700;
    }

    .login-btn{
      height:48px;
      border:0;
      border-radius:15px;
      background:linear-gradient(135deg,var(--purple),var(--purple-dark));
      color:#fff;
      font-family:'Sarabun',sans-serif;
      font-size:15px;
      font-weight:700;
      cursor:pointer;
      box-shadow:0 16px 34px rgba(76,42,134,.24);
      transition:.22s;
    }

    .login-btn:hover{
      transform:translateY(-2px);
      box-shadow:0 22px 44px rgba(76,42,134,.30);
    }

    .signup{
      margin-top:16px;
      text-align:center;
      color:var(--muted);
      font-size:14px;
    }

    .signup a{
      color:var(--purple);
      font-weight:700;
    }

    .security-note{
      margin-top:16px;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      color:#7b728a;
      font-size:12px;
    }

    .security-note svg{
      width:16px;
      height:16px;
      color:var(--gold);
    }

    .help-floating{
      position:fixed;
      right:22px;
      bottom:22px;
      z-index:50;
      font-family:'Sarabun',sans-serif;
    }

    .help-toggle{
      width:58px;
      height:58px;
      border:0;
      border-radius:22px;
      cursor:pointer;
      color:#24113f;
      background:linear-gradient(135deg,#ffd86b,#fdb821);
      box-shadow:0 18px 42px rgba(253,184,33,.36);
      display:grid;
      place-items:center;
      transition:.25s;
    }

    .help-toggle:hover{
      transform:translateY(-3px);
      box-shadow:0 24px 52px rgba(253,184,33,.44);
    }

    .help-toggle svg{
      width:26px;
      height:26px;
    }

    .help-menu{
      position:absolute;
      right:0;
      bottom:74px;
      width:270px;
      background:rgba(255,255,255,.96);
      border:1px solid rgba(76,42,134,.12);
      border-radius:24px;
      box-shadow:0 24px 70px rgba(36,17,63,.18);
      backdrop-filter:blur(16px);
      padding:12px;
      display:none;
    }

    .help-floating.open .help-menu{
      display:block;
      animation:helpIn .2s ease both;
    }

    @keyframes helpIn{
      from{opacity:0;transform:translateY(10px) scale(.96)}
      to{opacity:1;transform:translateY(0) scale(1)}
    }

    .help-menu-head{
      padding:12px 12px 10px;
      border-bottom:1px solid rgba(76,42,134,.08);
      margin-bottom:8px;
    }

    .help-menu-head b{
      display:block;
      color:#24113f;
      font-size:15px;
      margin-bottom:3px;
    }

    .help-menu-head span{
      display:block;
      color:#746987;
      font-size:12px;
      line-height:1.5;
    }

    .help-link{
      display:flex;
      align-items:center;
      gap:11px;
      padding:12px;
      border-radius:16px;
      color:#332544;
      transition:.2s;
    }

    .help-link:hover{
      background:#f7f2ff;
      transform:translateX(-2px);
    }

    .help-link-icon{
      width:36px;
      height:36px;
      border-radius:14px;
      display:grid;
      place-items:center;
      color:#fff;
      background:linear-gradient(135deg,#6d3fd1,#24113f);
      flex:0 0 auto;
    }

    .help-link-icon.gold{
      background:linear-gradient(135deg,#ffd86b,#fdb821);
      color:#24113f;
    }

    .help-link-icon.green{
      background:linear-gradient(135deg,#20d86b,#06c755);
      color:#fff;
    }

    .help-link-text b{
      display:block;
      font-size:13px;
      color:#24113f;
    }

    .help-link-text span{
      display:block;
      font-size:12px;
      color:#746987;
      margin-top:1px;
    }

    .support-modal{
      position:fixed;
      inset:0;
      z-index:120;
      display:none;
    }

    .support-modal.active{
      display:block;
    }

    .support-backdrop{
      position:absolute;
      inset:0;
      background:rgba(15,8,28,.62);
      backdrop-filter:blur(6px);
    }

    .support-dialog{
      position:relative;
      width:min(560px,calc(100% - 28px));
      margin:5vh auto;
      background:rgba(255,255,255,.96);
      border:1px solid rgba(76,42,134,.10);
      border-radius:28px;
      padding:28px;
      box-shadow:0 40px 100px rgba(0,0,0,.28);
      backdrop-filter:blur(18px);
      animation:supportIn .22s ease;
    }

    @keyframes supportIn{
      from{opacity:0;transform:translateY(14px) scale(.96)}
      to{opacity:1;transform:translateY(0) scale(1)}
    }

    .support-close{
      position:absolute;
      top:14px;
      right:14px;
      width:38px;
      height:38px;
      border:0;
      border-radius:14px;
      background:#f5efff;
      color:#4c2a86;
      font-size:16px;
      cursor:pointer;
      transition:.2s;
    }

    .support-close:hover{
      background:#4c2a86;
      color:#fff;
    }

    .support-head{
      margin-bottom:20px;
    }

    .support-badge{
      display:inline-flex;
      align-items:center;
      padding:7px 12px;
      border-radius:999px;
      background:rgba(76,42,134,.08);
      color:#4c2a86;
      font-size:12px;
      font-weight:700;
      margin-bottom:12px;
    }

    .support-head h3{
      margin:0 0 8px;
      font-size:28px;
      color:#24113f;
    }

    .support-head p{
      margin:0;
      color:#746987;
      line-height:1.7;
      font-size:14px;
    }

    .support-form{
      display:grid;
      gap:14px;
    }

    .support-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:14px;
    }

    .support-field label{
      display:block;
      margin-bottom:7px;
      color:#4d415f;
      font-size:13px;
      font-weight:700;
    }

    .support-field input,
    .support-field select,
    .support-field textarea{
      width:100%;
      border:1px solid rgba(76,42,134,.12);
      background:#fff;
      border-radius:15px;
      padding:13px 14px;
      font-family:'Sarabun',sans-serif;
      font-size:14px;
      color:#24113f;
      outline:none;
      transition:.2s;
    }

    .support-field textarea{
      min-height:120px;
      resize:vertical;
    }

    .support-field input:focus,
    .support-field select:focus,
    .support-field textarea:focus{
      border-color:rgba(76,42,134,.38);
      box-shadow:0 0 0 4px rgba(76,42,134,.08);
    }

    .support-submit{
      height:50px;
      border:0;
      border-radius:16px;
      background:linear-gradient(135deg,#4c2a86,#24113f);
      color:#fff;
      font-family:'Sarabun',sans-serif;
      font-size:15px;
      font-weight:700;
      cursor:pointer;
      box-shadow:0 16px 36px rgba(76,42,134,.24);
      transition:.22s;
    }

    .support-submit:hover{
      transform:translateY(-2px);
      box-shadow:0 24px 50px rgba(76,42,134,.30);
    }

    @media(max-width:980px){
      body{display:block}
      .login-page{
        grid-template-columns:1fr;
        width:min(720px,calc(100% - 28px));
        margin:auto;
      }
      .brand-panel{min-height:auto;padding:28px}
      .login-panel{padding:30px 24px}
    }

    @media(max-width:640px){
      .login-page{width:calc(100% - 20px);border-radius:22px}
      .brand-panel{padding:22px}
      .login-panel{padding:26px 18px}
      .login-head h2{font-size:28px}
      .social-btn{font-size:13px}
      .support-dialog{padding:22px;border-radius:24px}
      .support-grid{grid-template-columns:1fr}
      .support-head h3{font-size:24px}
      .form-options{align-items:flex-start;flex-direction:column}
      .help-floating{right:14px;bottom:14px}
      .help-menu{width:calc(100vw - 28px);right:0}
    }

/* ===== Forgot Password Modal ===== */
.forgot-modal{
  position:fixed;
  inset:0;
  z-index:130;
  display:none;
}

.forgot-modal.active{
  display:block;
}

.forgot-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,8,28,.62);
  backdrop-filter:blur(6px);
}

.forgot-dialog{
  position:relative;
  width:min(460px,calc(100% - 28px));
  margin:10vh auto;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(76,42,134,.10);
  border-radius:28px;
  padding:28px;
  box-shadow:0 40px 100px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
  animation:forgotIn .22s ease;
}

@keyframes forgotIn{
  from{opacity:0;transform:translateY(14px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.forgot-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:#f5efff;
  color:#4c2a86;
  font-size:16px;
  cursor:pointer;
  transition:.2s;
}

.forgot-close:hover{
  background:#4c2a86;
  color:#fff;
}

.forgot-icon{
  width:54px;
  height:54px;
  border-radius:20px;
  display:grid;
  place-items:center;
  color:#24113f;
  background:linear-gradient(135deg,#ffd86b,#fdb821);
  box-shadow:0 16px 34px rgba(253,184,33,.26);
  margin-bottom:16px;
}

.forgot-head h3{
  margin:0 0 8px;
  font-size:27px;
  color:#24113f;
}

.forgot-head p{
  margin:0 0 20px;
  color:#746987;
  line-height:1.75;
  font-size:14px;
}

.forgot-form{
  display:grid;
  gap:14px;
}

.forgot-field label{
  display:block;
  margin-bottom:7px;
  color:#4d415f;
  font-size:13px;
  font-weight:700;
}

.forgot-input-wrap{
  position:relative;
}

.forgot-input-wrap svg{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:#8d839c;
}

.forgot-field input{
  width:100%;
  height:48px;
  border:1px solid rgba(76,42,134,.12);
  background:#fff;
  border-radius:15px;
  padding:0 14px 0 44px;
  font-family:'Sarabun',sans-serif;
  font-size:14px;
  color:#24113f;
  outline:none;
  transition:.2s;
}

.forgot-field input:focus{
  border-color:rgba(76,42,134,.38);
  box-shadow:0 0 0 4px rgba(76,42,134,.08);
}

.forgot-submit{
  height:50px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#4c2a86,#24113f);
  color:#fff;
  font-family:'Sarabun',sans-serif;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(76,42,134,.24);
  transition:.22s;
}

.forgot-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 50px rgba(76,42,134,.30);
}

.forgot-note{
  margin-top:14px;
  padding:12px 13px;
  border-radius:14px;
  background:#fbf8ff;
  border:1px solid rgba(76,42,134,.10);
  color:#746987;
  font-size:12px;
  line-height:1.65;
}

.forgot-success{
  display:none;
  margin-top:14px;
  padding:12px 13px;
  border-radius:14px;
  background:rgba(34,197,94,.09);
  border:1px solid rgba(34,197,94,.18);
  color:#167a3a;
  font-size:13px;
  font-weight:700;
  line-height:1.65;
}

.forgot-success.show{
  display:block;
}

@media(max-width:640px){
  .forgot-dialog{
    margin:7vh auto;
    padding:22px;
    border-radius:24px;
  }

  .forgot-head h3{
    font-size:24px;
  }
}


    /* ===== Password Toggle ===== */
    .password-wrap .input{
      padding-right:54px;
    }

    .toggle-password{
      position:absolute;
      right:12px;
      top:50%;
      transform:translateY(-50%);
      width:34px;
      height:34px;
      border:0;
      background:transparent;
      display:grid;
      place-items:center;
      cursor:pointer;
      color:#8d839c;
      border-radius:10px;
      transition:.22s ease;
      z-index:2;
    }

    .toggle-password:hover{
      background:rgba(76,42,134,.08);
      color:#4c2a86;
    }

    .toggle-password svg{
      position:static;
      transform:none;
      width:20px;
      height:20px;
      color:currentColor;
    }

    .toggle-password .eye-close{
      display:none;
    }

    .toggle-password.show .eye-open{
      display:none;
    }

    .toggle-password.show .eye-close{
      display:block;
    }

    /* ===== Mobile Responsive: show only login form ===== */
    @media(max-width:768px){
      body{
        min-height:100svh;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:16px;
        overflow:hidden;
      }

      .login-page{
        width:100%;
        max-width:430px;
        display:block;
        border-radius:24px;
        overflow:visible;
      }

      .brand-panel,
      .social-grid,
      .divider,
      .signup,
      .security-note,
      .help-floating{
        display:none !important;
      }

      .login-panel{
        width:100%;
        min-height:auto;
        padding:24px 18px;
        border-radius:24px;
        background:rgba(255,255,255,.94);
      }

      .login-card{
        max-width:100%;
      }

      .login-head{
        margin-bottom:18px;
        text-align:center;
      }

      .login-head .mini-badge{
        margin-bottom:12px;
      }

      .login-head h2{
        font-size:26px;
      }

      .login-head p{
        font-size:13px;
        line-height:1.65;
      }

      .form{
        gap:13px;
      }

      .input,
      .login-btn{
        height:48px;
      }

      .form-options{
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        font-size:12px;
      }

      .forgot{
        white-space:nowrap;
      }
    }

    @media(max-width:390px){
      body{
        padding:10px;
      }

      .login-panel{
        padding:22px 14px;
      }

      .login-head h2{
        font-size:24px;
      }

      .login-head p{
        font-size:12.5px;
      }

      .form-options{
        flex-direction:column;
        align-items:flex-start;
      }
    }
