:root {
  --bg-0: #041018;
  --bg-1: #071b25;
  --bg-2: #0f2f3c;
  --panel: rgba(7, 21, 31, 0.82);
  --panel-border: rgba(102, 245, 255, 0.22);
  --text: #e8fbff;
  --muted: #89b3bf;
  --accent: #66f5ff;
  --accent-2: #ff8a5b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(102, 245, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 138, 91, 0.12), transparent 24%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
  overflow: hidden;
}
.auth-shell { position: relative; min-height: 100vh; }
.auth-grid,.auth-noise { position: absolute; inset: 0; pointer-events: none; }
.auth-grid {
  background-image:
    linear-gradient(rgba(102,245,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,245,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.auth-noise {
  opacity: 0.08;
  background-image: radial-gradient(rgba(255,255,255,0.8) 0.6px, transparent 0.7px);
  background-size: 8px 8px;
}
.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  padding: 42px 52px;
}
.auth-hero {
  position: relative;
  padding: 34px 0 34px 18px;
}
.auth-robot-scene {
  position: relative;
  height: 380px;
  margin-bottom: 18px;
  perspective: 1200px;
}
.auth-robot-halo {
  position: absolute;
  left: 58px;
  top: 12px;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(102,245,255,0.26), rgba(102,245,255,0.06) 38%, transparent 68%);
  filter: blur(12px);
  animation: authPulse 4.8s ease-in-out infinite;
}
.auth-robot-orbit,
.auth-robot-stack,
.auth-robot-digits {
  position: absolute;
  pointer-events: none;
}
.auth-robot-orbit {
  border: 1px solid rgba(102, 245, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(102, 245, 255, 0.08);
}
.auth-robot-orbit.orbit-a {
  left: 70px;
  top: 34px;
  width: 360px;
  height: 238px;
  transform: rotateX(72deg) rotateZ(18deg);
  animation: authOrbitA 15s linear infinite;
}
.auth-robot-orbit.orbit-b {
  left: 98px;
  top: 46px;
  width: 304px;
  height: 214px;
  border-color: rgba(255, 138, 91, 0.18);
  transform: rotateX(72deg) rotateZ(-26deg);
  animation: authOrbitB 12s linear infinite;
}
.auth-robot-digits {
  color: rgba(102, 245, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(102, 245, 255, 0.28);
}
.auth-robot-digits.digits-a {
  left: 18px;
  top: 66px;
  transform: rotate(-8deg);
}
.auth-robot-digits.digits-b {
  right: 42px;
  top: 264px;
  color: rgba(255, 138, 91, 0.42);
  text-shadow: 0 0 12px rgba(255, 138, 91, 0.22);
  transform: rotate(5deg);
}
.auth-robot-stack {
  left: 100px;
  top: 10px;
  width: 306px;
  height: 336px;
  border-radius: 40px;
  background:
    linear-gradient(140deg, rgba(102, 245, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(8, 26, 36, 0.6), rgba(4, 12, 20, 0.1));
  border: 1px solid rgba(102, 245, 255, 0.12);
  filter: blur(0.4px);
}
.auth-robot-stack.back {
  transform: translateZ(-40px) translateX(-28px) translateY(12px) rotateY(-18deg);
  opacity: 0.34;
}
.auth-robot-stack.front {
  transform: translateZ(40px) translateX(18px) translateY(-8px) rotateY(16deg);
  opacity: 0.16;
  border-color: rgba(255, 138, 91, 0.12);
}
.auth-robot {
  position: absolute;
  left: 118px;
  top: 14px;
  width: 270px;
  height: 330px;
  transform-origin: 50% 58%;
  transform-style: preserve-3d;
  animation: authRobotTurn 18s linear infinite;
}
.auth-robot::before,
.auth-robot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46% 46% 38% 38%;
  pointer-events: none;
}
.auth-robot::before {
  border: 1px solid rgba(102,245,255,0.18);
  filter: blur(1px);
}
.auth-robot::after {
  box-shadow:
    0 0 18px rgba(102,245,255,0.18),
    0 0 42px rgba(102,245,255,0.08);
}
.auth-robot-panel {
  position: absolute;
  top: 84px;
  width: 28px;
  height: 164px;
  background: linear-gradient(180deg, rgba(14, 48, 60, 0.74), rgba(5, 14, 24, 0.82));
  border: 1px solid rgba(102, 245, 255, 0.22);
  box-shadow: inset 0 0 16px rgba(102, 245, 255, 0.08), 0 0 18px rgba(102, 245, 255, 0.08);
}
.auth-robot-panel.left {
  left: 32px;
  transform: translateZ(-20px) skewY(8deg);
}
.auth-robot-panel.right {
  right: 32px;
  transform: translateZ(-20px) skewY(-8deg);
}
.auth-robot-head,
.auth-robot-neck,
.auth-robot-torso,
.auth-robot-arm {
  position: absolute;
  border: 1px solid rgba(102,245,255,0.42);
  background: linear-gradient(180deg, rgba(14,40,52,0.9), rgba(7,18,28,0.78));
  box-shadow:
    inset 0 0 22px rgba(102,245,255,0.08),
    0 0 18px rgba(102,245,255,0.16);
}
.auth-robot-head {
  left: 77px;
  top: 12px;
  width: 116px;
  height: 104px;
  border-radius: 28px;
  transform: translateZ(24px);
}
.auth-robot-head::before,
.auth-robot-head::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 18px;
  height: 24px;
  border: 1px solid rgba(102,245,255,0.3);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(10,28,38,0.84);
}
.auth-robot-head::before { left: 24px; transform: rotate(-14deg); }
.auth-robot-head::after { right: 24px; transform: rotate(14deg); }
.auth-robot-eye {
  position: absolute;
  top: 36px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #66f5ff;
  box-shadow: 0 0 10px rgba(102,245,255,0.8), 0 0 22px rgba(102,245,255,0.35);
  animation: authPulse 2.8s ease-in-out infinite;
}
.auth-robot-eye.left { left: 30px; }
.auth-robot-eye.right { right: 30px; animation-delay: 0.3s; }
.auth-robot-mouth {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102,245,255,0.1), rgba(102,245,255,0.95), rgba(102,245,255,0.1));
  box-shadow: 0 0 16px rgba(102,245,255,0.28);
}
.auth-robot-neck {
  left: 110px;
  top: 112px;
  width: 50px;
  height: 36px;
  border-radius: 16px;
  transform: translateZ(8px);
}
.auth-robot-torso {
  left: 54px;
  top: 138px;
  width: 162px;
  height: 142px;
  border-radius: 34px 34px 42px 42px;
  transform: translateZ(18px);
}
.auth-robot-torso::before,
.auth-robot-torso::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 18px;
  background: linear-gradient(180deg, rgba(102, 245, 255, 0.18), rgba(102, 245, 255, 0.03));
  border: 1px solid rgba(102, 245, 255, 0.16);
}
.auth-robot-torso::before {
  left: -12px;
  transform: skewY(12deg);
}
.auth-robot-torso::after {
  right: -12px;
  transform: skewY(-12deg);
}
.auth-core-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 2px solid rgba(102,245,255,0.72);
  box-shadow: 0 0 20px rgba(102,245,255,0.34), inset 0 0 18px rgba(102,245,255,0.14);
  animation: authSpin 8s linear infinite;
}
.auth-core-ring.inner {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-color: rgba(255,138,91,0.72);
  box-shadow: 0 0 16px rgba(255,138,91,0.28), inset 0 0 12px rgba(255,138,91,0.12);
  animation-direction: reverse;
  animation-duration: 5s;
}
.auth-robot-arm {
  top: 152px;
  width: 42px;
  height: 118px;
  border-radius: 24px;
  transform-style: preserve-3d;
}
.auth-robot-arm.left {
  left: 14px;
  transform: translateZ(6px) rotate(14deg);
}
.auth-robot-arm.right {
  right: 14px;
  transform: translateZ(6px) rotate(-14deg);
}
.auth-kicker,.auth-eyebrow,.auth-panel-label {
  color: var(--accent);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
}
.auth-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-hero p,.auth-tip {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.auth-hero-panel,.auth-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.auth-hero-panel { margin-top: 28px; width: min(100%, 420px); padding: 20px 22px; }
.auth-panel-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth-panel-line:last-child { border-bottom: 0; }
.auth-panel-line span { color: var(--muted); }
.auth-panel-line strong { color: var(--text); font-size: 13px; letter-spacing: 0.08em; }
.auth-card {
  padding: 28px;
  position: relative;
  margin-right: 36px;
  margin-left: -16px;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,138,91,0.14);
  transform: translate(10px, 10px);
  pointer-events: none;
}
.auth-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}
.auth-card h2 { margin: 8px 0 0; font-size: 28px; }
.auth-badge {
  border: 1px solid rgba(102,245,255,0.22);
  color: var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.auth-field input {
  width: 100%;
  border: 1px solid rgba(102,245,255,0.16);
  background: rgba(2,10,15,0.78);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  font-size: 15px;
}
.auth-field input:focus {
  border-color: rgba(102,245,255,0.42);
  box-shadow: 0 0 0 3px rgba(102,245,255,0.08);
}
.auth-submit {
  margin-top: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), #84ffe4);
  color: #031218;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.auth-error {
  margin-bottom: 16px;
  border: 1px solid rgba(255,123,138,0.28);
  background: rgba(68,10,18,0.42);
  color: #ffd5da;
  padding: 12px 14px;
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .auth-layout { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .auth-hero { padding: 0; }
  .auth-robot-scene {
    height: 260px;
    margin-bottom: 10px;
  }
  .auth-robot-halo {
    left: 50%;
    top: 0;
    width: 280px;
    height: 220px;
    transform: translateX(-50%);
  }
  .auth-robot {
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: authRobotTurnMobile 18s linear infinite;
  }
  .auth-card {
    margin: 0;
  }
  .auth-card::before { display: none; }
}

@keyframes authPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes authSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes authOrbitA {
  from { transform: rotateX(72deg) rotateZ(18deg); }
  to { transform: rotateX(72deg) rotateZ(378deg); }
}

@keyframes authOrbitB {
  from { transform: rotateX(72deg) rotateZ(-26deg); }
  to { transform: rotateX(72deg) rotateZ(-386deg); }
}

@keyframes authRobotTurn {
  0%, 100% { transform: perspective(900px) rotateX(2deg) rotateY(-14deg) rotateZ(-1deg); }
  50% { transform: perspective(900px) rotateX(-1deg) rotateY(14deg) rotateZ(1deg); }
}

@keyframes authRobotTurnMobile {
  0%, 100% { transform: translateX(-50%) perspective(900px) rotateX(2deg) rotateY(-14deg) rotateZ(-1deg); }
  50% { transform: translateX(-50%) perspective(900px) rotateX(-1deg) rotateY(14deg) rotateZ(1deg); }
}
