@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap");

:root{
  --pink:#f00078;
  --pink-2:#ff58a8;
  --pink-soft:#fff0f7;
  --purple:#7b67ff;
  --text:#282532;
  --muted:#8b8490;
  --line:#ece8ef;
  --surface:#ffffff;
  --bg:#f7f6fa;
  --danger:#dc3e50;
  --shadow:0 26px 70px rgba(51,37,47,.11);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:"Noto Sans Thai","Segoe UI",sans-serif;color:var(--text);background:var(--bg)}
button,input{font:inherit}
button{cursor:pointer}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.02fr) minmax(480px,.98fr);overflow:hidden}

.brand-panel{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:38px 54px 30px;
  color:#fff;
  background:
    radial-gradient(circle at 20% 12%,rgba(255,255,255,.22),transparent 28%),
    radial-gradient(circle at 86% 75%,rgba(117,78,255,.28),transparent 34%),
    linear-gradient(145deg,#ed006f 0%,#f81383 43%,#c747aa 100%);
}
.brand-grid{position:absolute;inset:0;opacity:.08;background-image:linear-gradient(rgba(255,255,255,.75) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.75) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 84%)}
.brand-orb{position:absolute;border-radius:50%;pointer-events:none;filter:blur(.2px)}
.orb-one{width:360px;height:360px;right:-150px;top:-90px;border:1px solid rgba(255,255,255,.22)}
.orb-two{width:220px;height:220px;right:-70px;top:-20px;border:1px solid rgba(255,255,255,.21)}
.orb-three{width:120px;height:120px;left:-46px;bottom:100px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09)}
.brand-head{position:relative;z-index:2;display:flex;align-items:center;gap:13px}
.brand-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:rgba(255,255,255,.96);color:var(--pink);font-size:18px;font-weight:800;box-shadow:0 14px 36px rgba(113,12,70,.18)}
.brand-mark.small{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,var(--pink),#fa3e9a);color:#fff;box-shadow:0 10px 25px rgba(240,0,120,.18)}
.brand-head strong,.mobile-brand strong{display:block;font-size:17px;line-height:1.2}
.brand-head small,.mobile-brand small{display:block;margin-top:2px;font-size:10px;opacity:.76}
.brand-copy{position:relative;z-index:2;max-width:620px;margin:auto 0}
.brand-kicker,.login-kicker,.success-kicker{font-size:9px;font-weight:800;letter-spacing:.16em}
.brand-kicker{display:inline-flex;padding:7px 10px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}
.brand-copy h1{margin:17px 0 13px;font-size:clamp(38px,4.5vw,66px);line-height:1.06;letter-spacing:-.04em}
.brand-copy h1 em{font-style:normal;color:#ffe6f3}
.brand-copy>p{max-width:560px;margin:0;color:rgba(255,255,255,.82);font-size:13px;line-height:1.75}
.brand-feature-list{display:grid;gap:8px;margin-top:25px;max-width:540px}
.brand-feature-list article{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.07);backdrop-filter:blur(12px)}
.feature-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.14);font-size:16px}
.brand-feature-list strong{display:block;font-size:11px}
.brand-feature-list small{display:block;margin-top:1px;color:rgba(255,255,255,.7);font-size:9px}
.brand-foot{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;color:rgba(255,255,255,.67);font-size:9px}
.brand-foot span{display:flex;align-items:center;gap:7px}
.brand-foot i,.system-ready i{width:7px;height:7px;border-radius:50%;background:#77f1bb;box-shadow:0 0 0 4px rgba(119,241,187,.11)}

.login-panel{min-height:100vh;display:grid;place-items:center;padding:42px;background:
radial-gradient(circle at 92% 4%,rgba(240,0,120,.045),transparent 30%),
radial-gradient(circle at 8% 90%,rgba(123,103,255,.05),transparent 28%),
#fbfafc}
.login-shell{width:min(440px,100%);padding:8px}
.mobile-brand{display:none;align-items:center;gap:11px;margin-bottom:35px}
.mobile-brand small{color:var(--muted)}
.login-intro{margin-bottom:25px}
.login-kicker{color:var(--pink)}
.login-intro h2{margin:5px 0 7px;font-size:32px;line-height:1.2;letter-spacing:-.03em}
.login-intro p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.login-form{display:grid;gap:16px}
.login-field{display:block}
.login-field>span{display:block;margin-bottom:6px;color:#4d4651;font-size:10px;font-weight:700}
.input-shell{position:relative;display:flex;align-items:center;height:52px;border:1px solid #ded9e1;border-radius:14px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.input-shell:focus-within{border-color:#ed75ad;box-shadow:0 0 0 4px rgba(240,0,120,.075)}
.login-field.invalid .input-shell{border-color:#df5865;background:#fffafb;box-shadow:0 0 0 4px rgba(220,62,80,.055)}
.input-icon{flex:0 0 44px;text-align:center;color:#a199a5;font-size:16px}
.input-shell input{width:100%;height:100%;border:0;outline:0;background:transparent;color:#2c2730;font-size:12px;padding:0 13px 0 0}
.input-shell input::placeholder{color:#bbb5bd}
.password-toggle{width:44px;height:40px;border:0;background:transparent;color:#9b939e;display:grid;place-items:center;border-radius:10px;margin-right:5px}
.password-toggle:hover{background:#faf7fa;color:#dd0c6b}
.eye-closed{display:none}.password-toggle.showing .eye-open{display:none}.password-toggle.showing .eye-closed{display:block}
.field-error{display:none;margin-top:5px;color:var(--danger);font-size:8px;font-weight:600}
.login-field.invalid .field-error:not(:empty){display:block}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-2px}
.remember-control{display:flex;align-items:center;gap:8px;cursor:pointer}
.remember-control input{position:absolute;opacity:0;pointer-events:none}
.checkmark{width:20px;height:20px;display:grid;place-items:center;border:1px solid #ddd7df;border-radius:7px;background:#fff;color:transparent;font-size:10px;transition:.15s ease}
.remember-control input:checked+.checkmark{border-color:var(--pink);background:var(--pink);color:#fff}
.remember-control strong{display:block;font-size:9px;color:#514a55}
.remember-control small{display:block;color:#aaa3ac;font-size:7px}
.help-link{border:0;background:transparent;color:#df0a6b;font-size:9px;font-weight:700;padding:7px}
.login-submit{position:relative;height:52px;overflow:hidden;border:0;border-radius:14px;background:linear-gradient(135deg,#f40078,#dd0069);color:#fff;font-size:11px;font-weight:800;box-shadow:0 12px 28px rgba(229,0,108,.21);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.login-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 16px 34px rgba(229,0,108,.27)}
.login-submit:disabled{cursor:wait;filter:saturate(.75);opacity:.88}
.button-arrow{position:absolute;right:17px;font-size:17px;top:50%;transform:translateY(-50%);transition:transform .16s ease}
.login-submit:hover .button-arrow{transform:translate(2px,-50%)}
.button-spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;margin:auto}
.login-submit.loading .button-label,.login-submit.loading .button-arrow{display:none}
.login-submit.loading .button-spinner{display:block}
@keyframes spin{to{transform:rotate(360deg)}}
.login-error-box{display:none;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #f3c2c7;border-radius:12px;background:#fff6f7;color:#bd3341}
.login-error-box.show{display:flex;animation:errorIn .2s ease}
.login-error-box>span{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#ffe0e4;font-size:10px;font-weight:900}
.login-error-box strong{display:block;font-size:9px}.login-error-box p{margin:2px 0 0;font-size:8px;line-height:1.45}
@keyframes errorIn{from{opacity:0;transform:translateY(-4px)}}
.login-security-note{display:flex;gap:9px;margin-top:22px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fff}
.security-icon{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:9px;background:#f2f0ff;color:#7160d8}
.login-security-note strong{display:block;font-size:8px}.login-security-note p{margin:2px 0 0;color:#99919c;font-size:7px;line-height:1.45}
.login-foot{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:#aaa3ad;font-size:8px}
.system-ready{display:flex;align-items:center;gap:6px}.system-ready i{width:6px;height:6px}
.login-success{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(27,20,27,.56);backdrop-filter:blur(12px);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease}
.login-success.show{opacity:1;visibility:visible}
.success-card{width:min(360px,calc(100vw - 32px));padding:30px 26px 27px;text-align:center;border:1px solid rgba(255,255,255,.8);border-radius:22px;background:#fff;box-shadow:var(--shadow);transform:translateY(12px) scale(.96);transition:transform .25s cubic-bezier(.2,.9,.2,1)}
.login-success.show .success-card{transform:translateY(0) scale(1)}
.success-ring{width:66px;height:66px;display:grid;place-items:center;margin:0 auto 14px;border-radius:50%;background:#edfff7;box-shadow:inset 0 0 0 1px #c9f3e2}
.success-ring span{font-size:28px;color:#169d6d;font-weight:800}
.success-kicker{color:#13a16f}.success-card h2{margin:5px 0 4px;font-size:21px}.success-card p{margin:0;color:var(--muted);font-size:10px}
.success-progress{height:4px;margin-top:18px;border-radius:999px;background:#f0edf1;overflow:hidden}.success-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--pink),var(--purple))}
.login-success.show .success-progress i{animation:successProgress .85s ease forwards}
@keyframes successProgress{to{width:100%}}

@media(max-width:960px){
  .login-page{grid-template-columns:1fr}
  .brand-panel{display:none}
  .login-panel{padding:30px 22px}
  .mobile-brand{display:flex}
}
@media(max-width:520px){
  .login-panel{align-items:start;padding:24px 18px 32px}
  .login-shell{padding:0}
  .mobile-brand{margin-bottom:48px}
  .login-intro h2{font-size:28px}
  .login-options{align-items:flex-start}
  .remember-control small{display:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* =========================================================
   Login Centered Card 1
   กล่อง Login อยู่กึ่งกลางหน้าจอทั้ง Desktop / Mobile
   ========================================================= */

@media (min-width: 961px){
  .login-page{
    position:relative;
    display:block;
    min-height:100vh;
    overflow:hidden;
    background:
      radial-gradient(circle at 18% 15%,rgba(255,255,255,.16),transparent 28%),
      radial-gradient(circle at 82% 80%,rgba(119,84,255,.19),transparent 34%),
      linear-gradient(145deg,#ed006f 0%,#f81383 43%,#c747aa 100%);
  }

  .brand-panel{
    position:fixed;
    inset:0;
    z-index:0;
    min-height:100vh;
    padding:32px 42px;
    background:transparent;
    pointer-events:none;
  }

  /* เหลือ Branding เบา ๆ รอบกล่อง ไม่แย่งสายตาจาก Login */
  .brand-panel .brand-copy,
  .brand-panel .brand-foot{
    display:none;
  }

  .brand-head{
    position:absolute;
    top:30px;
    left:38px;
    opacity:.95;
  }

  .login-panel{
    position:relative;
    z-index:3;
    min-height:100vh;
    width:100%;
    display:grid;
    place-items:center;
    padding:34px 20px;
    background:transparent;
  }

  .login-shell{
    width:min(460px,calc(100vw - 40px));
    padding:34px 36px 28px;
    border:1px solid rgba(255,255,255,.82);
    border-radius:24px;
    background:rgba(255,255,255,.97);
    box-shadow:
      0 30px 90px rgba(91,15,58,.23),
      0 4px 18px rgba(62,31,49,.08);
    backdrop-filter:blur(20px);
  }

  .login-intro{
    text-align:center;
  }

  .login-intro p{
    margin-left:auto;
    margin-right:auto;
  }
}

@media (max-width:960px){
  .login-panel{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:24px 18px;
  }

  .login-shell{
    width:min(440px,100%);
    margin:auto;
  }
}

@media (max-width:520px){
  .login-panel{
    align-items:center;
    padding:20px 16px;
  }

  .mobile-brand{
    margin-bottom:30px;
  }
}


/* =========================================================
   Login Animation Polish 1
   subtle, modern motion without distracting from login
   ========================================================= */

@keyframes loginCardEnter{
  0%{opacity:0;transform:translateY(18px) scale(.975)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes loginBrandEnter{
  0%{opacity:0;transform:translateX(-14px)}
  100%{opacity:.95;transform:translateX(0)}
}
@keyframes loginFloatOne{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(14px,-12px,0) scale(1.03)}
}
@keyframes loginFloatTwo{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg)}
  50%{transform:translate3d(-12px,10px,0) rotate(5deg)}
}
@keyframes loginGlowPulse{
  0%,100%{box-shadow:0 30px 90px rgba(91,15,58,.23),0 4px 18px rgba(62,31,49,.08)}
  50%{box-shadow:0 34px 105px rgba(91,15,58,.28),0 8px 25px rgba(62,31,49,.10)}
}
@keyframes loginButtonSheen{
  0%{transform:translateX(-140%) skewX(-18deg)}
  100%{transform:translateX(240%) skewX(-18deg)}
}
@keyframes loginInputNudge{
  0%{transform:translateY(0)}
  50%{transform:translateY(-1px)}
  100%{transform:translateY(0)}
}
@keyframes loginReadyPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(119,241,187,.0)}
  50%{box-shadow:0 0 0 5px rgba(119,241,187,.12)}
}

@media (min-width:961px){
  .login-shell{
    animation:
      loginCardEnter .55s cubic-bezier(.2,.8,.2,1) both,
      loginGlowPulse 5.5s ease-in-out 1s infinite;
    transform-origin:center;
  }

  .brand-head{
    animation:loginBrandEnter .55s .08s cubic-bezier(.2,.8,.2,1) both;
  }

  .orb-one{animation:loginFloatOne 8s ease-in-out infinite}
  .orb-two{animation:loginFloatTwo 10s ease-in-out infinite}
  .orb-three{animation:loginFloatOne 12s ease-in-out -2s infinite reverse}
}

/* stagger form content */
.login-intro,
.login-field,
.login-options,
.login-submit,
.login-security-note,
.login-foot{
  opacity:0;
  animation:loginCardEnter .42s cubic-bezier(.2,.8,.2,1) forwards;
}
.login-intro{animation-delay:.10s}
.login-field:nth-of-type(1){animation-delay:.16s}
.login-field:nth-of-type(2){animation-delay:.22s}
.login-options{animation-delay:.28s}
.login-submit{animation-delay:.34s}
.login-security-note{animation-delay:.40s}
.login-foot{animation-delay:.46s}

/* input focus motion */
.input-shell{
  will-change:transform,box-shadow,border-color;
}
.input-shell:focus-within{
  transform:translateY(-1px);
  animation:loginInputNudge .22s ease;
}
.input-shell:focus-within .input-icon{
  color:var(--pink);
  transform:scale(1.06);
}
.input-icon{
  transition:color .16s ease,transform .16s ease;
}

/* subtle password toggle */
.password-toggle{
  transition:transform .16s ease,background .16s ease,color .16s ease;
}
.password-toggle:hover{
  transform:scale(1.04);
}

/* animated checkbox */
.checkmark{
  position:relative;
  overflow:hidden;
}
.remember-control input:checked+.checkmark{
  animation:loginInputNudge .2s ease;
}

/* button sheen */
.login-submit{
  isolation:isolate;
}
.login-submit::before{
  content:"";
  position:absolute;
  top:-30%;
  left:-32%;
  width:32%;
  height:160%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform:translateX(-140%) skewX(-18deg);
  pointer-events:none;
  z-index:0;
}
.login-submit:hover:not(:disabled)::before{
  animation:loginButtonSheen .72s ease;
}
.login-submit>*{
  position:relative;
  z-index:1;
}

/* system ready pulse */
.system-ready i{
  animation:loginReadyPulse 2.2s ease-in-out infinite;
}

/* mobile card entrance */
@media(max-width:960px){
  .login-shell{
    animation:loginCardEnter .48s cubic-bezier(.2,.8,.2,1) both;
  }
  .mobile-brand{
    animation:loginBrandEnter .45s .05s cubic-bezier(.2,.8,.2,1) both;
  }
}

/* respectful reduced motion */
@media(prefers-reduced-motion:reduce){
  .login-shell,
  .brand-head,
  .orb-one,
  .orb-two,
  .orb-three,
  .login-intro,
  .login-field,
  .login-options,
  .login-submit,
  .login-security-note,
  .login-foot,
  .system-ready i{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
  }
  .login-submit::before{display:none!important}
}


/* =========================================================
   Login Progressive Submit 1
   ซ่อนปุ่มเข้าสู่ระบบไว้ก่อน จะแสดงเมื่อเริ่มพิมพ์รหัสผ่าน
   ========================================================= */

.login-submit{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  height:0;
  max-height:0;
  min-height:0;
  margin:0;
  transform:translateY(10px) scale(.985);
  box-shadow:none;
  overflow:hidden;
  transition:
    opacity .24s ease,
    transform .24s ease,
    max-height .24s ease,
    height .24s ease,
    margin-top .24s ease,
    visibility 0s linear .24s,
    box-shadow .24s ease;
}

.login-form.ready-to-submit .login-submit{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  height:52px;
  max-height:52px;
  margin-top:2px;
  transform:translateY(0) scale(1);
  box-shadow:0 12px 28px rgba(229,0,108,.21);
  transition:
    opacity .24s ease,
    transform .24s ease,
    max-height .24s ease,
    height .24s ease,
    margin-top .24s ease,
    visibility 0s linear 0s,
    box-shadow .24s ease;
}

.login-form.ready-to-submit .login-submit.loading{
  opacity:1;
  visibility:visible;
}

@media (prefers-reduced-motion: reduce){
  .login-submit,
  .login-form.ready-to-submit .login-submit{
    transition:none !important;
  }
}


/* =========================================================
   Login Smooth Reveal + Floating Card 1
   ========================================================= */

/* Arrow removed from markup, keep defensive fallback too */
.button-arrow{display:none!important}

/* Slower, smoother submit reveal */
.login-submit{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  height:0;
  max-height:0;
  min-height:0;
  margin:0;
  transform:translateY(16px) scale(.97);
  filter:blur(3px);
  box-shadow:none;
  overflow:hidden;
  transition:
    opacity .78s cubic-bezier(.22,.8,.22,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .72s ease,
    max-height .82s cubic-bezier(.16,1,.3,1),
    height .82s cubic-bezier(.16,1,.3,1),
    margin-top .82s cubic-bezier(.16,1,.3,1),
    visibility 0s linear .82s,
    box-shadow .7s ease;
}

.login-form.ready-to-submit .login-submit{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  height:52px;
  max-height:52px;
  margin-top:4px;
  transform:translateY(0) scale(1);
  filter:blur(0);
  box-shadow:0 14px 32px rgba(229,0,108,.22);
  transition:
    opacity .78s cubic-bezier(.22,.8,.22,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .72s ease,
    max-height .82s cubic-bezier(.16,1,.3,1),
    height .82s cubic-bezier(.16,1,.3,1),
    margin-top .82s cubic-bezier(.16,1,.3,1),
    visibility 0s linear 0s,
    box-shadow .7s ease;
}

/* Prevent the earlier stagger animation from making the button appear too fast */
.login-submit{
  animation:none!important;
}

@keyframes loginCardFloat{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-7px,0)}
}

@keyframes loginCardShadowFloat{
  0%,100%{
    box-shadow:
      0 30px 90px rgba(91,15,58,.23),
      0 4px 18px rgba(62,31,49,.08);
  }
  50%{
    box-shadow:
      0 40px 110px rgba(91,15,58,.27),
      0 13px 30px rgba(62,31,49,.10);
  }
}

@media (min-width:961px){
  .login-shell{
    /* entrance first, then very gentle continuous floating */
    animation:
      loginCardEnter .62s cubic-bezier(.16,1,.3,1) both,
      loginCardFloat 6.8s ease-in-out 1.1s infinite,
      loginCardShadowFloat 6.8s ease-in-out 1.1s infinite;
    will-change:transform,box-shadow;
  }
}

@media (max-width:960px){
  .login-shell{
    animation:
      loginCardEnter .58s cubic-bezier(.16,1,.3,1) both,
      loginCardFloat 7.4s ease-in-out 1.15s infinite;
    will-change:transform;
  }
}

/* Keep input/content stable while outer card gently floats */
.login-form,
.login-intro,
.login-security-note,
.login-foot{backface-visibility:hidden}

@media(prefers-reduced-motion:reduce){
  .login-shell{animation:none!important;transform:none!important}
  .login-submit,
  .login-form.ready-to-submit .login-submit{
    transition:none!important;
    filter:none!important;
  }
}

/* =========================================================
   Login Mobile UI V2.1
   Mobile-first presentation only. Desktop baseline untouched.
   ========================================================= */

@media (max-width:960px){
  html,
  body{
    min-height:100%;
    background:#f8f5f8;
  }

  body{
    min-height:100dvh;
    overflow-x:hidden;
  }

  .login-page{
    min-height:100dvh;
    display:block;
    overflow:visible;
    background:
      radial-gradient(circle at 12% 7%,rgba(240,0,120,.085),transparent 28%),
      radial-gradient(circle at 92% 88%,rgba(123,103,255,.08),transparent 31%),
      linear-gradient(180deg,#fffafd 0%,#f8f5f9 100%);
  }

  .brand-panel{display:none!important}

  .login-panel{
    min-height:100dvh;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
    background:transparent;
  }

  .login-shell{
    width:min(430px,100%);
    margin:0 auto;
    padding:24px 22px 20px;
    border:1px solid rgba(255,255,255,.88);
    border-radius:26px;
    background:rgba(255,255,255,.94);
    box-shadow:
      0 22px 58px rgba(70,38,58,.10),
      0 3px 14px rgba(70,38,58,.05);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mobile-brand{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    margin:0 0 20px;
  }

  .mobile-brand .brand-mark.small{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:13px;
    font-size:16px;
    box-shadow:0 9px 24px rgba(240,0,120,.17);
  }

  .mobile-brand strong{
    font-size:16px;
    letter-spacing:-.02em;
  }

  .mobile-brand small{
    margin-top:1px;
    font-size:9px;
  }

  .login-intro{
    margin-bottom:20px;
    text-align:left;
  }

  .login-kicker{
    display:block;
    margin-bottom:5px;
    font-size:8px;
    letter-spacing:.18em;
  }

  .login-intro h2{
    margin:0 0 6px;
    font-size:29px;
    line-height:1.14;
    letter-spacing:-.035em;
  }

  .login-intro p{
    max-width:100%;
    font-size:10px;
    line-height:1.62;
  }

  .login-form{
    gap:13px;
  }

  .login-field>span{
    margin-bottom:6px;
    font-size:9px;
  }

  .input-shell{
    height:54px;
    border-radius:16px;
    border-color:#e4dfe6;
    box-shadow:0 1px 0 rgba(55,38,50,.015);
  }

  .input-shell:focus-within{
    transform:translateY(-1px);
    border-color:#ed75ad;
    box-shadow:
      0 0 0 4px rgba(240,0,120,.075),
      0 9px 24px rgba(75,39,60,.055);
  }

  .input-icon{
    flex-basis:42px;
    font-size:15px;
  }

  .input-shell input{
    font-size:11px;
    padding-right:10px;
  }

  .password-toggle{
    width:42px;
    height:40px;
    margin-right:4px;
  }

  .login-options{
    min-height:34px;
    align-items:center;
    gap:8px;
    margin-top:-1px;
  }

  .remember-control{
    gap:7px;
    min-height:34px;
  }

  .checkmark{
    width:20px;
    height:20px;
    border-radius:7px;
  }

  .remember-control strong{
    font-size:8.5px;
  }

  .remember-control small{
    display:none;
  }

  .help-link{
    min-height:36px;
    padding:8px 4px 8px 10px;
    font-size:8.5px;
  }

  .login-form.ready-to-submit .login-submit{
    height:54px;
    max-height:54px;
    border-radius:16px;
    margin-top:3px;
    font-size:10.5px;
    box-shadow:0 13px 30px rgba(229,0,108,.20);
  }

  .login-error-box{
    padding:10px 11px;
    border-radius:13px;
  }

  .login-security-note{
    gap:9px;
    margin-top:16px;
    padding:10px 11px;
    border-radius:14px;
    background:rgba(255,255,255,.72);
  }

  .security-icon{
    width:30px;
    height:30px;
    flex-basis:30px;
    border-radius:9px;
  }

  .login-security-note strong{
    font-size:7.7px;
  }

  .login-security-note p{
    margin-top:1px;
    font-size:6.8px;
    line-height:1.4;
  }

  .login-foot{
    margin-top:14px;
    font-size:7.4px;
  }

  .system-ready{
    gap:5px;
  }

  .system-ready i{
    width:5px;
    height:5px;
  }

  /* Mobile should feel alive, but calmer than desktop. */
  .login-shell{
    animation:
      loginCardEnter .58s cubic-bezier(.16,1,.3,1) both,
      loginCardFloatMobile 8.8s ease-in-out 1.3s infinite;
    will-change:transform;
  }
}

@keyframes loginCardFloatMobile{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-3px,0)}
}

@media (max-width:430px){
  .login-panel{
    padding:max(14px,env(safe-area-inset-top)) 13px max(14px,env(safe-area-inset-bottom));
  }

  .login-shell{
    width:100%;
    padding:21px 18px 17px;
    border-radius:23px;
  }

  .mobile-brand{
    margin-bottom:17px;
  }

  .login-intro{
    margin-bottom:18px;
  }

  .login-intro h2{
    font-size:27px;
  }

  .input-shell{
    height:52px;
    border-radius:15px;
  }

  .login-form.ready-to-submit .login-submit{
    height:52px;
    max-height:52px;
    border-radius:15px;
  }

  .login-security-note{
    margin-top:14px;
  }
}

@media (max-width:375px){
  .login-panel{
    align-items:flex-start;
    padding-top:max(12px,env(safe-area-inset-top));
  }

  .login-shell{
    padding:18px 16px 15px;
    border-radius:21px;
  }

  .mobile-brand .brand-mark.small{
    width:38px;
    height:38px;
    flex-basis:38px;
    border-radius:12px;
    font-size:15px;
  }

  .mobile-brand strong{font-size:15px}
  .login-intro h2{font-size:25px}
  .login-intro p{font-size:9.4px}
  .login-form{gap:11px}
  .login-security-note p{display:none}
}

/* Short phones / landscape: prioritize form accessibility over centering. */
@media (max-width:960px) and (max-height:700px){
  .login-panel{
    align-items:flex-start;
  }

  .login-shell{
    margin:8px auto;
    animation:loginCardEnter .45s cubic-bezier(.16,1,.3,1) both;
  }
}

@media (max-width:960px) and (prefers-reduced-motion:reduce){
  .login-shell{
    animation:none!important;
  }
}

/* =========================================================
   Login Mobile Background Fix 1
   Restore the same Paveemol atmosphere as Desktop on mobile.
   ========================================================= */
@media (max-width:960px){
  html,
  body{
    background:#d62a8f;
  }

  .login-page{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:
      radial-gradient(circle at 16% 12%,rgba(255,255,255,.22),transparent 27%),
      radial-gradient(circle at 88% 84%,rgba(126,83,255,.23),transparent 35%),
      radial-gradient(circle at 72% 22%,rgba(255,131,199,.18),transparent 24%),
      linear-gradient(145deg,#ed006f 0%,#f81383 46%,#c747aa 100%);
  }

  .login-page::before,
  .login-page::after{
    content:"";
    position:absolute;
    z-index:-1;
    border-radius:50%;
    pointer-events:none;
    filter:blur(2px);
    opacity:.58;
  }

  .login-page::before{
    width:230px;
    height:230px;
    top:-72px;
    right:-78px;
    background:radial-gradient(circle,rgba(255,255,255,.24) 0%,rgba(255,255,255,.06) 48%,transparent 72%);
    animation:loginMobileOrbOne 12s ease-in-out infinite;
  }

  .login-page::after{
    width:280px;
    height:280px;
    left:-118px;
    bottom:-128px;
    background:radial-gradient(circle,rgba(113,75,255,.24) 0%,rgba(113,75,255,.07) 50%,transparent 72%);
    animation:loginMobileOrbTwo 14s ease-in-out infinite;
  }

  .login-panel{
    position:relative;
    z-index:1;
  }

  .login-shell{
    background:rgba(255,255,255,.955);
    border-color:rgba(255,255,255,.74);
    box-shadow:
      0 30px 78px rgba(92,17,57,.24),
      0 8px 24px rgba(74,26,51,.11),
      inset 0 1px 0 rgba(255,255,255,.86);
  }
}

@keyframes loginMobileOrbOne{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-16px,18px,0) scale(1.05)}
}

@keyframes loginMobileOrbTwo{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(20px,-14px,0) scale(1.04)}
}

@media (max-width:960px) and (prefers-reduced-motion:reduce){
  .login-page::before,
  .login-page::after{animation:none!important}
}


/* =========================================================
   Login Aurora Glass Animation 1
   Modern animated background + translucent glass login card.
   Visual-only patch: Login logic and submit behavior untouched.
   ========================================================= */

:root{
  --login-glass:rgba(255,255,255,.72);
  --login-glass-strong:rgba(255,255,255,.82);
  --login-glass-line:rgba(255,255,255,.52);
  --login-glass-shadow:0 34px 100px rgba(73,18,55,.24);
}

@keyframes loginAuroraShift{
  0%{
    background-position:0% 40%,20% 0%,100% 80%,50% 50%;
  }
  50%{
    background-position:100% 55%,55% 10%,70% 40%,50% 50%;
  }
  100%{
    background-position:30% 70%,85% 25%,20% 80%,50% 50%;
  }
}

@keyframes loginAuroraDriftA{
  0%,100%{transform:translate3d(-4vw,-2vh,0) scale(1) rotate(0deg)}
  50%{transform:translate3d(8vw,7vh,0) scale(1.14) rotate(12deg)}
}

@keyframes loginAuroraDriftB{
  0%,100%{transform:translate3d(5vw,7vh,0) scale(1)}
  50%{transform:translate3d(-8vw,-6vh,0) scale(1.12)}
}

@keyframes loginGlassBreath{
  0%,100%{
    box-shadow:
      0 34px 100px rgba(73,18,55,.22),
      0 8px 28px rgba(90,31,71,.10),
      inset 0 1px 0 rgba(255,255,255,.72);
  }
  50%{
    box-shadow:
      0 42px 118px rgba(73,18,55,.28),
      0 12px 34px rgba(90,31,71,.13),
      inset 0 1px 0 rgba(255,255,255,.82);
  }
}

/* Full-page animated Paveemol aurora */
.login-page{
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(70% 80% at 8% 12%,rgba(255,255,255,.28),transparent 58%),
    radial-gradient(65% 75% at 92% 84%,rgba(91,72,255,.30),transparent 62%),
    radial-gradient(55% 65% at 70% 12%,rgba(255,157,214,.25),transparent 58%),
    linear-gradient(135deg,#e60070 0%,#f41383 34%,#d848ad 68%,#8758dc 100%);
  background-size:150% 150%,145% 145%,160% 160%,100% 100%;
  animation:loginAuroraShift 18s ease-in-out infinite alternate;
}

/* Large ambient glow layers */
.login-page::before,
.login-page::after{
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  border-radius:44% 56% 58% 42% / 46% 42% 58% 54%;
  filter:blur(34px);
  opacity:.54;
  will-change:transform;
}

.login-page::before{
  width:min(52vw,760px);
  aspect-ratio:1;
  top:-24%;
  right:-14%;
  background:
    radial-gradient(circle at 35% 35%,rgba(255,255,255,.46),rgba(255,104,190,.16) 45%,transparent 72%);
  animation:loginAuroraDriftA 15s ease-in-out infinite;
}

.login-page::after{
  width:min(48vw,700px);
  aspect-ratio:1;
  left:-16%;
  bottom:-30%;
  background:
    radial-gradient(circle at 55% 45%,rgba(127,103,255,.46),rgba(87,72,211,.12) 48%,transparent 72%);
  animation:loginAuroraDriftB 17s ease-in-out infinite;
}

/* Keep existing content above the animated atmosphere */
.brand-panel,
.login-panel{
  position:relative;
  z-index:2;
}

/* Very subtle moving grid / light texture on Desktop */
@media (min-width:961px){
  .brand-grid{
    opacity:.075;
    background-size:64px 64px;
    animation:loginGridDrift 24s linear infinite;
  }

  @keyframes loginGridDrift{
    from{background-position:0 0,0 0}
    to{background-position:64px 64px,64px 64px}
  }

  .login-shell{
    background:
      linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.64));
    border:1px solid var(--login-glass-line);
    box-shadow:
      0 34px 100px rgba(73,18,55,.22),
      0 8px 28px rgba(90,31,71,.10),
      inset 0 1px 0 rgba(255,255,255,.72);
    backdrop-filter:blur(28px) saturate(145%);
    -webkit-backdrop-filter:blur(28px) saturate(145%);
    animation:
      loginCardEnter .62s cubic-bezier(.16,1,.3,1) both,
      loginCardFloat 7.2s ease-in-out 1.1s infinite,
      loginGlassBreath 7.2s ease-in-out 1.1s infinite;
  }
}

/* Glass internals stay readable while letting the background show through */
.input-shell{
  background:rgba(255,255,255,.72);
  border-color:rgba(255,255,255,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.70),
    0 5px 16px rgba(75,38,62,.045);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.input-shell:focus-within{
  background:rgba(255,255,255,.86);
  border-color:rgba(242,102,168,.78);
  box-shadow:
    0 0 0 4px rgba(240,0,120,.09),
    0 10px 28px rgba(75,39,60,.08),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.checkmark,
.login-security-note{
  background:rgba(255,255,255,.62);
  border-color:rgba(255,255,255,.68);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.login-error-box{
  background:rgba(255,247,249,.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* Mobile gets the same premium glass treatment, but lighter for performance. */
@media (max-width:960px){
  .login-page{
    min-height:100dvh;
    background:
      radial-gradient(78% 72% at 8% 10%,rgba(255,255,255,.25),transparent 60%),
      radial-gradient(72% 78% at 94% 88%,rgba(108,82,255,.28),transparent 62%),
      radial-gradient(58% 62% at 72% 16%,rgba(255,152,210,.22),transparent 58%),
      linear-gradient(145deg,#e70070 0%,#f31382 44%,#cb45a8 76%,#8d5adc 100%);
    background-size:145% 145%,145% 145%,155% 155%,100% 100%;
    animation:loginAuroraShift 20s ease-in-out infinite alternate;
  }

  .login-page::before{
    width:360px;
    height:360px;
    top:-130px;
    right:-150px;
    filter:blur(24px);
    opacity:.46;
    animation:loginAuroraDriftA 16s ease-in-out infinite;
  }

  .login-page::after{
    width:390px;
    height:390px;
    left:-190px;
    bottom:-190px;
    filter:blur(28px);
    opacity:.46;
    animation:loginAuroraDriftB 18s ease-in-out infinite;
  }

  .login-shell{
    background:
      linear-gradient(145deg,rgba(255,255,255,.79),rgba(255,255,255,.63));
    border:1px solid rgba(255,255,255,.52);
    box-shadow:
      0 30px 82px rgba(74,17,55,.25),
      0 7px 22px rgba(74,26,51,.09),
      inset 0 1px 0 rgba(255,255,255,.72);
    backdrop-filter:blur(24px) saturate(140%);
    -webkit-backdrop-filter:blur(24px) saturate(140%);
  }

  .mobile-brand small,
  .login-intro p,
  .login-foot{
    color:rgba(69,57,69,.68);
  }

  .login-security-note{
    background:rgba(255,255,255,.48);
  }
}

/* Give the card a tiny specular highlight without blocking clicks */
.login-shell{
  position:relative;
  overflow:hidden;
}

.login-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:
    linear-gradient(115deg,rgba(255,255,255,.24),transparent 30%,transparent 70%,rgba(255,255,255,.08));
  opacity:.72;
  z-index:0;
}

.login-shell > *{
  position:relative;
  z-index:1;
}

/* Accessibility / battery friendly */
@media(prefers-reduced-motion:reduce){
  .login-page,
  .login-page::before,
  .login-page::after,
  .brand-grid,
  .login-shell{
    animation:none!important;
  }
}


/* =========================================================
   Login Fit Screen / No Scroll 1
   Make the login screen always fit the viewport on desktop and mobile.
   ========================================================= */

/* Hard viewport ownership: the login page itself never scrolls. */
html,
body{
  width:100%;
  height:100%;
  min-height:100%;
  margin:0;
  overflow:hidden!important;
  overscroll-behavior:none;
}

body{
  position:fixed;
  inset:0;
}

/* Use dynamic viewport where supported, with safe fallback. */
.login-page{
  width:100%;
  height:100vh;
  min-height:0!important;
  max-height:100vh;
  overflow:hidden!important;
}

@supports (height:100dvh){
  .login-page{
    height:100dvh;
    max-height:100dvh;
  }
}

/* Prevent outer panels from creating document overflow. */
.brand-panel,
.login-panel{
  min-width:0;
  min-height:0;
  max-height:100%;
  overflow:hidden;
  box-sizing:border-box;
}

/* Desktop: centered card must fit even on shorter notebook screens. */
@media (min-width:961px){
  .login-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    padding:clamp(14px,2.2vh,30px) clamp(18px,2.5vw,42px)!important;
  }

  .login-shell{
    width:min(100%,520px);
    max-height:calc(100vh - clamp(28px,4.4vh,60px));
    overflow:hidden!important;
    padding:
      clamp(20px,3.4vh,38px)
      clamp(24px,3vw,42px)!important;
    box-sizing:border-box;
  }

  @supports (height:100dvh){
    .login-shell{
      max-height:calc(100dvh - clamp(28px,4.4vh,60px));
    }
  }

  /* Compress vertical rhythm only when viewport is short. */
  @media (max-height:760px){
    .login-shell{
      padding:18px 28px!important;
      border-radius:24px!important;
    }

    .login-logo,
    .login-mark,
    .mobile-brand{
      margin-bottom:8px!important;
    }

    .login-intro{
      margin-bottom:14px!important;
    }

    .login-intro h1{
      margin-bottom:4px!important;
      font-size:clamp(25px,3.2vh,32px)!important;
    }

    .login-intro p{
      margin:0!important;
      line-height:1.35!important;
    }

    .login-form,
    form{
      gap:10px!important;
    }

    .field,
    .form-field{
      margin-bottom:8px!important;
    }

    .input-shell{
      min-height:46px!important;
    }

    .login-security-note{
      padding:8px 10px!important;
      margin-top:8px!important;
    }

    .login-foot{
      margin-top:10px!important;
    }
  }

  @media (max-height:650px){
    .brand-panel{
      padding-top:14px!important;
      padding-bottom:14px!important;
    }

    .login-shell{
      transform:scale(.94);
      transform-origin:center;
      width:min(106.4%,550px);
      max-height:none;
    }

    /* Avoid float animation moving the card beyond viewport on short displays. */
    .login-shell{
      animation:
        loginCardEnter .52s cubic-bezier(.16,1,.3,1) both,
        loginGlassBreath 7.2s ease-in-out 1.1s infinite!important;
    }
  }
}

/* Mobile / tablet: card fits inside the usable screen and page cannot bounce. */
@media (max-width:960px){
  html,
  body{
    height:100%;
    min-height:100%;
    overflow:hidden!important;
  }

  .login-page{
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    height:100vh!important;
    min-height:0!important;
    padding:
      max(10px,env(safe-area-inset-top))
      12px
      max(10px,env(safe-area-inset-bottom))!important;
    box-sizing:border-box;
    overflow:hidden!important;
    overscroll-behavior:none;
  }

  @supports (height:100dvh){
    .login-page{
      height:100dvh!important;
    }
  }

  .brand-panel{
    display:none!important;
  }

  .login-panel{
    width:100%;
    height:auto!important;
    max-height:100%;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center;
    justify-content:center;
    overflow:hidden!important;
  }

  .login-shell{
    width:min(100%,480px)!important;
    max-width:480px!important;
    max-height:
      calc(100vh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)))!important;
    margin:0 auto!important;
    padding:
      clamp(16px,2.7vh,24px)
      clamp(16px,5vw,24px)!important;
    box-sizing:border-box;
    overflow:hidden!important;
    border-radius:24px!important;

    /* Mobile should stay visually fixed in the screen, not float vertically. */
    animation:loginCardEnter .52s cubic-bezier(.16,1,.3,1) both!important;
  }

  @supports (height:100dvh){
    .login-shell{
      max-height:
        calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)))!important;
    }
  }

  .mobile-brand{
    margin-bottom:clamp(8px,1.7vh,14px)!important;
  }

  .login-intro{
    margin-bottom:clamp(10px,2vh,16px)!important;
  }

  .login-intro h1{
    font-size:clamp(24px,6vw,31px)!important;
    line-height:1.08!important;
    margin:0 0 5px!important;
  }

  .login-intro p{
    margin:0!important;
    font-size:clamp(12px,3vw,14px)!important;
    line-height:1.35!important;
  }

  .login-form,
  form{
    gap:clamp(8px,1.5vh,12px)!important;
  }

  .field,
  .form-field{
    margin-bottom:clamp(6px,1.2vh,10px)!important;
  }

  .input-shell{
    min-height:clamp(44px,6.7vh,52px)!important;
  }

  .login-submit,
  button[type="submit"]{
    min-height:clamp(44px,6.7vh,52px)!important;
  }

  .login-security-note{
    margin-top:clamp(7px,1.4vh,11px)!important;
    padding:8px 10px!important;
    line-height:1.3!important;
  }

  .login-foot{
    margin-top:clamp(7px,1.4vh,11px)!important;
  }

  /* Common phone heights: tighten just enough to guarantee no page scroll. */
  @media (max-height:740px){
    .login-shell{
      padding:14px 18px!important;
    }

    .mobile-brand{
      margin-bottom:6px!important;
    }

    .login-intro{
      margin-bottom:8px!important;
    }

    .login-intro h1{
      font-size:23px!important;
    }

    .login-intro p{
      font-size:12px!important;
    }

    .login-form,
    form{
      gap:7px!important;
    }

    .field,
    .form-field{
      margin-bottom:5px!important;
    }

    .input-shell,
    .login-submit,
    button[type="submit"]{
      min-height:43px!important;
    }

    .login-security-note{
      padding:6px 9px!important;
      margin-top:6px!important;
      font-size:10px!important;
    }

    .login-foot{
      margin-top:6px!important;
      font-size:10px!important;
    }
  }

  @media (max-height:620px){
    .login-shell{
      transform:scale(.91);
      transform-origin:center;
      width:min(109.9%,520px)!important;
      max-height:none!important;
    }

    .mobile-brand small,
    .login-security-note,
    .login-foot{
      font-size:9px!important;
    }
  }
}

/* iOS/Android browser chrome resize protection. */
@supports (-webkit-touch-callout:none){
  html,
  body,
  .login-page{
    min-height:-webkit-fill-available!important;
  }
}

/* No scrollbars should ever appear on the login screen. */
.login-page,
.login-panel,
.login-shell{
  scrollbar-width:none;
}
.login-page::-webkit-scrollbar,
.login-panel::-webkit-scrollbar,
.login-shell::-webkit-scrollbar{
  display:none;
}


/* =========================================================
   Login Brand Inside Card 1
   Remove the loose top-left brand and use the existing
   in-card mobile-brand block on every screen size.
   ========================================================= */

/* The outside/top-left brand is no longer needed. */
.brand-panel .brand-head{
  display:none!important;
}

/* Reuse the existing brand block that already lives inside .login-shell. */
.mobile-brand{
  display:flex!important;
  align-items:center;
  justify-content:flex-start;
  gap:11px;
}

/* Desktop: show branding neatly at the top of the glass login card. */
@media (min-width:961px){
  .mobile-brand{
    margin:0 0 clamp(12px,2vh,20px)!important;
    padding:0!important;
  }

  .mobile-brand .brand-mark.small{
    width:46px;
    height:46px;
    flex:0 0 46px;
    border-radius:14px;
    font-size:17px;
    box-shadow:
      0 10px 28px rgba(240,0,120,.18),
      inset 0 1px 0 rgba(255,255,255,.26);
  }

  .mobile-brand strong{
    font-size:16px;
    line-height:1.15;
    color:#332b34;
    letter-spacing:-.02em;
  }

  .mobile-brand small{
    margin-top:2px;
    font-size:9px;
    line-height:1.25;
    color:rgba(67,55,66,.58)!important;
    opacity:1!important;
  }
}

/* Mobile remains inside the card as before. */
@media (max-width:960px){
  .mobile-brand{
    display:flex!important;
  }
}


/* =========================================================
   Login Remove Welcome Line 1
   Remove only "ยินดีต้อนรับกลับครับ 👋" from the intro.
   Keep the explanatory line underneath.
   ========================================================= */

.login-intro p:first-of-type{
  display:none!important;
}

/* Rebalance spacing after removing the extra welcome sentence. */
.login-intro h2{
  margin-bottom:7px!important;
}

.login-intro p:last-of-type{
  margin-top:0!important;
}
