/* ============================================================
   中望国旅管理后台 · 登录页  V3 「赛博翡翠 · 深空数据中枢」
   风格：深色科技感 + 翡翠绿辉光 + HUD 元素 + 玻璃态 + 多层次动画
   ============================================================ */

:root {
  /* 翡翠绿主色系（品牌色）*/
  --brand-50:  #e9f8ef;
  --brand-100: #c9ecda;
  --brand-300: #4ec08c;
  --brand-400: #27a86e;
  --brand-500: #1a7a4a;   /* 主品牌色 */
  --brand-600: #14613b;
  --brand-700: #0e4c2f;
  --brand-800: #0a3a23;
  --brand-900: #062316;

  /* 深空底色 */
  --space-900: #021310;
  --space-800: #031b17;
  --space-700: #052722;
  --space-600: #08322d;

  /* 荧光 */
  --neon-green:  #6df3a6;
  --neon-mint:   #8ff5d0;
  --neon-cyan:   #4de2d1;

  /* 右侧表单（浅白面板色）*/
  --panel-bg:    rgba(255,255,255,0.68);
  --panel-border: rgba(20,97,59,0.10);
  --panel-text:  #0c2a1e;
  --panel-sub:   #557265;
  --panel-placeholder: #97aea3;
  --panel-input-bg: rgba(255,255,255,0.85);
  --panel-input-border: #dfe8e2;

  /* 字体 */
  --font-display: "Noto Serif SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:    "JetBrains Mono", Consolas, "Courier New", monospace;

  /* 动画曲线 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  background: var(--space-900);
  font-family: var(--font-body);
  color: var(--panel-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.login-wrapper {
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ================================================================
   左侧 · 科技感品牌展示区
   ================================================================ */
.login-hero {
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 54px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(74, 222, 128, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(20, 184, 166, 0.15), transparent 60%),
    linear-gradient(160deg, #011a15 0%, #03231b 25%, #05302a 55%, #03201c 85%, #010e0c 100%);
}

/* ---------- 噪点纹理 ---------- */
.bg-noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 多层光晕 blobs ---------- */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.7;
  will-change: transform;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, #2ecc71 0%, #16a34a 40%, transparent 70%);
  top: -160px; right: -140px;
  animation: blobA 16s ease-in-out infinite;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 60% 60%, #2dd4bf 0%, #0d9488 45%, transparent 72%);
  bottom: -120px; left: -80px;
  animation: blobB 20s ease-in-out infinite;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #34d399 0%, transparent 65%);
  top: 45%; right: 30%;
  animation: blobC 13s ease-in-out infinite;
  opacity: 0.45;
}
.blob-4 {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(149, 255, 205, 0.35) 0%, transparent 70%);
  top: 10%; left: 35%;
  animation: blobD 22s ease-in-out infinite;
  opacity: 0.55;
}
@keyframes blobA { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-50px,50px) scale(1.08)} }
@keyframes blobB { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,-40px) scale(1.1)} }
@keyframes blobC { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,30px)} }
@keyframes blobD { 0%,100%{transform:translate(0,0) rotate(0)} 50%{transform:translate(40px,-20px) rotate(10deg)} }

/* ---------- 双层错位网格（流动） ---------- */
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(110, 243, 166, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 243, 166, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}
.bg-grid-1 { animation: gridShiftA 28s linear infinite; }
.bg-grid-2 {
  background-size: 120px 120px;
  background-image:
    linear-gradient(rgba(77, 226, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 226, 209, 0.05) 1px, transparent 1px);
  animation: gridShiftB 42s linear infinite;
  mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 75%);
}
@keyframes gridShiftA { from { transform: translate(0, 0) } to { transform: translate(56px, 56px) } }
@keyframes gridShiftB { from { transform: translate(0, 0) } to { transform: translate(-120px, 120px) } }

/* ---------- 扫描线 ---------- */
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110,243,166,0.55), rgba(77,226,209,0.55), transparent);
  box-shadow: 0 0 14px rgba(110,243,166,0.45);
  top: -10%;
  animation: scanMove 6.5s ease-in-out infinite;
  z-index: 3;
  mix-blend-mode: screen;
}
@keyframes scanMove {
  0%   { top: -8%; opacity: 0 }
  10%  { opacity: 1 }
  50%  { top: 108% }
  90%  { opacity: 1 }
  100% { top: 108%; opacity: 0 }
}

/* ---------- HUD 四角装饰 ---------- */
.hud-corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: rgba(140, 255, 195, 0.75);
  z-index: 4;
  filter: drop-shadow(0 0 4px rgba(110,243,166,0.6));
  pointer-events: none;
}
.hud-corner.hud-tl { top: 18px; left: 18px;  border-top: 2px solid; border-left: 2px solid; }
.hud-corner.hud-tr { top: 18px; right: 18px; border-top: 2px solid; border-right: 2px solid; }
.hud-corner.hud-bl { bottom: 18px; left: 18px;  border-bottom: 2px solid; border-left: 2px solid; }
.hud-corner.hud-br { bottom: 18px; right: 18px; border-bottom: 2px solid; border-right: 2px solid; }

/* ---------- 粒子（JS 生成 span，CSS 动画驱动）---------- */
.particles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, #b8ffe0 0%, #6df3a6 50%, transparent 75%);
  box-shadow: 0 0 8px rgba(110,243,166,0.85), 0 0 18px rgba(77,226,209,0.35);
  animation: particleDrift linear infinite;
  will-change: transform, opacity;
}
@keyframes particleDrift {
  0%   { transform: translate(0, 0) scale(0.8); opacity: 0.0 }
  15%  { opacity: 1 }
  50%  { transform: translate(30px, -60px) scale(1) }
  85%  { opacity: 1 }
  100% { transform: translate(-10px, -160px) scale(0.5); opacity: 0 }
}

/* ---------- 光标追随光晕 ---------- */
.cursor-glow {
  position: absolute;
  width: 480px; height: 480px;
  left: var(--gx, 50%); top: var(--gy, 50%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,243,166,0.22) 0%, rgba(77,226,209,0.10) 35%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ---------- 旋转数据轨道 ---------- */
.orbit-container {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}
.orbit {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(110,243,166,0.18);
  will-change: transform;
}
.orbit::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(110,243,166,0.8), transparent 40%);
  mask: radial-gradient(circle, transparent 60%, black 61%, black 62%, transparent 63%);
  -webkit-mask: radial-gradient(circle, transparent 60%, black 61%, black 62%, transparent 63%);
  opacity: 0.7;
}
.orbit-1 { width: 240px; height: 240px; animation: orbitSpin 16s linear infinite; }
.orbit-2 { width: 380px; height: 380px; animation: orbitSpin 26s linear infinite reverse; border-color: rgba(77,226,209,0.14); }
.orbit-3 { width: 520px; height: 520px; animation: orbitSpin 40s linear infinite; border-color: rgba(255,255,255,0.06); }
.orbit-dot {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  left: 50%; top: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green), 0 0 22px rgba(77,226,209,0.7);
}
.orbit-dot-1 { transform: translate(120px, 0); animation: orbitDot1 16s linear infinite; }
.orbit-dot-2 { width: 6px; height: 6px; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); transform: translate(-190px, 0); animation: orbitDot2 26s linear infinite reverse; }
.orbit-dot-3 { width: 5px; height: 5px; background: #fff; opacity: 0.7; transform: translate(0, -260px); animation: orbitDot3 40s linear infinite; }
@keyframes orbitSpin { to { transform: translate(-50%,-50%) rotate(360deg) } }
@keyframes orbitDot1 { from { transform: rotate(0) translate(120px, 0) rotate(0) } to { transform: rotate(360deg) translate(120px, 0) rotate(-360deg) } }
@keyframes orbitDot2 { from { transform: rotate(0) translate(190px, 0) rotate(0) } to { transform: rotate(-360deg) translate(190px, 0) rotate(360deg) } }
@keyframes orbitDot3 { from { transform: rotate(0) translate(260px, 0) rotate(0) } to { transform: rotate(360deg) translate(260px, 0) rotate(-360deg) } }

/* ---------- 顶栏 HUD 标签 ---------- */
.hero-top-hud {
  position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hud-tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140,255,195,0.25);
  background: rgba(6,35,22,0.4);
  color: rgba(185, 255, 220, 0.75);
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 8px;
}
.hud-tag-active .hud-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 0 0 rgba(110,243,166,0.7);
  animation: pulseDot 1.8s ease-out infinite;
}
.hud-tag-active { color: #d8ffe8; }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(110,243,166,0.7) }
  70%  { box-shadow: 0 0 0 10px rgba(110,243,166,0) }
  100% { box-shadow: 0 0 0 0 rgba(110,243,166,0) }
}

/* ---------- 主内容区（相对定位，盖在背景层之上） ---------- */
.hero-content {
  position: relative; z-index: 6;
  display: flex; flex-direction: column; justify-content: center;
  flex: 1 1 auto;
  max-width: 560px;
}

/* ---------- LOGO ---------- */
.hero-logo { margin-bottom: 36px; position: relative; }
.logo-mark-lg {
  width: 92px; height: 92px;
  border-radius: 24px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(110,243,166,0.35), transparent 60%),
    linear-gradient(145deg, rgba(20,97,59,0.8), rgba(5,40,32,0.9));
  border: 1px solid rgba(140,255,195,0.35);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 60px rgba(110,243,166,0.18);
  backdrop-filter: blur(14px);
}
.logo-ring {
  position: absolute; inset: -10px;
  border-radius: 28px;
  border: 1px solid rgba(110,243,166,0.45);
  animation: ringPulse 3.4s ease-in-out infinite;
}
.logo-ring-2 {
  inset: -20px;
  border-color: rgba(77,226,209,0.25);
  border-radius: 32px;
  animation-delay: 0.6s;
  animation-duration: 4.2s;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.9 }
  50%      { transform: scale(1.08); opacity: 0.3 }
}
.logo-inner {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 900;
  background: linear-gradient(180deg, #d7ffe9 0%, #6df3a6 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(110,243,166,0.5));
}
.logo-subtext {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.28em;
  color: rgba(163, 255, 207, 0.65);
}

/* ---------- 标题 & 副标题 ---------- */
.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 40px; font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.15;
}
.title-gradient {
  background:
    linear-gradient(180deg, #ffffff 0%, #d9ffe9 45%, #6df3a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 28px rgba(110,243,166,0.25));
  position: relative;
}
.title-gradient::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0 } }

.hero-subtitle {
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.3em;
  color: rgba(175, 247, 208, 0.72);
  display: inline-flex; align-items: center; gap: 10px;
}
.label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

/* ---------- 假数据面板 ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.stat-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10,58,35,0.55), rgba(3,27,23,0.55));
  border: 1px solid rgba(110,243,166,0.14);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,243,166,0.6), transparent);
  opacity: 0.7;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110,243,166,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(110,243,166,0.08);
}
.stat-label {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(163, 255, 207, 0.7);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: #e9fff2;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(110,243,166,0.3);
  font-variant-numeric: tabular-nums;
}
.stat-bar {
  height: 4px; border-radius: 999px;
  background: rgba(110,243,166,0.1);
  overflow: hidden;
}
.stat-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-400), var(--neon-green), var(--neon-cyan));
  box-shadow: 0 0 10px rgba(110,243,166,0.5);
  transform-origin: left center;
  animation: barGrow 1.6s var(--ease-out-expo) both;
  animation-delay: 1.1s;
}
@keyframes barGrow { from { transform: scaleX(0) } to { transform: scaleX(1) } }

/* ---------- 特性列表（带 SVG 线描图标）---------- */
.hero-features {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 440px;
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(14,76,47,0.55), rgba(14,76,47,0.2));
  border: 1px solid rgba(110,243,166,0.12);
  border-left: 3px solid var(--brand-400);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.35s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.feature-item::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(110,243,166,0.12), transparent);
  transition: left 0.8s ease;
}
.feature-item:hover {
  transform: translateX(8px);
  border-color: rgba(110,243,166,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(110,243,166,0.08);
  background: linear-gradient(90deg, rgba(20,97,59,0.7), rgba(14,76,47,0.3));
}
.feature-item:hover::after { left: 120%; }

.feature-icon {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, rgba(110,243,166,0.35), transparent 60%), rgba(3,27,23,0.8);
  color: var(--neon-green);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(110,243,166,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 14px rgba(110,243,166,0.12);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text { display: flex; flex-direction: column; gap: 3px; }
.feature-title { font-size: 14px; font-weight: 600; color: #f2fff7; letter-spacing: 0.5px; }
.feature-desc {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  color: rgba(163, 255, 207, 0.65);
  text-transform: uppercase;
}

/* ---------- 左侧底栏 ---------- */
.hero-footer {
  position: relative; z-index: 6;
  padding-top: 20px;
  border-top: 1px solid rgba(110,243,166,0.10);
}
.footer-links {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 11.5px; letter-spacing: 0.1em;
  color: rgba(185, 255, 220, 0.55);
}
.footer-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(110,243,166,0.4);
}

/* ---------- 错峰入场 reveal ---------- */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    filter 0.7s var(--ease-out-expo);
  transition-delay: 0s;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ================================================================
   右侧 · 登录表单（高级感玻璃态）
   ================================================================ */
.login-main {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(26,122,74,0.05), transparent 60%),
    radial-gradient(500px 500px at 100% 100%, rgba(77,226,209,0.06), transparent 60%),
    linear-gradient(180deg, #f3faf6 0%, #eaf5ef 100%);
}
.main-bg-pulse {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(26,122,74,0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(77,226,209,0.05), transparent 40%);
  background-size: 200% 200%;
  animation: bgPulse 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bgPulse {
  0%, 100% { background-position: 0% 0% }
  50%      { background-position: 100% 100% }
}

/* ---------- 玻璃态登录面板 ---------- */
.login-box {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  padding: 38px 36px 28px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(248,253,250,0.82) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 30px 80px -20px rgba(10, 58, 35, 0.28),
    0 10px 30px -10px rgba(10, 58, 35, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transform: perspective(1200px) rotateX(0deg);
  transition: box-shadow 0.4s ease;
}
.login-box .hud-corner {
  border-color: rgba(26, 122, 74, 0.35);
  filter: drop-shadow(0 0 2px rgba(26,122,74,0.3));
  width: 18px; height: 18px;
}
.login-box .hud-tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.login-box .hud-tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; }
.login-box .hud-bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; }
.login-box .hud-br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }

/* 登录框发光渐变边框（外发光） */
.box-glow-border {
  position: absolute;
  inset: -1.5px;
  border-radius: 23.5px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(110,243,166,0.45), rgba(77,226,209,0.2) 30%, rgba(255,255,255,0.4) 50%, rgba(26,122,74,0.35) 80%, rgba(77,226,209,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  animation: borderShimmer 9s linear infinite;
  background-size: 200% 200%;
}
@keyframes borderShimmer { to { background-position: -200% 200% } }

.login-box.error-flash .box-glow-border {
  background: linear-gradient(135deg, rgba(255,100,120,0.7), rgba(255,70,90,0.35) 50%, rgba(255,100,120,0.7));
  animation-duration: 0.6s;
}
.login-box.shake { animation: shakeBox 0.55s var(--ease-out-back); }
@keyframes shakeBox {
  0%,100% { transform: translateX(0) }
  15%     { transform: translateX(-10px) rotate(-0.4deg) }
  35%     { transform: translateX(9px)  rotate(0.3deg) }
  55%     { transform: translateX(-6px) rotate(-0.2deg) }
  75%     { transform: translateX(4px)  rotate(0.1deg) }
}

/* ---------- 顶部标题区 ---------- */
.login-box-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}
.header-glow-bar {
  width: 52px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300), var(--neon-cyan));
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(110,243,166,0.45);
  position: relative; overflow: hidden;
}
.header-glow-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: barSweep 3.4s ease-in-out infinite;
}
@keyframes barSweep {
  0%   { transform: translateX(-120%) }
  60%  { transform: translateX(260%) }
  100% { transform: translateX(260%) }
}
.login-box-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  letter-spacing: 1px;
  color: var(--panel-text);
  line-height: 1.2;
}
.welcome-grad {
  background: linear-gradient(135deg, #0a3a23 0%, var(--brand-600) 45%, #0e7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.header-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--panel-sub);
  letter-spacing: 0.4px;
}

/* ---------- 表单元素 ---------- */
.login-box .form-group { margin-bottom: 20px; position: relative; z-index: 2; }
.form-label {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 9px;
  font-size: 12.5px; font-weight: 600;
  color: var(--brand-700);
  letter-spacing: 0.6px;
}
.form-label svg {
  width: 14px; height: 14px;
  color: var(--brand-500);
}

.input-wrapper {
  position: relative;
}
.login-box .form-input {
  width: 100%;
  padding: 15px 16px 13px;
  border: 1.5px solid var(--panel-input-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--panel-text);
  background: var(--panel-input-bg);
  box-shadow: inset 0 1px 2px rgba(12,42,30,0.04);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.2s var(--ease-out-expo);
  box-sizing: border-box;
  outline: none;
}
.login-box .form-input::placeholder { color: var(--panel-placeholder); }
.login-box .form-input:hover {
  border-color: #bddcce;
}
.login-box .form-input:focus,
.login-box .form-input.is-focus {
  border-color: transparent;
  background: #fff;
  box-shadow:
    0 0 0 1.5px var(--brand-500),
    0 8px 24px -6px rgba(26,122,74,0.25),
    0 0 0 5px rgba(26,122,74,0.08);
  transform: translateY(-1px);
}

/* 聚焦时底部扫光条 */
.input-focus-bar {
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--neon-green), var(--neon-cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out-expo);
  box-shadow: 0 0 10px rgba(110,243,166,0.4);
  pointer-events: none;
  opacity: 0.9;
}
.form-input.is-focus ~ .input-focus-bar,
.form-input:focus ~ .input-focus-bar {
  transform: scaleX(1);
}

/* ---------- 登录按钮 ---------- */
.btn-login {
  width: 100%;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 45%, var(--brand-400) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  margin-top: 6px;
  position: relative; overflow: hidden;
  box-shadow:
    0 10px 24px -8px rgba(26,122,74,0.55),
    0 2px 6px rgba(26,122,74,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s var(--ease-out-back), box-shadow 0.25s ease, filter 0.25s ease;
  z-index: 2;
}
.btn-login::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(110,243,166,0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-login:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 34px -10px rgba(26,122,74,0.65),
    0 4px 12px rgba(26,122,74,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 30px rgba(110,243,166,0.25);
  filter: brightness(1.06);
}
.btn-login:hover:not(:disabled)::before { opacity: 1; }
.btn-login:active:not(:disabled) {
  transform: translateY(0) scale(0.995);
}
.btn-login:disabled { cursor: not-allowed; filter: brightness(0.92); }

/* 扫光 */
.btn-shine {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
  transition: left 0.9s var(--ease-out-expo);
}
.btn-login:hover:not(:disabled) .btn-shine { left: 130%; }

/* Loading 态 */
.btn-login.loading { pointer-events: none; filter: saturate(0.85); }
.btn-login.loading .btn-text { visibility: hidden; }
.btn-login .btn-loader {
  position: absolute;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}
.btn-login.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 页脚 ---------- */
.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--panel-sub);
  position: relative;
  z-index: 2;
}
.login-footer .hint-msg { margin: 0 0 12px; }

.footer-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 14px;
}
.divider-line {
  flex: 1 1 auto; height: 1px; max-width: 100px;
  background: linear-gradient(90deg, transparent, rgba(26,122,74,0.3), transparent);
}
.divider-icon {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,122,74,0.06);
  color: var(--brand-500);
  border: 1px solid rgba(26,122,74,0.12);
}
.divider-icon svg { width: 14px; height: 14px; }

.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  color: var(--panel-placeholder);
  margin-top: 8px;
}
.footer-brand .mono { letter-spacing: 0.08em; }
.footer-brand .version {
  padding: 2px 7px;
  background: linear-gradient(180deg, rgba(26,122,74,0.10), rgba(26,122,74,0.04));
  color: var(--brand-600);
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(26,122,74,0.12);
  letter-spacing: 0;
  font-family: var(--font-mono);
}

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1080px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats .stat-card:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .login-wrapper { flex-direction: column; height: auto; min-height: 100vh; }
  body { overflow: auto; }

  .login-hero {
    flex: 0 0 auto;
    padding: 40px 32px 32px;
    min-height: 340px;
  }
  .orbit-container { right: -120px; opacity: 0.55; }
  .hero-title { font-size: 28px; letter-spacing: 1px; }
  .logo-mark-lg { width: 72px; height: 72px; border-radius: 20px; }
  .logo-inner { font-size: 32px; }
  .hero-stats { max-width: 460px; grid-template-columns: repeat(3, 1fr); }
  .hero-features { max-width: 460px; }
  .hero-content { max-width: none; }

  .login-main { padding: 36px 24px 48px; }
  .login-box { padding: 32px 26px 24px; }
  .login-box-header h2 { font-size: 24px; }

  /* 小屏隐藏部分装饰 */
  .login-box .hud-corner { opacity: 0.5; }
  .hud-corner { opacity: 0.7; }
}
@media (max-width: 560px) {
  .login-hero { padding: 28px 22px 24px; min-height: 290px; }
  .hero-top-hud { font-size: 10px; margin-bottom: 14px; }
  .hud-tag { padding: 4px 10px; }
  .hero-logo { margin-bottom: 22px; }
  .logo-mark-lg { width: 60px; height: 60px; border-radius: 16px; }
  .logo-inner { font-size: 27px; }
  .logo-subtext { letter-spacing: 0.18em; font-size: 10.5px; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { font-size: 10.5px; margin-bottom: 24px; letter-spacing: 0.2em; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
  .stat-card { padding: 10px 10px 9px; border-radius: 10px; }
  .stat-label { font-size: 9.5px; margin-bottom: 4px; }
  .stat-value { font-size: 19px; margin-bottom: 6px; }
  .hero-features { display: none; }
  .hero-footer { display: none; }
  .orbit-container { display: none; }

  .login-main { padding: 26px 18px 36px; }
  .login-box { padding: 26px 20px 22px; border-radius: 18px; }
  .box-glow-border { border-radius: 19.5px; }
  .login-box-header h2 { font-size: 22px; }
  .header-sub { font-size: 12.5px; }
  .form-input { padding: 13px 14px 12px; font-size: 14px; }
  .btn-login { padding: 13px 16px; font-size: 14px; letter-spacing: 2px; }
  .footer-brand .version { display: none; }
}
