/* 华智BOT · 未来感登录/片头 */
html, body.login-body { height: 100%; }
body.login-body {
  margin: 0; padding: 0; display: block; min-height: 100vh; overflow-x: hidden;
  background: #050912; color: #e8f1ff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}
.login-fx { position: fixed; inset: 0; overflow: hidden; z-index: 0; background:
  radial-gradient(900px 600px at 15% 15%, rgba(46,108,255,.22), transparent 60%),
  radial-gradient(700px 500px at 85% 80%, rgba(0,229,255,.16), transparent 60%),
  linear-gradient(160deg, #050912 0%, #071426 48%, #03070f 100%); }
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.fx-grid { position: absolute; left: -20%; right: -20%; bottom: -8%; height: 62%;
  background-image: linear-gradient(rgba(70,150,255,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(70,150,255,.16) 1px, transparent 1px);
  background-size: 54px 54px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  animation: gridFlow 12s linear infinite; mask-image: linear-gradient(to top, #000 35%, transparent 100%); }
@keyframes gridFlow { from { background-position: 0 0, 0 0; } to { background-position: 0 54px, 54px 0; } }
.fx-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-a { width: 420px; height: 420px; left: -140px; top: -120px; background: #1b5cff; animation: orbFloat 14s ease-in-out infinite; }
.orb-b { width: 360px; height: 360px; right: -120px; bottom: -100px; background: #00d5ff; animation: orbFloat 18s ease-in-out infinite reverse; }
@keyframes orbFloat { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40px,30px,0) scale(1.12); } }
.fx-scan { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  opacity: .35; pointer-events: none; }
.fx-scan::after { content:""; position:absolute; left:0; right:0; height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(72,170,255,.18), transparent);
  animation: scanDown 7s linear infinite; }
@keyframes scanDown { from { top: -20%; } to { top: 110%; } }

.login-stage { position: relative; z-index: 2; min-height: 100vh; display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 460px); gap: 6vw;
  align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 40px; box-sizing: border-box; }
.login-brand { padding-left: 8px; animation: riseIn .9s cubic-bezier(.2,.8,.2,1) both; }
.brand-kicker { color: #6fbcff; letter-spacing: .38em; font-size: 11px; margin-bottom: 22px; opacity: .85; }
.brand-mark { width: 58px; height: 58px; border: 1px solid rgba(108,196,255,.55); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .08em;
  color: #c9ecff; background: linear-gradient(145deg, rgba(33,108,255,.28), rgba(0,229,255,.08));
  box-shadow: 0 0 28px rgba(45,136,255,.28), inset 0 0 20px rgba(80,190,255,.12); margin-bottom: 26px; }
.login-brand h1 { margin: 0; font-size: clamp(40px, 5.4vw, 74px); line-height: .98; letter-spacing: -.02em;
  font-weight: 600; color: #f4f9ff; text-shadow: 0 0 34px rgba(68,150,255,.25); }
.login-brand h1 span { color: #60d7ff; }
.login-brand p { margin: 18px 0 30px; color: #8fa9c8; font-size: 14px; letter-spacing: .18em; }
.brand-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 360px; }
.brand-meta li { display: flex; gap: 12px; align-items: center; color: #8aa3c2; font-size: 12.5px; letter-spacing: .06em; }
.brand-meta i { width: 6px; height: 6px; border-radius: 50%; background: #38c9ff; box-shadow: 0 0 12px #38c9ff; }

.login-box { position: relative; width: 100%; max-width: 460px; padding: 30px 30px 26px; box-sizing: border-box;
  background: linear-gradient(160deg, rgba(13,30,54,.94), rgba(5,14,27,.96));
  border: 1px solid rgba(94,170,255,.24); border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(160,215,255,.12), 0 0 50px rgba(31,96,255,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: riseIn 1s .12s cubic-bezier(.2,.8,.2,1) both; }
.login-box::before { content:""; position:absolute; inset:-1px; border-radius:23px; padding:1px;
  background: linear-gradient(120deg, rgba(80,190,255,.55), transparent 32%, transparent 68%, rgba(50,105,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }
.login-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.login-head img { height: 38px; padding: 4px 6px; border-radius: 9px; background: rgba(255,255,255,.05); filter: drop-shadow(0 0 10px rgba(90,190,255,.35)); }
.eyebrow { color: #5da8e8; font-size: 9.5px; letter-spacing: .3em; margin-bottom: 4px; }
.login-head h2 { margin: 0; font-size: 21px; font-weight: 600; color: #eef7ff; letter-spacing: .06em; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; padding: 4px; border-radius: 12px; background: rgba(8,20,38,.7); border: 1px solid rgba(90,160,255,.14); }
.tabs button { flex: 1; border: 0; background: transparent; color: #7f9bbd; padding: 9px; font-size: 13px; border-radius: 9px; cursor: pointer; letter-spacing: .12em; }
.tabs button.on { background: linear-gradient(135deg, rgba(37,104,255,.9), rgba(0,186,255,.7)); color: #fff; box-shadow: 0 6px 20px rgba(30,110,255,.3); }
.login-box input { width: 100%; box-sizing: border-box; margin: 0 0 11px; padding: 13px 14px; color: #eaf6ff;
  background: rgba(4,13,26,.78); border: 1px solid rgba(89,158,255,.24); border-radius: 11px; font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-box input::placeholder { color: #587391; }
.login-box input:focus { border-color: rgba(76,196,255,.75); box-shadow: 0 0 0 3px rgba(38,132,255,.16), 0 0 24px rgba(45,150,255,.18); background: rgba(7,20,38,.9); }
.login-box .btn-primary { width: 100%; margin-top: 4px; padding: 13px; border: 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, #2a6dff, #00c6ff); color: #fff; font-size: 14px; letter-spacing: .22em;
  box-shadow: 0 10px 30px rgba(20,110,255,.32); transition: transform .15s, box-shadow .15s, filter .15s; }
.login-box .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(20,130,255,.42); filter: brightness(1.06); }
.login-box .btn-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.login-msg { min-height: 20px; margin-top: 10px; color: #ff8b8b; font-size: 12.5px; }
.login-msg.ok { color: #5ee6b0; }
.login-help { margin: 4px 0 14px; padding: 11px 12px; border-left: 2px solid rgba(70,180,255,.45);
  background: rgba(14,35,62,.45); color: #708baa; font-size: 11.5px; line-height: 1.65; border-radius: 0 8px 8px 0; }
.login-help b { color: #9dc6e8; }
.bind { display: none; margin-top: 14px; padding: 14px; border: 1px solid rgba(80,180,255,.35); border-radius: 12px; background: rgba(7,25,46,.8); color: #a9c5df; font-size: 12px; line-height: 1.8; }
.bind.on { display: block; animation: fadeUp .35s both; }
.bind code { display: block; word-break: break-all; margin: 8px 0; padding: 10px; border-radius: 8px; border: 1px dashed rgba(90,180,255,.45); background: rgba(0,10,22,.7); color: #7fe1ff; }
.bind a { color: #55c6ff; }
.bind .btn { margin-top: 10px; }
.alert { margin-bottom: 14px; padding: 10px 12px; border-radius: 9px; font-size: 12px; }
.alert-warn { color: #ffd18a; background: rgba(90,55,10,.35); border: 1px solid rgba(230,160,60,.3); }
.alert code { color: #ffe7b0; }

@keyframes riseIn { from { transform: translateY(22px); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 片头 */
.intro { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 600px at 50% 45%, rgba(22,80,180,.22), transparent 65%), #02050b;
  display: none; overflow: hidden; }
.intro.show { display: flex; }
#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-ring { position: absolute; width: min(70vmin, 640px); height: min(70vmin, 640px); border-radius: 50%;
  border: 1px solid rgba(80,190,255,.28); box-shadow: 0 0 60px rgba(30,130,255,.18), inset 0 0 60px rgba(30,130,255,.12);
  transform: scale(.8); }
.intro.show .intro-ring { animation: ringIn 1.4s .1s cubic-bezier(.2,.8,.2,1) forwards; }
.intro-ring.r2 { width: min(54vmin, 500px); height: min(54vmin, 500px); border-color: rgba(0,229,255,.35); animation-delay: .25s; }
.intro-ring.r3 { width: min(38vmin, 360px); height: min(38vmin, 360px); border-style: dashed; border-color: rgba(120,140,255,.35); animation-delay: .4s; }
@keyframes ringIn { to { transform: scale(1); } }
.intro-core { position: relative; z-index: 2; text-align: center; padding: 20px; }
.intro-logo { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; letter-spacing: .1em; color: #dff6ff;
  border: 1px solid rgba(100,200,255,.6); background: linear-gradient(145deg, rgba(28,95,255,.35), rgba(0,229,255,.1));
  box-shadow: 0 0 60px rgba(30,140,255,.35), inset 0 0 30px rgba(100,210,255,.15);
  transform: scale(.7); }
.intro.show .intro-logo { animation: logoIn .9s .15s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes logoIn { to { transform: scale(1); } }
.intro-title { font-size: clamp(36px, 6vw, 58px); font-weight: 600; letter-spacing: .32em; color: #f2faff;
  text-shadow: 0 0 36px rgba(60,160,255,.45); transform: translateY(10px); }
.intro.show .intro-title { animation: introUp .8s .35s cubic-bezier(.2,.8,.2,1) forwards; }
.intro-sub { margin-top: 12px; color: #5fd7ff; font-size: 10.5px; letter-spacing: .46em; transform: translateY(8px); }
.intro.show .intro-sub { animation: introUp .8s .55s cubic-bezier(.2,.8,.2,1) forwards; }
.intro-name { margin-top: 26px; color: #cfe7ff; font-size: 15px; letter-spacing: .1em; min-height: 22px; transform: translateY(8px); }
.intro.show .intro-name { animation: introUp .6s .8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes introUp { to { transform: translateY(0); } }
.intro-bar { width: min(320px, 62vw); height: 2px; margin: 26px auto 12px; background: rgba(80,150,255,.18); border-radius: 2px; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2a6dff, #00e0ff); box-shadow: 0 0 16px #00c6ff; }
.intro.show .intro-bar i { animation: introBar 4.2s .15s cubic-bezier(.15,.7,.2,1) forwards; }
@keyframes introBar { 0% { width: 0; } 18% { width: 12%; } 46% { width: 46%; } 78% { width: 82%; } 100% { width: 100%; } }
.intro-status { color: #5e7fa4; font-size: 11px; letter-spacing: .18em; }
.skip-intro { position: absolute; right: 26px; bottom: 22px; z-index: 3; border: 1px solid rgba(100,160,220,.28);
  background: rgba(8,18,34,.5); color: #7fa6cb; padding: 8px 14px; border-radius: 999px; font-size: 11px; cursor: pointer; letter-spacing: .1em; }
.skip-intro:hover { color: #c9ecff; border-color: rgba(100,200,255,.6); }
body.intro-open { overflow: hidden; }

@media (max-width: 900px) {
  .login-stage { grid-template-columns: 1fr; padding: 30px 18px; max-width: 520px; }
  .login-brand { display: none; }
  .login-box { padding: 26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-grid, .fx-orb, .fx-scan::after, .login-brand, .login-box { animation: none !important; }
  .intro, .intro * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
