:root {
  --ink: #172033;
  --muted: #6b778c;
  --line: rgba(99, 118, 141, 0.18);
  --accent: #1677ff;
  --accent-2: #67c7f2;
  --panel: rgba(255, 255, 255, 0.74);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(149, 211, 255, 0.38), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(202, 226, 192, 0.42), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #eef6ff 48%, #fbfcff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  overflow: hidden;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
  min-height: 100vh;
  padding: 44px;
}

.hero-scene {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  perspective: 1200px;
}

.scene-stage {
  position: relative;
  height: min(650px, 72vh);
  transform-style: preserve-3d;
  animation: stage-float 9s ease-in-out infinite;
}

.orbit,
.diagram-card,
.glass-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
}

.orbit {
  border: 1px solid rgba(42, 111, 190, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(22, 119, 255, 0.1);
}

.orbit-a {
  width: 520px;
  height: 210px;
  animation: orbit-a 12s linear infinite;
}

.orbit-b {
  width: 420px;
  height: 420px;
  animation: orbit-b 16s linear infinite;
}

.orbit-c {
  width: 640px;
  height: 310px;
  animation: orbit-c 18s linear infinite;
}

.glass-core {
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(231, 243, 255, 0.42));
  box-shadow: 0 32px 90px rgba(64, 105, 153, 0.24);
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-18deg);
}

.core-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 18px solid rgba(22, 119, 255, 0.16);
  border-top-color: rgba(103, 199, 242, 0.62);
  border-radius: 50%;
  animation: spin 6s linear infinite;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  gap: 16px;
  transform: translateZ(40px);
}

.core-grid span {
  height: 56px;
  border: 2px solid rgba(22, 119, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.diagram-card {
  width: 190px;
  height: 118px;
  border: 1px solid rgba(22, 119, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(49, 87, 130, 0.18);
}

.diagram-card span,
.diagram-card i,
.diagram-card b {
  position: absolute;
  border: 2px solid rgba(22, 119, 255, 0.58);
  background: rgba(255, 255, 255, 0.7);
}

.diagram-card span {
  left: 20px;
  top: 24px;
  width: 54px;
  height: 34px;
  border-radius: 50%;
}

.diagram-card i {
  right: 22px;
  top: 24px;
  width: 54px;
  height: 34px;
}

.diagram-card b {
  left: 70px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  transform: rotate(45deg);
}

.card-a {
  transform: translate3d(-420px, -160px, 120px) rotateY(-18deg) rotateX(14deg);
  animation: card-a 8s ease-in-out infinite;
}

.card-b {
  transform: translate3d(210px, -240px, 80px) rotateY(22deg) rotateX(12deg);
  animation: card-b 10s ease-in-out infinite;
}

.card-c {
  transform: translate3d(180px, 150px, 160px) rotateY(-28deg) rotateX(20deg);
  animation: card-c 9s ease-in-out infinite;
}

.hero-copy {
  position: absolute;
  left: 22px;
  bottom: 26px;
  max-width: 620px;
}

.eyebrow {
  color: #3775b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.auth-panel {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(57, 89, 128, 0.2);
  backdrop-filter: blur(22px);
}

.auth-home-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.auth-home-link:hover { color: #2563eb; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-row img {
  width: 48px;
  height: 48px;
}

.brand-row h2,
.brand-row p {
  margin: 0;
}

.brand-row h2 {
  font-size: 20px;
  color: #17243b;
  font-weight: 800;
}

.brand-row .brand-wordmark > span {
  color: #3159d9;
}

.brand-row p {
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tab,
.primary-action {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.tab {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.tab.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #4c5a70;
  font-size: 13px;
}

input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
}

.primary-action {
  margin-top: 8px;
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.24);
}

.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #d33f49;
  font-size: 13px;
}

@keyframes stage-float {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) translateY(0); }
  50% { transform: rotateX(2deg) rotateY(-4deg) translateY(-12px); }
}

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

@keyframes orbit-a {
  to { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(360deg); }
}

@keyframes orbit-b {
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateY(22deg) rotateZ(-360deg); }
}

@keyframes orbit-c {
  to { transform: translate(-50%, -50%) rotateX(58deg) rotateY(-26deg) rotateZ(360deg); }
}

@keyframes card-a {
  50% { transform: translate3d(-390px, -132px, 170px) rotateY(-10deg) rotateX(18deg); }
}

@keyframes card-b {
  50% { transform: translate3d(250px, -210px, 135px) rotateY(16deg) rotateX(18deg); }
}

@keyframes card-c {
  50% { transform: translate3d(140px, 120px, 210px) rotateY(-18deg) rotateX(26deg); }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-scene {
    min-height: 420px;
  }
}
