* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; }

/* ===== 登录主背景 ===== */
.login-wrap {
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 12% -8%, rgba(84, 176, 255, .42), transparent 62%),
    radial-gradient(1000px 560px at 96% 108%, rgba(64, 120, 255, .38), transparent 58%),
    radial-gradient(700px 420px at 82% 18%, rgba(120, 180, 255, .18), transparent 60%),
    linear-gradient(145deg, #07224f 0%, #0b3a86 42%, #1357c4 100%);
  position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  padding: 30px 16px 20px;
}
/* 细网格 */
.login-wrap::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 100%);
}
/* 流动光斑 */
.login-wrap::after {
  content: ""; position: absolute; left: -140px; top: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
  filter: blur(20px); pointer-events: none; animation: lmFloat 16s ease-in-out infinite alternate;
}
@keyframes lmFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(140px, 90px) scale(1.12); }
}

/* ===== 顶部品牌区 ===== */
.login-top { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 40px 0 26px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  display: flex; align-items: center;
  filter: drop-shadow(0 3px 12px rgba(3, 20, 50, .35));
  animation: lmIn .6s ease both;
}
.brand-mark img { height: 60px; width: auto; display: block; }
.brand-name {
  font-size: 17px; color: #fff; letter-spacing: 4px; border-left: 1px solid rgba(255,255,255,.45);
  padding-left: 16px; padding-top: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.3);
  animation: lmIn .6s .08s ease both;
}
.slogan {
  margin-top: 16px; color: rgba(255,255,255,.78); font-size: 13px; letter-spacing: 5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.25); animation: lmIn .6s .16s ease both;
}
@keyframes lmIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ===== 登录卡片 ===== */
.login-box {
  position: relative; z-index: 2; width: 400px; max-width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 16px; box-shadow: 0 24px 70px rgba(2, 16, 44, .5), 0 2px 0 rgba(255,255,255,.6) inset;
  padding: 8px 36px 24px; animation: lmUp .55s .12s ease both;
}
@keyframes lmUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* 卡片顶部品牌色渐变条 */
.login-box::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #155bd0, #2f8df5 55%, #22c2e6);
}

.login-tabs { display: flex; justify-content: center; gap: 30px; border-bottom: 1px solid #edf1f7; }
.login-tabs .tab {
  padding: 18px 4px 13px; color: #8a97a8; font-size: 15px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.login-tabs .tab.active { color: #155bd0; font-weight: 700; border-color: #155bd0; }
.pane { display: none; padding-top: 22px; }
.pane.active { display: block; }

.field { position: relative; margin-bottom: 16px; }
.field:hover .f-icon { opacity: .7; }
.f-icon { position: absolute; left: 13px; top: 12px; font-size: 18px; opacity: .45; transition: .2s; line-height: 20px; }
.f-input {
  width: 100%; height: 44px; border: 1px solid #dde4ee; border-radius: 9px;
  padding: 0 14px 0 40px; font-size: 14px; outline: none; background: #f8fafd; color: #22304a;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.f-input::placeholder { color: #a7b2c4; }
.f-input:hover { border-color: #c7d2e2; }
.f-input:focus { border-color: #155bd0; background: #fff; box-shadow: 0 0 0 3.5px rgba(21, 91, 208, .13); }
.field:focus-within .f-icon { opacity: .85; color: #155bd0; }

/* ===== 滑块拼图验证 ===== */
.pz { margin: 2px 0 14px; user-select: none; -webkit-user-select: none; }
.pz-stage { position: relative; width: 100%; height: 152px; border-radius: 9px; overflow: hidden; background: #d6dfec; box-shadow: inset 0 0 0 1px rgba(20,44,100,.06); }
.pz-bg, .pz-piece { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.pz-piece { pointer-events: none; }
.pz-refresh {
  position: absolute; right: 8px; top: 8px; width: 27px; height: 27px; line-height: 27px; text-align: center;
  background: rgba(255,255,255,.93); color: #4a5a75; border-radius: 50%; font-size: 15px; cursor: pointer;
  box-shadow: 0 2px 7px rgba(10,30,70,.28); z-index: 3; transition: transform .3s, color .2s;
}
.pz-refresh:hover { transform: rotate(180deg); color: #155bd0; }
.pz-track {
  position: relative; height: 42px; background: #edf1f8; border-radius: 8px;
  margin-top: 10px; overflow: hidden; cursor: pointer; box-shadow: inset 0 1px 3px rgba(20,44,100,.06);
}
.pz-tip { position: absolute; inset: 0; line-height: 42px; text-align: center; color: #8b97a8; font-size: 13px; pointer-events: none; }
.pz-btn {
  position: absolute; left: 0; top: 0; width: 44px; height: 42px; background: linear-gradient(180deg,#fff,#f2f6fd);
  border-radius: 8px; border: 1px solid #d4dce9; display: flex; align-items: center; justify-content: center;
  color: #5d6f8c; cursor: grab; z-index: 2; box-shadow: 0 3px 8px rgba(10,30,70,.18); transition: box-shadow .15s, background .15s;
}
.pz-btn:active { cursor: grabbing; }
.pz-btn.on { background: linear-gradient(180deg,#7dd855,#52b93a); border-color: #4cab34; color: #fff; }
.pz-btn.fail { background: linear-gradient(180deg,#fb7f7f,#ec5a5a); border-color: #e04949; color: #fff; }
.pz-tip.pass { color: #2fa862; font-weight: 600; }
.pz-tip.fail { color: #e64545; }
.pz.shake { animation: pzShake .4s; }
@keyframes pzShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

.row-between { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; }
.check { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { accent-color: #155bd0; cursor: pointer; }
.link { font-size: 13px; color: #155bd0; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ===== 登录按钮 ===== */
.login-btn {
  width: 100%; height: 46px; border: none; border-radius: 9px; font-size: 16px; font-weight: 600; letter-spacing: 10px;
  color: #fff; cursor: pointer; background: linear-gradient(90deg, #1256c4, #2f7bf0 55%, #2f9af5);
  box-shadow: 0 8px 20px rgba(21, 91, 208, .35), inset 0 1px 0 rgba(255,255,255,.2);
  transition: all .2s; position: relative; overflow: hidden;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(21,91,208,.42); filter: brightness(1.05); }
.login-btn:active { transform: translateY(0); }
.login-btn::after { content: ""; position: absolute; left: -60%; top: 0; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transition: left .5s; }
.login-btn:hover::after { left: 120%; }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.err { color: #e64545; font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }

/* ===== 协议与页脚 ===== */
.agree { text-align: center; color: #9aa6b8; font-size: 12px; margin-top: 18px; }
.agree a { color: #6f8fc9; text-decoration: none; }
.agree a:hover { color: #155bd0; }
.demo-tip { margin-top: 6px; color: #c6cdd8; }

.login-footer {
  position: relative; z-index: 2; margin-top: 26px; color: rgba(255,255,255,.92); font-size: 13px;
  background: rgba(6, 24, 60, .4); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px);
  padding: 9px 22px; border-radius: 24px; letter-spacing: .4px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.login-footer span { color: rgba(255,255,255,.75); margin-right: 4px; }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .login-top { padding-top: 24px; }
  .brand { flex-direction: column; gap: 6px; text-align: center; }
  .brand-name { border-left: none; padding-left: 0; letter-spacing: 3px; }
  .login-box { padding: 6px 20px 20px; }
  .slogan { letter-spacing: 2px; }
}

/* ============ 左右布局: 科技视觉 + 右侧登录窗 ============ */
.login-wrap { flex-direction: row; justify-content: center; align-items: center; gap: clamp(26px, 5vw, 110px); padding: 24px 20px; }
.login-side { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: min(420px, 94vw); }
.login-side .login-top { padding: 0 0 16px; }
.login-side .login-footer { margin-top: 18px; }
.tech {
  position: relative; z-index: 1; flex: none;
  width: min(46vw, 620px); height: min(62vh, 600px); min-height: 430px;
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(122, 185, 255, .30);
  background:
    radial-gradient(130% 95% at 12% 8%, rgba(52, 148, 255, .38), transparent 48%),
    radial-gradient(90% 80% at 95% 100%, rgba(40, 210, 235, .18), transparent 55%),
    linear-gradient(168deg, rgba(6, 26, 62, .78), rgba(13, 52, 128, .32));
  box-shadow: 0 0 70px rgba(30, 120, 255, .22), inset 0 0 80px rgba(90, 170, 255, .08);
  animation: lmIn .5s ease both;
}
#techCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }
.tech-content { position: absolute; inset: 0; z-index: 2; padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tech-kicker { font-size: 12px; letter-spacing: 4px; color: rgba(120, 220, 255, .95); margin-bottom: 16px; text-shadow: 0 0 12px rgba(60, 180, 255, .5); }
.tech-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.35; color: #fff; letter-spacing: 1px; text-shadow: 0 4px 22px rgba(0, 20, 60, .55); }
.tech-line { width: 92px; height: 3px; margin: 22px 0; border-radius: 3px; background: linear-gradient(90deg, #2f9af5, #22c8e6); box-shadow: 0 0 12px rgba(64, 200, 255, .6); }
.tech-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.tech-feats li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.88); letter-spacing: .5px; }
.tech-feats i { color: #39c3f7; font-style: normal; text-shadow: 0 0 8px rgba(60, 200, 255, .8); }
.tech-feats li span { border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 2px; }
.tech-orbit { position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; z-index: 1; border: 1px dashed rgba(120, 205, 255, .5); border-radius: 50%; box-shadow: 0 0 40px rgba(60, 170, 255, .12); }
.tech-orbit::after { content: ""; position: absolute; left: 34px; top: 34px; right: 34px; bottom: 34px; border: 1px solid rgba(120, 205, 255, .22); border-radius: 50%; }
.login-side .brand-mark img { height: 40px; }
.login-side .brand-name { font-size: 15px; letter-spacing: 3px; }
.login-side .slogan { font-size: 12px; margin-top: 10px; letter-spacing: 4px; }
@media (max-width: 1020px) {
  .login-wrap { flex-direction: column; justify-content: flex-start; gap: 18px; padding: 20px 12px; overflow-y: auto; }
  .tech { display: none; }
  .login-side { min-width: min(400px, 96vw); }
  .login-side .login-top { padding-top: 14px; }
}

/* ===== 登录窗口改小 ===== */
.login-side { min-width: min(360px, 94vw); }
.login-box { width: 352px; max-width: 100%; padding: 4px 26px 18px; border-radius: 14px; }
.login-side .login-top { padding: 0 0 12px; }
.login-side .brand-mark img { height: 34px; }
.login-side .brand-name { font-size: 14px; letter-spacing: 3px; }
.login-side .slogan { font-size: 11.5px; margin-top: 8px; }
.login-tabs .tab { padding: 14px 3px 10px; font-size: 14.5px; }
.pane { padding-top: 16px; }
.field { margin-bottom: 12px; }
.f-icon { left: 11px; top: 10px; font-size: 16px; line-height: 20px; }
.f-input { height: 40px; padding: 0 12px 0 36px; border-radius: 8px; }
.pz { margin: 0 0 12px; }
.pz-stage { height: 134px; border-radius: 8px; }
.pz-track { height: 40px; margin-top: 8px; }
.pz-tip { line-height: 40px; }
.pz-btn { width: 42px; height: 40px; }
.row-between { margin: 0 0 14px; }
.login-btn { height: 42px; border-radius: 8px; font-size: 15px; letter-spacing: 8px; }
.err { margin-top: 8px; }
.agree { margin-top: 14px; }
@media (max-width: 1020px) {
  .login-side { min-width: min(360px, 96vw); }
  .login-side .login-top { padding-top: 10px; }
}

/* ===== 登录窗口改小 ===== */
.login-side { min-width: min(360px, 94vw); }
.login-box { width: 352px; max-width: 100%; padding: 4px 26px 18px; border-radius: 14px; }
.login-side .login-top { padding: 0 0 12px; }
.login-side .brand-mark img { height: 34px; }
.login-side .brand-name { font-size: 14px; letter-spacing: 3px; }
.login-side .slogan { font-size: 11.5px; margin-top: 8px; }
.login-tabs .tab { padding: 14px 3px 10px; font-size: 14.5px; }
.pane { padding-top: 16px; }
.field { margin-bottom: 12px; }
.f-icon { left: 11px; top: 10px; font-size: 16px; line-height: 20px; }
.f-input { height: 40px; padding: 0 12px 0 36px; border-radius: 8px; }
.pz { margin: 0 0 12px; }
.pz-stage { height: 134px; border-radius: 8px; }
.pz-track { height: 40px; margin-top: 8px; }
.pz-tip { line-height: 40px; }
.pz-btn { width: 42px; height: 40px; }
.row-between { margin: 0 0 14px; }
.login-btn { height: 42px; border-radius: 8px; font-size: 15px; letter-spacing: 8px; }
.err { margin-top: 8px; }
.agree { margin-top: 14px; }
@media (max-width: 1020px) {
  .login-side { min-width: min(360px, 96vw); }
  .login-side .login-top { padding-top: 10px; }
}

.login-footer a { color: #cfe0ff; text-decoration: none; font-size: 13px; }
.login-footer a:hover { color: #fff; text-decoration: underline; }
