/* ===== 登录页（单栏居中，#02040c 星空气氛） ===== */
#loginPage { position: fixed; inset: 0; overflow: hidden; z-index: 50;
  background: #02040c; display: flex; flex-direction: column; }

/* 氛围光晕 */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; animation: float 16s ease-in-out infinite; }
.o1 { width: 44vw; height: 44vw; min-width: 420px; min-height: 420px; background: radial-gradient(circle, rgba(0,120,255,.4), transparent 65%); top: -14vw; left: -12vw; }
.o2 { width: 38vw; height: 38vw; min-width: 360px; min-height: 360px; background: radial-gradient(circle, rgba(0,212,255,.32), transparent 65%); bottom: -10vw; right: -10vw; animation-delay: -6s; }
.o3 { width: 34vw; height: 34vw; min-width: 260px; min-height: 260px; background: radial-gradient(circle, rgba(0,150,255,.26), transparent 65%); top: 40%; left: 58%; animation-delay: -11s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1) } 50% { transform: translateY(-42px) scale(1.06) } }
.login-wrap { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glass-ring { position: relative; padding: 1.6px; border-radius: 20px;
  background: conic-gradient(from var(--ang), rgba(96,165,250,0) 0%, rgba(96,165,250,0) 62%, #60a5fa 80%, #a78bfa 88%, rgba(96,165,250,0) 100%);
  animation: ringSpin 5s linear infinite; }
@keyframes ringSpin { to { --ang: 360deg } }
.login-box { position: relative; width: 402px; max-width: 92vw; background: rgba(13,22,44,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 19px; padding: 40px 36px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.demo-badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg,#f59e0b,#f97316);
  color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(245,158,11,.4); }
.login-logo { width: 78px; height: 78px; object-fit: contain; border-radius: 18px; margin-bottom: 12px; }
.login-box h1 { font-size: 19px; color: #fff; letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 700; white-space: nowrap; }
.subtitle { color: rgba(230,237,243,.65); font-size: 12.5px; margin-bottom: 26px; letter-spacing: 1px; }
.f { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 0 14px; margin-bottom: 14px; transition: .2s; }
.f:focus-within { border-color: #60a5fa; background: rgba(255,255,255,.1); }
.f svg { flex-shrink: 0; opacity: .6; width: 17px; height: 17px; color: #cbd5e1; }
.f input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 14px; height: 52px; font-family: inherit; }
.f input::placeholder { color: rgba(230,237,243,.4); }
.login-btn { width: 100%; height: 46px; border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: 4px; cursor: pointer; margin-top: 6px; transition: .2s; font-family: inherit;
  background: linear-gradient(135deg,#2f81f7,#1f6fe0); }
.login-btn:hover { filter: brightness(1.12); box-shadow: 0 6px 20px rgba(59,130,246,.4); }
.login-tip { margin-top: 14px; font-size: 12px; color: rgba(230,237,243,.55); }
.login-tip a { color: rgba(147,197,253,.8); text-decoration: none; }
.login-tip a:hover { color: #93c5fd; text-decoration: underline; }
.demo-tip { color: #fbbf24; }

/* ===== 明亮模式（柔和护眼） ===== */
:root.light #loginPage { background: radial-gradient(ellipse at 50% 30%, #eaf1fc, #f4f6fa 70%); }
:root.light .login-box { background: rgba(255,255,255,.94); box-shadow: 0 16px 44px rgba(16,32,64,.10); }
:root.light .orb { opacity: .12; }
:root.light .login-box h1 { color: #16233b; }
:root.light .subtitle { color: #5b6b82; }
:root.light .f { background: #fff; border-color: #e2e8f3; }
:root.light .f:focus-within { border-color: #93b4f0; background: #fff; }
:root.light .f svg { color: #6b7c95; }
:root.light .f input { color: #1f2937; }
:root.light .f input::placeholder { color: #a7b3c4; }
:root.light .login-tip { color: #8190a5; }
:root.light .login-tip a { color: #2563eb; }
