body.auth-pending > .app,
body.auth-pending > .site-compliance {
  display: none;
}

#loginScreen.la-login {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  place-items: initial;
  color: #0B1B3F;
  background: linear-gradient(135deg, #F6FAFF 0%, #E6F0FF 50%, #D6E6FF 100%);
  font-family: "Source Han Sans CN", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.la-login-page {
  position: relative;
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 100dvh;
  overflow: hidden;
}

.la-aurora {
  position: absolute;
  z-index: -2;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 48% at 18% 42%, rgba(0, 164, 255, .30), transparent 100%),
    radial-gradient(ellipse 34% 45% at 62% 34%, rgba(74, 74, 224, .25), transparent 100%),
    radial-gradient(ellipse 38% 40% at 45% 76%, rgba(1, 62, 221, .18), transparent 100%);
  filter: blur(60px);
  animation: la-aurora-drift 20s ease-in-out infinite alternate;
}

.la-waves {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: min(34vh, 340px);
  pointer-events: none;
}

.la-waves path {
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.la-brand-panel {
  position: relative;
  min-width: 0;
  padding: 48px;
}

.la-signature {
  position: absolute;
  top: 48px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.la-signature img {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
}

.la-signature span {
  color: #013EDD;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.la-brand-content {
  display: flex;
  width: min(560px, 82%);
  min-height: calc(100dvh - 96px);
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 70px;
}

.la-thought-stack {
  position: relative;
  width: min(440px, 92%);
  height: 212px;
  margin: 0 0 30px 14px;
  pointer-events: none;
}

.la-thought {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 16px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 8px 24px rgba(1, 62, 221, .10);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  color: #3D4A6B;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  opacity: .35;
  animation: la-bubble-cycle 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * .62s);
}

.la-thought:nth-child(1) {
  --x: 52px;
  --y: 0;
  --i: 0;
  filter: blur(.7px);
  animation-name: la-bubble-cycle-faded;
}

.la-thought:nth-child(2) {
  --x: 8px;
  --y: 55px;
  --i: 1;
}

.la-thought:nth-child(3) {
  --x: 64px;
  --y: 110px;
  --i: 2;
}

.la-thought:nth-child(4) {
  --x: 16px;
  --y: 165px;
  --i: 3;
  border-color: rgba(1, 62, 221, .12);
  background: #E8F0FF;
  color: #013EDD;
}

.la-thought svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.la-brand-title {
  margin: 0;
  background: linear-gradient(100deg, #013EDD 0%, #0A2A9E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(58px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.12;
}

.la-brand-copy {
  max-width: 520px;
  margin: 18px 0 0;
  color: #5B6785;
  font-size: 18px;
  line-height: 1.75;
}

.la-brand-credit {
  margin: 38px 0 0;
  color: #8A93A8;
  font-size: 13px;
  letter-spacing: .04em;
}

.la-auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 8vw 48px 36px;
}

.la-auth-card {
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 70px rgba(1, 62, 221, .16);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.la-auth-card h1 {
  margin: 0;
  color: #0B1B3F;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.la-auth-subtitle {
  margin: 9px 0 30px;
  color: #5B6785;
  font-size: 14px;
  line-height: 1.65;
}

.la-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.la-field label {
  color: #3D4A6B;
  font-size: 13px;
  line-height: 20px;
}

.la-field-hint {
  display: block;
  margin-top: 7px;
  color: #8A93A8;
  font-size: 12px;
  line-height: 1.55;
}

.la-input-shell {
  position: relative;
}

.la-input-shell input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background: #F4F7FF;
  color: #0B1B3F;
  font-size: 15px;
  line-height: 52px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.la-input-shell.has-action input {
  padding-right: 52px;
}

.la-input-shell input::placeholder {
  color: #8A93A8;
}

.la-input-shell input:focus {
  border-color: #013EDD;
  box-shadow: 0 0 0 4px rgba(1, 62, 221, .12);
}

.la-input-shell input:-webkit-autofill,
.la-input-shell input:-webkit-autofill:hover,
.la-input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0B1B3F;
  box-shadow: 0 0 0 1000px #F4F7FF inset, 0 0 0 4px rgba(1, 62, 221, .12);
  transition: background-color 9999s ease-out;
}

.la-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 8px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8A93A8;
  cursor: pointer;
  transform: translateY(-50%);
}

.la-password-toggle:hover {
  color: #013EDD;
  background: rgba(1, 62, 221, .06);
}

.la-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.la-password-toggle svg[hidden] {
  display: none;
}

.la-login-error {
  min-height: 19px;
  margin: 0 0 12px;
  color: #E5484D;
  font-size: 13px;
  line-height: 1.45;
}

.la-login-submit {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #2F7BE8, #013EDD);
  box-shadow: 0 10px 24px rgba(1, 62, 221, .28);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 160ms ease, transform 120ms ease;
}

.la-login-submit:hover {
  filter: brightness(1.06);
}

.la-login-submit:active {
  transform: scale(.99);
}

.la-login-submit:disabled {
  cursor: wait;
  filter: saturate(.8) brightness(.98);
}

.la-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: white;
  border-radius: 50%;
  animation: la-spin .8s linear infinite;
}

.la-login-submit.is-loading .la-spinner {
  display: block;
}

.la-register-row {
  margin: 24px 0 0;
  color: #5B6785;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.la-register-row button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #013EDD;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.la-register-row button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.la-login-footer {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8A93A8;
  font-size: 12px;
  line-height: 1.5;
  transform: translateX(-50%);
  white-space: nowrap;
}

.la-login-footer a {
  color: inherit;
  text-decoration: none;
}

.la-login-footer a:hover {
  color: #013EDD;
}

@keyframes la-aurora-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to { transform: translate3d(4%, -2%, 0) scale(1.06); }
}

@keyframes la-bubble-cycle {
  0%,
  18%,
  100% { opacity: .30; transform: translateY(4px); }
  30%,
  58% { opacity: 1; transform: translateY(0); }
  76% { opacity: .68; transform: translateY(-2px); }
}

@keyframes la-bubble-cycle-faded {
  0%,
  100% { opacity: .28; }
  48% { opacity: .46; }
}

@keyframes la-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1099.98px) {
  .la-login-page {
    display: block;
  }

  .la-brand-panel {
    display: none;
  }

  .la-auth-panel {
    min-height: 100dvh;
    padding: 32px 20px;
    justify-content: center;
  }

  .la-auth-card {
    transform: none;
  }

  .la-waves {
    height: 260px;
  }
}

@media (max-width: 520px) {
  .la-auth-panel {
    padding: 20px 16px;
  }

  .la-auth-card {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .la-auth-card h1 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .la-aurora,
  .la-thought,
  .la-spinner {
    animation: none;
  }

  .la-thought {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .la-thought:first-child {
    opacity: .35;
    filter: blur(.7px);
  }
}

/* The legacy login form has ID-level sizing; these scoped rules keep it intact while applying the new visual. */
#loginScreen #liveLogin.la-auth-card {
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 70px rgba(1, 62, 221, .16);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

#loginScreen #liveLogin {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#loginScreen #liveLogin h1 {
  margin: 0;
  color: #0B1B3F;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
}

#loginScreen #liveLogin .la-field label {
  display: block;
  margin: 0;
  color: #3D4A6B;
  font-size: 13px;
  line-height: 20px;
}

#loginScreen #liveLogin #loginError.la-login-error {
  min-height: 19px;
  margin: 0 0 12px;
  color: #E5484D;
  font-size: 13px;
  line-height: 1.45;
}

#loginScreen #liveLogin .la-input-shell input {
  width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #F4F7FF;
  color: #0B1B3F;
  font-size: 15px;
  line-height: 52px;
}

#loginScreen #liveLogin .la-input-shell.has-action input {
  padding-right: 52px;
}

#loginScreen #liveLogin .la-input-shell input:focus {
  border-color: #013EDD;
  box-shadow: 0 0 0 4px rgba(1, 62, 221, .12);
}

#loginScreen #liveLogin .la-input-shell input:-webkit-autofill,
#loginScreen #liveLogin .la-input-shell input:-webkit-autofill:hover,
#loginScreen #liveLogin .la-input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0B1B3F;
  box-shadow: 0 0 0 1000px #F4F7FF inset, 0 0 0 4px rgba(1, 62, 221, .12);
  transition: background-color 9999s ease-out;
}

#loginScreen .la-auth-card:has(#activationForm) {
  width: min(440px, 100%);
  padding: 44px;
}

#loginScreen #activationForm {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#loginScreen #activationForm .la-field label {
  display: block;
  margin: 0;
  color: #3D4A6B;
  font-size: 13px;
  line-height: 20px;
}

#loginScreen #activationForm .la-input-shell input {
  width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #F4F7FF;
  color: #0B1B3F;
  font-size: 15px;
  line-height: 52px;
}

#loginScreen #activationForm .la-input-shell input:focus {
  border-color: #013EDD;
  box-shadow: 0 0 0 4px rgba(1, 62, 221, .12);
}

#loginScreen #activationForm .la-input-shell input:-webkit-autofill,
#loginScreen #activationForm .la-input-shell input:-webkit-autofill:hover,
#loginScreen #activationForm .la-input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0B1B3F;
  box-shadow: 0 0 0 1000px #F4F7FF inset, 0 0 0 4px rgba(1, 62, 221, .12);
  transition: background-color 9999s ease-out;
}

#loginScreen #activationError.la-login-error {
  min-height: 19px;
  margin: 0 0 12px;
  color: #E5484D;
  font-size: 13px;
  line-height: 1.45;
}
