/* ============================================================
   登录 / 注册
   ============================================================ */
.auth-body {
  min-height: 100vh;
  background: #061420;
  color: #e7f0f5;
  font-family: var(--font-cn);
  overflow-x: hidden;
}
.auth-canvas {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(20, 120, 130, .35), transparent 60%),
    radial-gradient(900px 600px at 95% 110%, rgba(28, 80, 150, .30), transparent 60%),
    linear-gradient(160deg, #061420, #081b2b 45%, #06131f);
  padding: 34px clamp(20px, 5vw, 70px) 18px;
}
.auth-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(120, 190, 200, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 200, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
}
.auth-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.glow-a { width: 420px; height: 420px; background: rgba(20, 190, 165, .22); top: -120px; left: -60px; }
.glow-b { width: 460px; height: 460px; background: rgba(36, 110, 200, .18); bottom: -160px; right: -80px; }

.auth-shell {
  position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(28px, 5vw, 70px);
  padding: 26px 0 10px;
}

/* 左侧品牌叙事 */
.auth-aside { color: #d8e6ee; position: relative; padding-left: 6px; }
.brand-line { display: flex; align-items: center; gap: 13px; margin-bottom: 54px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(90, 220, 200, .28); color: #37d9c0; font-size: 24px;
  box-shadow: inset 0 0 22px rgba(55, 217, 192, .12), 0 10px 30px -14px rgba(55, 217, 192, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: .04em; color: #f1f8fa; }
.brand-text span { font-family: var(--font-num); font-size: 9px; letter-spacing: .28em; color: rgba(150, 190, 205, .65); margin-top: 3px; }

.aside-main h1 {
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.45; font-weight: 600; letter-spacing: .01em;
  color: #f2f8fb; margin-bottom: 18px;
}
.aside-main h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #47e0c6, #66c8ff 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aside-main p { font-size: 13.5px; line-height: 1.95; color: rgba(176, 202, 214, .78); max-width: 460px; }

.radar-stage {
  position: absolute; right: -6%; top: 28%; width: 300px; height: 300px; opacity: .9; pointer-events: none;
}
.radar-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(70, 210, 190, .18);
}
.radar-ring.r2 { inset: 17%; border-color: rgba(70, 210, 190, .14); }
.radar-ring.r3 { inset: 34%; border-color: rgba(70, 210, 190, .12); }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(70, 220, 195, .28), rgba(70, 220, 195, .02) 32%, transparent 46%);
  animation: sweep 7s linear infinite;
  mask-image: radial-gradient(circle, #000 62%, #000 63%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-core { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #4be0c4; box-shadow: 0 0 18px 4px rgba(75, 224, 196, .6); }
.radar-node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #7fe9d5; box-shadow: 0 0 12px rgba(127, 233, 213, .8); }
.radar-node.n1 { left: 26%; top: 32%; }
.radar-node.n2 { right: 18%; top: 42%; }
.radar-node.n3 { left: 40%; bottom: 20%; background: #ffcf6e; box-shadow: 0 0 12px rgba(255, 207, 110, .8); }
.radar-node.n4 { left: 18%; bottom: 40%; background: #ff9f8a; box-shadow: 0 0 12px rgba(255, 159, 138, .8); }

.aside-foot { display: flex; gap: 26px; margin-top: 62px; }
.metric-chip { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid rgba(120, 190, 200, .22); }
.metric-chip b { font-family: var(--font-num); font-size: 21px; color: #7fe9d5; font-weight: 600; line-height: 1.2; }
.metric-chip span { font-size: 11.5px; color: rgba(160, 195, 208, .72); letter-spacing: .02em; }

/* 右侧登录卡 */
.auth-panel {
  width: 100%; max-width: 430px; justify-self: end; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(246,251,251,.98));
  border-radius: 22px; padding: 34px 34px 26px; color: var(--text);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 #fff;
}
.auth-panel::before {
  content: ''; position: absolute; inset: -1px; border-radius: 23px; pointer-events: none;
  background: linear-gradient(140deg, rgba(70,220,195,.5), rgba(70,220,195,0) 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.panel-head { margin-bottom: 24px; }
.panel-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 20px;
  background: rgba(15, 157, 143, .08); color: #0b7d71; font-size: 11.5px; letter-spacing: .04em; margin-bottom: 14px;
}
.panel-eyebrow i { font-size: 13px; }
.panel-head h2 { font-size: 24px; letter-spacing: .01em; color: #10232f; }
.panel-head p { font-size: 12.5px; color: var(--sub); margin-top: 6px; }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.field-box {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px;
  border: 1px solid rgba(15, 42, 66, .16); border-radius: 11px; background: #fbfcfd;
  transition: all .18s ease;
}
.field-box:focus-within { border-color: rgba(15, 157, 143, .7); background: #fff; box-shadow: 0 0 0 4px rgba(15, 157, 143, .1); }
.field-box > i { font-size: 17px; color: #93a3ad; transition: color .18s; }
.field-box:focus-within > i { color: var(--teal); }
.field-box input, .field-box select {
  flex: 1; border: none; outline: none; background: transparent; height: 100%; font-size: 13.5px; min-width: 0;
  appearance: none;
}
.field-box input::placeholder { color: #a9b4bd; }
.pwd-toggle { border: none; background: transparent; color: #93a3ad; padding: 4px; display: inline-flex; }
.pwd-toggle:hover { color: var(--teal); }
.field-box select { cursor: pointer; }

.form-row { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); cursor: pointer; position: relative; }
.check-line input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-line .box { width: 15px; height: 15px; border-radius: 4px; border: 1px solid rgba(15, 42, 66, .28); background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.check-line input:checked + .box { background: var(--teal); border-color: var(--teal); }
.check-line input:checked + .box::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check-line.agree { font-size: 12px; line-height: 1.6; align-items: flex-start; }
.check-line.agree .box { margin-top: 1px; }
.text-link { font-size: 12.5px; color: var(--teal-deep); }
.text-link:hover { text-decoration: underline; }

.btn-auth {
  height: 46px; margin-top: 4px; border: none; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 500;
  background: linear-gradient(120deg, #12a596, #0a7d72 60%, #086b62);
  display: flex; align-items: center; justify-content: center; gap: 9px; position: relative; overflow: hidden;
  box-shadow: 0 16px 30px -16px rgba(15, 157, 143, .9); transition: all .2s ease;
}
.btn-auth::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
  transform: skewX(-18deg); transition: left .5s ease;
}
.btn-auth:hover::after { left: 120%; }
.btn-auth:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-auth i { font-size: 17px; }
.btn-auth[disabled] { opacity: .7; pointer-events: none; }

.form-error { font-size: 12.5px; color: var(--red); min-height: 16px; margin-top: -4px; }
.panel-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed rgba(15, 42, 66, .12);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--sub); flex-wrap: wrap;
}
.panel-foot a { color: var(--teal-deep); font-weight: 500; margin-left: 2px; }
.panel-foot .corp { font-size: 11px; color: #a3afb8; }

.auth-copyright {
  position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1200px; width: 100%; margin: 0 auto; padding-top: 16px;
  border-top: 1px solid rgba(120, 190, 200, .10); font-size: 11.5px; color: rgba(150, 180, 195, .55);
  letter-spacing: .02em;
}

/* 注册页 */
.register-shell { grid-template-columns: .92fr 1.08fr; align-items: start; padding-top: 10px; }
.register-panel { max-width: 640px; padding: 30px 32px 24px; justify-self: end; }
.reg-form { gap: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.reg-form .field-box { height: 42px; }
.reg-points { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; }
.reg-points li { display: flex; gap: 12px; align-items: flex-start; }
.reg-points li > i {
  width: 32px; height: 32px; border-radius: 9px; background: rgba(70, 220, 195, .09);
  border: 1px solid rgba(70, 220, 195, .2); color: #4be0c4; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.reg-points b { display: block; font-size: 13px; color: #e8f4f7; font-weight: 500; margin-bottom: 2px; }
.reg-points span { font-size: 12px; color: rgba(160, 190, 202, .72); }
.register-aside .aside-main h1 { font-size: clamp(24px, 2.2vw, 30px); }

@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 520px; gap: 30px; padding: 10px 0; }
  .auth-panel, .register-panel { justify-self: center; }
  .radar-stage { display: none; }
  .aside-main { display: none; }
  .aside-foot { margin-top: 22px; }
  .brand-line { margin-bottom: 10px; }
  .register-aside .panel-head { display: none; }
  .auth-aside { display: none; }
  .register-shell { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .auth-canvas { padding: 18px 14px 14px; }
  .auth-panel { padding: 26px 20px 22px; border-radius: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .auth-copyright { flex-direction: column; gap: 4px; text-align: center; align-items: center; }
}
