body.auth-body,
html.auth-body {
  margin: 0;
  padding: 0 !important;
  overflow-x: hidden;
}

.login-page-v2 {
  --panel-border: rgba(147, 173, 255, 0.2);
  --panel-bg-left: linear-gradient(155deg, rgba(31, 45, 84, 0.92), rgba(18, 24, 52, 0.95));
  --panel-bg-right: linear-gradient(165deg, rgba(17, 23, 45, 0.95), rgba(10, 15, 33, 0.96));
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(1200px 700px at -18% -10%, rgba(69, 122, 255, 0.34) 0%, rgba(69, 122, 255, 0) 58%),
    radial-gradient(900px 700px at 112% 110%, rgba(73, 240, 207, 0.2) 0%, rgba(73, 240, 207, 0) 56%),
    linear-gradient(180deg, #070c1d 0%, #0b1226 52%, #0c1523 100%);
  overflow: hidden;
  isolation: isolate;
}

.login-page-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.38) 0.8px, transparent 0.8px);
  background-size: 44px 44px;
  opacity: 0.25;
  animation: stars-drift 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.login-page-v2::after {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(circle at 18% 30%, rgba(130, 179, 255, 0.18) 0 1.2px, transparent 1.2px),
    radial-gradient(circle at 72% 26%, rgba(127, 229, 222, 0.18) 0 1.1px, transparent 1.1px),
    radial-gradient(circle at 34% 72%, rgba(122, 164, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 74%, rgba(154, 189, 255, 0.16) 0 1.1px, transparent 1.1px);
  background-size: 190px 190px, 215px 215px, 170px 170px, 240px 240px;
  opacity: 0.62;
  animation: tiny-dots-flow 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.login-icon-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-floating-icon {
  position: absolute;
  width: clamp(24px, 2.6vw, 42px);
  height: clamp(24px, 2.6vw, 42px);
  object-fit: contain;
  opacity: 0.14;
  filter: drop-shadow(0 0 14px rgba(78, 128, 255, 0.35));
  animation: icon-float var(--duration, 18s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

.login-card-v2 {
  width: min(100%, 980px);
  min-height: 520px;
  border-radius: 30px;
  border: 1px solid var(--panel-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow:
    0 26px 65px rgba(2, 7, 20, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  background: rgba(8, 12, 28, 0.82);
  backdrop-filter: blur(12px);
  animation: login-card-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.login-left-v2,
.login-right-v2 {
  padding: 2.25rem 2.45rem;
  position: relative;
}

.login-left-v2 {
  background: var(--panel-bg-left);
  border-right: 1px solid rgba(160, 180, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-left-v2::after {
  content: none;
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -16%;
  height: 52%;
  background:
    radial-gradient(circle, rgba(108, 172, 255, 0.9) 0 1.2px, transparent 1.35px) 0 0 / 15px 15px,
    radial-gradient(circle, rgba(233, 245, 255, 0.84) 0 1px, transparent 1.2px) 40px 26px / 18px 18px,
    radial-gradient(circle, rgba(72, 139, 255, 0.78) 0 1.35px, transparent 1.5px) 92px 10px / 20px 20px,
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 0.9px, transparent 1.1px) 8px 44px / 13px 13px;
  clip-path: ellipse(56% 48% at 50% 70%);
  transform: perspective(620px) rotateX(62deg) translateY(2%);
  opacity: 0.66;
  animation: none;
  filter: drop-shadow(0 -6px 18px rgba(73, 128, 255, 0.3));
  pointer-events: none;
}

.login-left-v2::before {
  content: none;
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16%;
  height: 22%;
  background: radial-gradient(ellipse at 50% 100%, rgba(58, 118, 255, 0.32) 0%, rgba(58, 118, 255, 0) 72%);
  opacity: 0.8;
  animation: none;
  pointer-events: none;
}

.brand-emblem {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 18px rgba(89, 129, 255, 0.6));
}

.welcome-copy {
  font-family: 'Satisfy', cursive;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(96deg, #47a6ff 0%, #6f7cff 46%, #ae63ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.left-heading {
  margin: 0.45rem 0 0;
  color: #e8eefc;
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.02;
  font-weight: 800;
}

.left-heading .brand-word {
  display: inline-block;
  margin-top: 0.18rem;
  font-family: 'Satisfy', cursive;
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: linear-gradient(96deg, #3b94ff 0%, #5c7cff 44%, #8f63ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(97, 118, 255, 0.26);
}

.left-subtext {
  margin: 1.5rem 0 0;
  color: rgba(222, 232, 255, 0.82);
  font-size: 1.13rem;
  max-width: 34ch;
  line-height: 1.65;
}

.accent-divider {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  margin: 1.25rem 0 0;
  background: linear-gradient(90deg, #4e87ff, #8d63ff);
  box-shadow: 0 0 16px rgba(108, 123, 255, 0.55);
}

.login-right-v2 {
  background: var(--panel-bg-right);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: right-panel-enter 700ms cubic-bezier(0.2, 0.9, 0.2, 1) 90ms both;
  will-change: transform, opacity;
}

.login-right-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(126, 157, 255, 0.18), rgba(126, 157, 255, 0));
  transform: translateX(-120%);
  opacity: 0;
  animation: panel-light-sweep 1s ease-out 180ms both;
  pointer-events: none;
}

.form-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  color: #f6f8ff;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.form-subtitle {
  margin: 0.45rem 0 1.7rem;
  color: rgba(214, 224, 249, 0.82);
  font-size: 1.02rem;
}

.login-alert {
  margin-bottom: 0.95rem;
  border: 1px solid rgba(255, 116, 116, 0.35);
  background: rgba(255, 68, 68, 0.12);
  color: #ffd3d3;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.93rem;
}

.login-form-v2 .field-wrap {
  margin-bottom: 1.05rem;
  opacity: 0;
  animation: form-field-rise 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  will-change: transform, opacity;
}

.login-form-v2 .field-wrap:nth-of-type(1) {
  animation-delay: 210ms;
}

.login-form-v2 .field-wrap:nth-of-type(2) {
  animation-delay: 290ms;
}

.login-form-v2 .field-wrap:nth-of-type(3) {
  animation-delay: 360ms;
}

.login-form-v2 label {
  display: inline-block;
  margin-bottom: 0.48rem;
  color: rgba(227, 236, 255, 0.95);
  font-weight: 700;
  font-size: 0.95rem;
}

.input-shell {
  position: relative;
}

.input-shell .field-icon {
  position: absolute;
  left: 0.92rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(206, 221, 255, 0.62);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-shell input {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  border: 1px solid rgba(140, 162, 224, 0.24);
  background: rgba(13, 19, 39, 0.94);
  color: #eef3ff;
  font-size: 1rem;
  padding: 0.72rem 2.6rem 0.72rem 2.7rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus,
.input-shell input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(13, 19, 39, 0.94) inset !important;
  box-shadow: 0 0 0 1000px rgba(13, 19, 39, 0.94) inset !important;
  -webkit-text-fill-color: #eef3ff !important;
  border: 1px solid rgba(140, 162, 224, 0.24) !important;
  transition: background-color 9999s ease-out 0s;
}

.input-shell input::placeholder {
  color: rgba(183, 199, 233, 0.6);
}

.input-shell input:focus {
  border-color: rgba(102, 141, 255, 0.9);
  box-shadow: 0 0 0 0.16rem rgba(78, 122, 255, 0.2);
  background: rgba(15, 24, 48, 0.96);
}

.eye-icon {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(202, 215, 248, 0.62);
  font-size: 0.95rem;
  cursor: pointer;
  pointer-events: auto;
}

.eye-icon.is-active {
  color: rgba(162, 193, 255, 0.95);
}

.btn-login-v2 {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(96deg, #3f89ff 0%, #6f67ff 55%, #8b58ff 100%);
  box-shadow: 0 12px 28px rgba(82, 102, 255, 0.33);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  opacity: 0;
  animation: form-field-rise 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 430ms forwards;
  will-change: transform, opacity;
}

.btn-login-v2:hover,
.btn-login-v2:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(82, 102, 255, 0.42);
  filter: brightness(1.04);
}

.auth-divider {
  margin: 1.35rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(187, 200, 233, 0.65);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  opacity: 0;
  animation: form-field-rise 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 490ms forwards;
  will-change: transform, opacity;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(159, 177, 227, 0), rgba(159, 177, 227, 0.38), rgba(159, 177, 227, 0));
}

.switch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  color: rgba(205, 217, 247, 0.78);
  font-size: 1rem;
  opacity: 0;
  animation: form-field-rise 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 560ms forwards;
  will-change: transform, opacity;
}

.switch-row a {
  color: #78aaff;
  text-decoration: none;
  font-weight: 700;
}

.switch-row a:hover {
  color: #a6c8ff;
  text-decoration: underline;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.11;
  }
  25% {
    transform: translate3d(-14px, -20px, 0) rotate(-6deg);
    opacity: 0.19;
  }
  50% {
    transform: translate3d(8px, -34px, 0) rotate(4deg);
    opacity: 0.15;
  }
  75% {
    transform: translate3d(18px, -12px, 0) rotate(7deg);
    opacity: 0.2;
  }
}

@keyframes stars-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(44px);
  }
}

@keyframes tiny-dots-flow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-16px, -20px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-32px, -40px, 0) scale(1);
  }
}

@keyframes login-card-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes right-panel-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes panel-light-sweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  25% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes form-field-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes blue-dot-random-drift {
  0% {
    background-position: 0 0, 40px 26px, 92px 10px, 8px 44px;
  }
  25% {
    background-position: -26px -10px, 56px 42px, 76px 26px, 18px 58px;
  }
  50% {
    background-position: -8px -28px, 32px 10px, 104px -8px, -6px 34px;
  }
  75% {
    background-position: -34px -4px, 68px 22px, 86px 38px, 24px 20px;
  }
  100% {
    background-position: 0 0, 40px 26px, 92px 10px, 8px 44px;
  }
}

@keyframes blue-dot-wave-breathe {
  0%,
  100% {
    transform: perspective(620px) rotateX(62deg) translateY(2%) scaleY(1);
    opacity: 0.52;
  }
  50% {
    transform: perspective(620px) rotateX(62deg) translateY(-2%) scaleY(1.06);
    opacity: 0.7;
  }
}

@keyframes blue-dot-wave-glow {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-4px);
  }
}

@media (max-width: 960px) {
  .login-card-v2 {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-left-v2,
  .login-right-v2 {
    padding: 1.9rem 1.35rem;
  }

  .login-left-v2 {
    border-right: none;
    border-bottom: 1px solid rgba(160, 180, 255, 0.14);
  }

  .login-left-v2::after {
    height: 38%;
    bottom: -12%;
  }

  .login-left-v2::before {
    bottom: 12%;
    height: 18%;
  }

  .left-subtext {
    margin-top: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .login-page-v2 {
    padding: 0.9rem 0.5rem;
  }

  .login-card-v2 {
    border-radius: 18px;
  }

  .login-left-v2,
  .login-right-v2 {
    padding: 1.35rem 0.95rem;
  }

  .form-title {
    font-size: 1.8rem;
  }

  .switch-row {
    flex-wrap: wrap;
  }
}
