body:has(.login-modern) {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at 12% 10%, rgba(123, 97, 255, .11), transparent 30%),
    radial-gradient(circle at 88% 87%, rgba(44, 194, 161, .10), transparent 27%),
    linear-gradient(135deg, #f8f9fd 0%, #f1f3f9 46%, #f8f7fc 100%);
}

.login.login-modern {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
  width: min(1220px, 100%);
  min-height: 720px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(99, 94, 143, .13);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 34px 90px rgba(52, 55, 91, .16), 0 8px 24px rgba(65, 62, 104, .06);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.login.login-modern::before,
.login.login-modern::after { display: none; }

.login-modern .login-left {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-height: 720px;
  margin: 0;
  padding: 48px 58px 36px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,254,251,.98));
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: none;
}

.login-modern .login-left::before { display: none; }
.login-modern .login-mobile-brand { display: none; }

.login-modern .login-welcome { margin-bottom: 31px; }
.login-modern .login-welcome h1 {
  margin: 0;
  color: #23283d;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
}
.login-modern .login-welcome p {
  margin: 9px 0 0;
  color: #858b9c;
  font-size: 12px;
  line-height: 1.65;
}

.login-modern .login-form .field {
  position: relative;
  margin-bottom: 18px;
}
.login-modern .login-form .field::before { display: none; }
.login-modern .login-form .field > label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 9px;
  padding: 0;
  overflow: visible;
  clip: auto;
  color: #565d70;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.login-modern .login-input-wrap { position: relative; }
.login-modern .login-input-wrap > .icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #6c70df;
  transform: translateY(-50%);
}
.login-modern .login-form input {
  width: 100%;
  height: 54px;
  min-height: 54px;
  padding: 0 48px;
  border: 1px solid #e1e3ec;
  border-radius: 14px;
  outline: none;
  background: #fafbfe;
  color: #292e43;
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 3px 9px rgba(48, 52, 83, .025);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.login-modern .login-form input:focus {
  border-color: #8183ea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(94, 99, 226, .10);
}
.login-modern .login-form input:-webkit-autofill,
.login-modern .login-form input:-webkit-autofill:hover,
.login-modern .login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #292e43;
  -webkit-box-shadow: 0 0 0 1000px #fafbfe inset;
  transition: background-color 9999s ease-out;
}
.login-modern .password-wrap { position: relative; }
.login-modern .password-wrap button {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #959aaa;
}

.login-modern .login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 0 22px;
  color: #676e80;
  font-size: 11px;
}
.login-modern .login-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #676e80;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.login-modern .login-row input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  accent-color: #5d66e8;
  box-shadow: none;
}
.login-modern .login-row .btn.text {
  min-height: auto;
  padding: 5px 0;
  color: #5f63df;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  box-shadow: none;
}

.login-modern .login-session {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0 0 15px;
  padding: 12px 14px;
  color: #7f8799;
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  background: #f8f9fc;
  font-size: 10px;
}
.login-modern .login-session .icon { width: 15px; height: 15px; color: #32a782; }

.login-modern .login-form .submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4e6ef2, #6956df);
  box-shadow: 0 13px 26px rgba(79, 91, 221, .24);
  font-size: 13px;
  font-weight: 800;
}
.login-modern .login-form .submit .icon { width: 17px; height: 17px; }

.login-modern .demo-title {
  margin: 20px 0 9px;
  color: #8e93a2;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
}
.login-modern .demo-accounts { gap: 7px; }
.login-modern .demo-accounts button {
  padding: 9px 4px;
  border: 1px solid #e8e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.login-modern .demo-accounts button > .icon { width: 27px; height: 27px; margin-bottom: 5px; padding: 5px; }

.login-modern .login-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 51px;
  margin-top: 24px;
  padding: 0 15px;
  color: #7c8292;
  border: 1px solid #e8e7ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
  font-size: 10px;
}
.login-modern .login-info > .icon { width: 15px; height: 15px; color: #6568db; }
.login-modern .login-info .badge { color: #625ed1; background: #f0efff; font-size: 9px; }
.login-modern .login-foot {
  margin-top: 29px;
  color: #a0a4b0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.login-modern .login-left:has(.demo-accounts) { justify-content: flex-start; padding-top: 23px; padding-bottom: 15px; }
.login-modern .login-left:has(.demo-accounts) .login-welcome { margin-bottom: 14px; }
.login-modern .login-left:has(.demo-accounts) .login-welcome h1 { font-size: 27px; }
.login-modern .login-left:has(.demo-accounts) .login-form .field { margin-bottom: 9px; }
.login-modern .login-left:has(.demo-accounts) .login-form .field > label { margin-bottom: 5px; }
.login-modern .login-left:has(.demo-accounts) .login-form input { height: 48px; min-height: 48px; }
.login-modern .login-left:has(.demo-accounts) .password-wrap button { top: 5px; }
.login-modern .login-left:has(.demo-accounts) .login-row { margin: 0 0 8px; }
.login-modern .login-left:has(.demo-accounts) .login-session { min-height: 40px; padding-block: 8px; margin-bottom: 8px; }
.login-modern .login-left:has(.demo-accounts) .login-form .submit { height: 44px; min-height: 44px; }
.login-modern .login-left:has(.demo-accounts) .demo-title { margin: 10px 0 5px; }
.login-modern .login-left:has(.demo-accounts) .demo-accounts button { padding: 5px 4px; }
.login-modern .login-left:has(.demo-accounts) .demo-accounts button > .icon { width: 23px; height: 23px; margin-bottom: 2px; }
.login-modern .login-left:has(.demo-accounts) .login-info { min-height: 40px; margin-top: 9px; }
.login-modern .login-left:has(.demo-accounts) .login-foot { margin-top: 9px; }

.login-modern .login-right {
  position: relative;
  isolation: isolate;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 720px;
  padding: 50px 54px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #4c5eea 0%, #6554dd 47%, #4c3fbd 100%);
}
.login-modern .login-right::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 84% 13%, rgba(139, 247, 218, .30), transparent 25%),
    radial-gradient(circle at 14% 88%, rgba(121, 220, 255, .18), transparent 31%);
}
.login-modern .login-right::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -250px;
  bottom: -275px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, .035), 0 0 0 98px rgba(255, 255, 255, .025);
}

.login-modern .login-hero-brand { display: flex; align-items: center; gap: 13px; }
.login-modern .login-hero-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(24, 23, 90, .23);
}
.login-modern .login-hero-logo img { width: 43px; height: 43px; object-fit: contain; border-radius: 12px; }
.login-modern .login-hero-brand strong { display: block; color: #fff; font-size: 19px; letter-spacing: -.45px; }
.login-modern .login-hero-brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.login-modern .login-pill {
  position: static;
  margin-left: auto;
  padding: 8px 12px;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.login-modern .login-hero-copy { margin-top: 80px; max-width: 590px; }
.login-modern .login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  padding: 7px 11px;
  color: #c9fff0;
  border: 1px solid rgba(176,255,231,.25);
  border-radius: 999px;
  background: rgba(42,34,128,.20);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
}
.login-modern .login-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #70e0bd; box-shadow: 0 0 0 5px rgba(112,224,189,.13); }
.login-modern .login-right h2 {
  max-width: 600px;
  margin: 0;
  color: #fff;
  font-size: 43px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.8px;
}
.login-modern .login-right h2 em { color: #bff4e6; font-style: normal; }
.login-modern .login-right > .login-hero-copy > p {
  max-width: 570px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.8;
}

.login-modern .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.login-modern .feature {
  min-height: 128px;
  padding: 17px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.login-modern .feature-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 15px; color: #d9fff4; border-radius: 11px; background: rgba(255,255,255,.14); }
.login-modern .feature-icon .icon { width: 18px; height: 18px; }
.login-modern .feature h3 { margin: 0; color: #fff; font-size: 12px; font-weight: 750; }
.login-modern .feature p { margin: 7px 0 0; color: rgba(255,255,255,.60); font-size: 10px; line-height: 1.55; }

.login-modern .login-right-footer {
  position: static;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 28px;
  color: rgba(255,255,255,.58);
  border-top: 1px solid rgba(255,255,255,.12);
  font: 10px "Plus Jakarta Sans", sans-serif;
}
.login-modern .login-right-footer span { display: flex; align-items: center; gap: 7px; }
.login-modern .login-right-footer i { width: 5px; height: 5px; border-radius: 50%; background: #63dab6; }

@media (prefers-reduced-motion: no-preference) {
  .login.login-modern { animation: login-shell-in .45s cubic-bezier(.2,.8,.2,1) both; }
  .login-modern .login-left { animation: login-panel-in .45s .08s ease both; }
  .login-modern .login-hero-copy,
  .login-modern .feature-grid { animation: login-copy-in .48s .10s ease both; }
}
@keyframes login-shell-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes login-panel-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes login-copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  body:has(.login-modern) { padding: 28px; }
  .login.login-modern { grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); min-height: 680px; }
  .login-modern .login-left,
  .login-modern .login-right { min-height: 680px; }
  .login-modern .login-left { padding-inline: 42px; }
  .login-modern .login-right { padding: 42px 38px; }
  .login-modern .login-hero-copy { margin-top: 65px; }
  .login-modern .login-right h2 { font-size: 36px; }
  .login-modern .feature { padding: 14px; }
}

@media (max-width: 900px) {
  body:has(.login-modern) { display: block; padding: 20px; }
  .login.login-modern { display: block; width: min(500px, 100%); min-height: auto; margin: 0 auto; border-radius: 26px; }
  .login-modern .login-right { display: none; }
  .login-modern .login-left { width: 100%; min-height: calc(100vh - 40px); padding: 38px 30px; border-radius: 26px; }
  .login-modern .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
  .login-modern .login-mobile-brand img { width: 47px; height: 47px; object-fit: contain; border-radius: 13px; }
  .login-modern .login-mobile-brand strong { color: #252b41; font-size: 17px; }
  .login-modern .login-mobile-brand small { display: block; margin-top: 2px; color: #9297a5; font-size: 9px; text-transform: uppercase; }
}

@media (max-width: 480px) {
  body:has(.login-modern) { padding: 10px; }
  .login.login-modern { border-radius: 22px; }
  .login-modern .login-left { min-height: calc(100vh - 20px); padding: 30px 21px 24px; border-radius: 22px; }
  .login-modern .login-welcome h1 { font-size: 25px; }
  .login-modern .login-form input { height: 52px; min-height: 52px; }
  .login-modern .login-info { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .login.login-modern,
  .login-modern .login-left,
  .login-modern .login-hero-copy,
  .login-modern .feature-grid { animation: none !important; }
}
