.login-shell {
  --login-x: 50%;
  --login-y: 50%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(26px, 5vw, 64px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.16), rgba(8, 13, 24, 0.72)),
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.035) 0 1px, transparent 1px 72px);
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 28px;
  z-index: -2;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.06), transparent 30%, transparent 70%, rgba(245, 158, 11, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 16%, transparent 84%, rgba(34, 211, 238, 0.04)),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(148, 163, 184, 0.06) 118px 119px),
    repeating-linear-gradient(0deg, transparent 0 86px, rgba(148, 163, 184, 0.05) 86px 87px);
  opacity: 0.9;
  clip-path: polygon(0 0, 78% 0, 82% 22px, 100% 22px, 100% 100%, 18% 100%, 14% calc(100% - 22px), 0 calc(100% - 22px));
}

.login-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(34, 211, 238, 0.09) 48%, transparent 54%),
    linear-gradient(68deg, transparent 0 58%, rgba(245, 158, 11, 0.08) 62%, transparent 68%),
    linear-gradient(90deg, transparent 0 12%, rgba(34, 211, 238, 0.05) calc(var(--login-x) - 4%), rgba(245, 158, 11, 0.04) var(--login-x), transparent calc(var(--login-x) + 5%));
  filter: saturate(1.12);
}

.login-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cosmic-system {
  position: absolute;
  left: 3%;
  top: 21%;
  width: min(820px, 56vw);
  aspect-ratio: 1;
  opacity: 0.48;
  filter: blur(0.35px) saturate(1.08);
  mask-image: radial-gradient(circle at 48% 50%, #000 0 54%, rgba(0, 0, 0, 0.56) 67%, transparent 83%);
  transform: translate3d(0, 0, 0);
  animation: cosmicSystemDrift 14s ease-in-out infinite;
}

.cosmic-system::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    linear-gradient(125deg, rgba(34, 211, 238, 0.16), transparent 44%),
    linear-gradient(300deg, rgba(245, 158, 11, 0.12), transparent 48%);
  filter: blur(26px);
  opacity: 0.78;
}

.cosmic-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(34, 211, 238, 0.42) 44%, rgba(245, 158, 11, 0.34)),
    #0f172a;
  box-shadow:
    inset -16px -18px 26px rgba(2, 6, 23, 0.42),
    0 0 42px rgba(34, 211, 238, 0.32),
    0 0 88px rgba(245, 158, 11, 0.1);
  transform: translate(-50%, -50%);
  animation: cosmicCorePulse 5.8s ease-in-out infinite;
}

.cosmic-orbit {
  --orbit-angle: 0deg;
  --orbit-tilt: 64deg;
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--orbit-tilt)) rotateZ(var(--orbit-angle));
  animation: cosmicOrbitSpin 18s linear infinite;
}

.cosmic-orbit i {
  position: absolute;
  right: 10%;
  top: 46%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

.orbit-large {
  width: 86%;
  height: 42%;
}

.orbit-large i {
  width: 13px;
  height: 13px;
}

.orbit-mid {
  --orbit-angle: 62deg;
  --orbit-tilt: 68deg;
  width: 68%;
  height: 31%;
  border-color: rgba(245, 158, 11, 0.24);
  animation-duration: 24s;
  animation-direction: reverse;
}

.orbit-mid i {
  left: 15%;
  right: auto;
  background: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.72);
}

.orbit-small {
  --orbit-angle: -34deg;
  --orbit-tilt: 58deg;
  width: 48%;
  height: 23%;
  border-color: rgba(226, 232, 240, 0.18);
  animation-duration: 13s;
}

.orbit-small i {
  right: 26%;
  width: 7px;
  height: 7px;
  background: #e0f2fe;
}

.cosmic-arc {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  filter: blur(0.1px);
}

.arc-one {
  inset: 4%;
  animation: cosmicArcDrift 16s linear infinite;
}

.arc-two {
  inset: 22%;
  border-color: rgba(245, 158, 11, 0.14);
  border-right-color: transparent;
  border-top-color: transparent;
  animation: cosmicArcDrift 22s linear infinite reverse;
}

.star-drift {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  animation: starLayerDrift 18s ease-in-out infinite;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.92);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.58);
  animation: starFloat 8s ease-in-out infinite;
}

.star-one {
  left: 14%;
  top: 18%;
}

.star-two {
  left: 40%;
  top: 12%;
  animation-delay: -2s;
}

.star-three {
  left: 57%;
  top: 73%;
  animation-delay: -4s;
}

.star-four {
  left: 78%;
  top: 24%;
  animation-delay: -5.4s;
}

.star-five {
  left: 23%;
  top: 82%;
  animation-delay: -6.8s;
}

.hud-plate {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.09), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 0 38px rgba(34, 211, 238, 0.08);
  opacity: 0.7;
  transform: skewX(-12deg);
  animation: plateGlide 10s ease-in-out infinite;
}

.plate-one {
  width: 420px;
  height: 104px;
  top: 12%;
  right: 4%;
  opacity: 0.24;
}

.plate-two {
  width: 260px;
  height: 70px;
  left: 7%;
  bottom: 11%;
  animation-delay: -4s;
}

.data-rail {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.28), rgba(245, 158, 11, 0.2), transparent);
  transform: translate3d(0, 0, 0);
  animation: railScan 7.5s linear infinite;
}

.rail-one {
  top: 32%;
}

.rail-two {
  bottom: 26%;
  animation-duration: 9s;
  animation-delay: -3s;
}

.scan-beam {
  position: absolute;
  top: -18%;
  width: 1px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.36), transparent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.38);
  transform: rotate(18deg);
  opacity: 0.42;
  animation: loginBeamDrift 9s linear infinite;
}

.beam-one {
  left: 14%;
}

.beam-two {
  left: 64%;
  animation-duration: 12s;
  animation-delay: -4s;
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.28), transparent);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.beam-three {
  left: 92%;
  animation-duration: 10s;
  animation-delay: -7s;
}

.login-brand {
  max-width: 760px;
  position: relative;
}

.login-brand .brand {
  width: fit-content;
  margin-bottom: 58px;
  padding: 0;
  gap: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
}

.login-brand .brand::after {
  content: "";
  position: absolute;
  left: 98px;
  right: -52px;
  bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.74), rgba(245, 158, 11, 0.38), transparent);
  transform-origin: left;
  animation: brandLine 3.8s ease-in-out infinite;
}

.login-logo-mark {
  width: 92px;
  height: 92px;
  margin-left: -6px;
  transform: translateZ(0);
}

.login-logo-mark img {
  filter:
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 20px rgba(34, 211, 238, 0.28));
  animation: logoDrift 5.8s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  gap: 7px;
}

.brand-copy strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.18);
}

.brand-copy span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-eyebrow {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-brand h1 {
  max-width: 780px;
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 22px 72px rgba(34, 211, 238, 0.16),
    0 0 1px rgba(255, 255, 255, 0.32);
}

.login-brand p {
  margin-top: 22px;
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin-top: 34px;
}

.login-proof-grid article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(8, 13, 24, 0.46)),
    rgba(15, 23, 42, 0.32);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 16px 38px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.login-proof-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.36);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 24, 0.5));
}

.login-proof-grid strong {
  display: block;
  color: #f8fafc;
  font-size: 25px;
  line-height: 1.1;
}

.login-proof-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), transparent 24%),
    linear-gradient(210deg, rgba(245, 158, 11, 0.1), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(17, 26, 42, 0.97), rgba(8, 13, 24, 0.96));
  box-shadow:
    var(--shadow-strong),
    0 0 0 1px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  animation: cardEnter 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.14), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12px);
  transform: translateX(-120%);
  animation: cardSweep 5.8s ease-in-out infinite;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.login-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal);
  background: rgba(34, 211, 238, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.login-card-head h2 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.mode-toggle {
  flex: 0 0 auto;
  min-width: 108px;
  height: 38px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 10px;
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.18);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.mode-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.68);
  background: rgba(120, 53, 15, 0.3);
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 5px;
  background: rgba(2, 6, 23, 0.34);
}

.auth-method-tabs button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.auth-method-tabs button:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.auth-method-tabs button:active,
.mode-toggle:active,
.code-row button:active,
.oauth-grid button:active,
.login-card .generate-btn:active {
  transform: scale(0.98);
}

.auth-method-tabs button.active {
  color: var(--teal);
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--teal-soft);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.code-row button {
  height: 42px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(34, 211, 238, 0.1);
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.code-row button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(34, 211, 238, 0.12);
}

.code-row button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-card .generate-btn {
  width: 100%;
  margin: 20px 0 0;
  position: relative;
  overflow: hidden;
}

.login-card .generate-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.login-card .generate-btn:hover::after {
  transform: translateX(120%);
}

.login-tip {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.oauth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28));
}

.oauth-divider::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), transparent);
}

.oauth-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.oauth-grid button {
  display: inline-grid;
  place-items: center;
  gap: 8px;
  width: 78px;
  min-height: 82px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.58);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.oauth-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.32);
  color: var(--ink);
  background: rgba(15, 23, 42, 0.82);
}

.oauth-grid button.ready {
  color: #e0f2fe;
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.42), rgba(15, 23, 42, 0.72));
}

.oauth-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 50%;
  color: var(--teal);
  background: rgba(34, 211, 238, 0.08);
}

.oauth-icon svg {
  width: 26px;
  height: 26px;
}

.oauth-icon svg path,
.oauth-icon svg circle {
  fill: currentColor;
}

.oauth-button.wechat .oauth-icon {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.oauth-button.github .oauth-icon {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.18);
  background: rgba(248, 250, 252, 0.08);
}

.oauth-button.google .oauth-icon {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.96);
}

.oauth-button.google .g-blue {
  fill: #4285f4;
}

.oauth-button.google .g-green {
  fill: #34a853;
}

.oauth-button.google .g-yellow {
  fill: #fbbc05;
}

.oauth-button.google .g-red {
  fill: #ea4335;
}

.oauth-label {
  font-size: 13px;
  line-height: 1;
}

.oauth-grid button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .login-brand h1 {
    font-size: 62px;
  }

  .login-brand p {
    font-size: 18px;
  }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 24px;
    overflow: visible;
  }

  .login-brand h1 {
    font-size: 34px;
  }

  .login-brand p {
    font-size: 16px;
  }

  .login-brand .brand {
    margin-bottom: 28px;
  }

  .login-proof-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .login-card-head {
    display: grid;
  }

  .mode-toggle {
    width: fit-content;
  }

  .oauth-grid {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@keyframes loginBeamDrift {
  0% {
    transform: translate3d(-18vw, -4%, 0) rotate(18deg);
  }
  100% {
    transform: translate3d(18vw, 4%, 0) rotate(18deg);
  }
}

@keyframes cosmicSystemDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 12px, 0) scale(1.02);
  }
}

@keyframes cosmicOrbitSpin {
  from {
    transform: translate(-50%, -50%) rotateX(var(--orbit-tilt)) rotateZ(var(--orbit-angle));
  }
  to {
    transform: translate(-50%, -50%) rotateX(var(--orbit-tilt)) rotateZ(calc(var(--orbit-angle) + 360deg));
  }
}

@keyframes cosmicCorePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes cosmicArcDrift {
  from {
    transform: rotate(0deg);
    opacity: 0.42;
  }
  50% {
    opacity: 0.76;
  }
  to {
    transform: rotate(360deg);
    opacity: 0.42;
  }
}

@keyframes starFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.86);
    opacity: 0.38;
  }
  50% {
    transform: translate3d(14px, -18px, 0) scale(1.2);
    opacity: 1;
  }
}

@keyframes starLayerDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -12px, 0);
  }
}

@keyframes plateGlide {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(-12deg);
    opacity: 0.48;
  }
  50% {
    transform: translate3d(18px, -10px, 0) skewX(-12deg);
    opacity: 0.78;
  }
}

@keyframes railScan {
  0% {
    transform: translate3d(-16%, 0, 0) scaleX(0.72);
    opacity: 0;
  }
  12%,
  78% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(16%, 0, 0) scaleX(1);
    opacity: 0;
  }
}

@keyframes logoDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(1.5deg);
  }
}

@keyframes brandLine {
  0%,
  100% {
    transform: scaleX(0.58);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translate3d(18px, 18px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cardSweep {
  0%,
  58% {
    transform: translateX(-120%);
  }
  76%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-system,
  .star-drift,
  .cosmic-core,
  .cosmic-orbit,
  .cosmic-arc,
  .star,
  .hud-plate,
  .data-rail,
  .scan-beam,
  .login-card,
  .login-card::before,
  .login-logo-mark img,
  .login-brand .brand::after {
    animation: none;
  }

  .oauth-grid button,
  .mode-toggle,
  .code-row button,
  .auth-method-tabs button {
    transition: none;
  }
}

.login-site-footer {
  position: relative;
  z-index: 2;
  margin-top: -66px;
  color: rgba(203, 213, 225, 0.72);
}

.login-site-footer a:hover {
  color: #67e8f9;
}

/* Login UI v2：登录页保持品牌识别，减少框感，强化高级科技工作台气质。 */
.login-shell {
  grid-template-columns: minmax(0, 1fr) minmax(388px, 438px);
  gap: clamp(34px, 5.4vw, 86px);
  background:
    radial-gradient(circle at 23% 18%, rgba(103, 232, 249, 0.16), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(245, 158, 11, 0.08), transparent 24%),
    linear-gradient(rgba(148, 163, 184, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #08111f 54%, #05070d 100%);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.login-shell::before {
  inset: 22px;
  border-color: rgba(103, 232, 249, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(103, 232, 249, 0.06) 28.4%, transparent 29% 68%, rgba(245, 158, 11, 0.045) 68.4%, transparent 69%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 128px, rgba(148, 163, 184, 0.045) 128px 129px),
    repeating-linear-gradient(0deg, transparent 0 92px, rgba(148, 163, 184, 0.038) 92px 93px);
  clip-path: none;
}

.login-shell::after {
  background:
    radial-gradient(640px circle at var(--login-x, 50%) var(--login-y, 50%), rgba(103, 232, 249, 0.08), transparent 44%),
    linear-gradient(118deg, transparent 0 48%, rgba(103, 232, 249, 0.08) 48.4%, transparent 49.2%),
    linear-gradient(66deg, transparent 0 64%, rgba(245, 158, 11, 0.055) 64.3%, transparent 65%);
}

.cosmic-system {
  left: 6%;
  top: 19%;
  width: min(780px, 54vw);
  opacity: 0.38;
}

.hud-plate {
  opacity: 0.34;
  border-color: rgba(103, 232, 249, 0.12);
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.07), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 16px);
}

.scan-beam {
  opacity: 0.3;
}

.login-brand .brand {
  margin-bottom: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-brand .brand::after {
  left: 116px;
  right: -70px;
  bottom: -12px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.92), rgba(245, 158, 11, 0.38), transparent);
}

.login-logo-mark {
  width: 104px;
  height: 104px;
  margin-left: -8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-logo-mark img {
  filter:
    drop-shadow(0 24px 32px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(103, 232, 249, 0.34));
}

.brand-copy strong {
  font-size: clamp(30px, 3vw, 42px);
}

.brand-copy span,
.brand-eyebrow {
  color: var(--teal);
  letter-spacing: 0.02em;
}

.login-brand h1 {
  max-width: 880px;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 32px 90px rgba(103, 232, 249, 0.14);
}

.login-brand p {
  max-width: 700px;
  color: #9fb0c5;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.85;
}

.login-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 168px));
  gap: 14px;
}

.login-proof-grid article {
  min-height: 104px;
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(13, 21, 36, 0.72), rgba(6, 11, 21, 0.62)),
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), transparent 46%);
}

.login-proof-grid article:hover {
  border-color: rgba(103, 232, 249, 0.34);
  background:
    linear-gradient(180deg, rgba(17, 29, 48, 0.78), rgba(6, 11, 21, 0.66)),
    linear-gradient(135deg, rgba(103, 232, 249, 0.1), transparent 48%);
}

.login-card {
  border-radius: 22px;
  border-color: rgba(103, 232, 249, 0.2);
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(13, 21, 36, 0.94), rgba(6, 11, 21, 0.9)),
    linear-gradient(135deg, rgba(103, 232, 249, 0.11), transparent 42%, rgba(245, 158, 11, 0.055));
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.login-card::before {
  opacity: 0.52;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.11), transparent);
}

.login-card::after {
  border-radius: 21px;
  border-color: rgba(255, 255, 255, 0.04);
}

.login-card-head h2 {
  font-size: 30px;
}

.login-card-head p,
.login-tip {
  color: #91a1b7;
}

.login-kicker,
.auth-method-tabs,
.mode-toggle {
  border-radius: 12px;
}

.auth-method-tabs {
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(4, 9, 18, 0.7);
}

.auth-method-tabs button {
  border-radius: 10px;
}

.auth-method-tabs button.active {
  color: #031018;
  background: linear-gradient(135deg, #a5f3fc, #67e8f9);
}

.login-card form input {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(4, 9, 18, 0.78);
}

.code-row button,
.mode-toggle,
.oauth-button {
  border-radius: 12px;
}

.oauth-grid {
  gap: 10px;
}

.oauth-button {
  min-height: 54px;
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 21, 36, 0.86), rgba(5, 10, 19, 0.78));
  transition: transform 180ms var(--ease-premium), border-color 180ms var(--ease-premium), box-shadow 180ms var(--ease-premium);
}

.oauth-button:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.16);
}

.oauth-icon {
  background: rgba(103, 232, 249, 0.08);
}

.login-site-footer {
  color: rgba(203, 215, 230, 0.64);
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand h1 {
    font-size: clamp(46px, 11vw, 76px);
  }
}

@media (max-width: 680px) {
  .login-shell {
    padding: 18px;
  }

  .login-shell::before {
    inset: 10px;
  }

  .login-brand .brand {
    margin-bottom: 36px;
  }

  .login-logo-mark {
    width: 76px;
    height: 76px;
  }

  .login-proof-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 22px;
  }
}
