/* ============================================================
   置换云 · 登录 / 注册
   ============================================================ */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.18fr 0.82fr;
  position: relative; overflow: hidden;
}
.auth::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(880px 560px at 18% 12%, rgba(53, 226, 174, 0.12), transparent 62%),
    radial-gradient(760px 520px at 42% 92%, rgba(76, 201, 240, 0.1), transparent 60%),
    radial-gradient(620px 420px at 96% 6%, rgba(156, 140, 255, 0.1), transparent 60%);
}

/* ---------- 左侧品牌区 ---------- */
.auth-hero {
  padding: 40px 56px 44px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; z-index: 1;
  border-right: 1px solid rgba(147, 165, 192, 0.08);
}
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand .brand-mark { width: 40px; height: 40px; }
.auth-brand .brand-name { font-size: 17px; }
.auth-hero .eyebrow {
  margin-top: 64px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mint);
}
.auth-hero .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--mint); opacity: 0.7; }
.auth-hero h1 {
  margin-top: 18px; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.18; font-weight: 600;
  letter-spacing: -0.03em; max-width: 620px;
}
.auth-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6ff3cf 0%, #4cc9f0 60%, #9c8cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero .lede { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 520px; }
.auth-stats { margin-top: 30px; display: flex; gap: 34px; flex-wrap: wrap; }
.auth-stats .s .v { font-family: 'Space Grotesk', var(--font); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.auth-stats .s .v small { font-size: 12px; color: var(--mint); margin-left: 3px; font-weight: 400; }
.auth-stats .s .k { font-size: 11px; color: var(--dim); margin-top: 2px; letter-spacing: 0.04em; }

/* ---------- 中央视觉 ---------- */
.auth-visual { position: relative; margin-top: 28px; flex: 1; min-height: 250px; display: flex; align-items: center; justify-content: center; }
.orbit {
  position: absolute; width: 430px; height: 430px; border-radius: 50%;
  border: 1px dashed rgba(147, 165, 192, 0.16);
  animation: spin 46s linear infinite;
}
.orbit::after {
  content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px var(--mint);
}
.orbit.o2 { width: 320px; height: 320px; animation-direction: reverse; animation-duration: 34s; border-color: rgba(76, 201, 240, 0.14); }
.orbit.o2::after { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.orbit.o3 { width: 210px; height: 210px; animation-duration: 26s; border-color: rgba(156, 140, 255, 0.14); }
.orbit.o3::after { background: var(--violet); box-shadow: 0 0 12px var(--violet); }

.device-card {
  position: relative; z-index: 2; width: 320px; padding: 16px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(26, 38, 56, 0.94), rgba(10, 16, 26, 0.96));
  border: 1px solid rgba(147, 165, 192, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
  animation: float-y 7s ease-in-out infinite;
}
.device-card .dc-head { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.device-card .dc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--mint); }
.device-card .dc-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); animation: pulse-dot 2s infinite; }
.laptop { margin: 14px 0 12px; position: relative; }
.laptop .screen {
  height: 128px; border-radius: 9px 9px 3px 3px;
  background: linear-gradient(150deg, #0b1a24, #0a1420 60%, #081019);
  border: 1px solid rgba(147, 165, 192, 0.22);
  position: relative; overflow: hidden; padding: 10px 12px;
}
.laptop .screen::after {
  content: ''; position: absolute; left: 0; right: 0; height: 44px; top: -44px;
  background: linear-gradient(180deg, transparent, rgba(53, 226, 174, 0.18), transparent);
  animation: scan 3.6s ease-in-out infinite;
}
@keyframes scan { 0% { top: -44px; } 60%, 100% { top: 140px; } }
.laptop .base {
  height: 9px; margin: 0 -14px; border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #1a2739, #0e1622);
  border: 1px solid rgba(147, 165, 192, 0.16); border-top: none;
}
.screen-line { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #5b7891; letter-spacing: 0.08em; }
.screen-title { font-family: var(--mono); font-size: 11px; color: #a6e9d6; margin-top: 8px; }
.screen-val { font-family: 'Space Grotesk', var(--font); font-size: 26px; font-weight: 600; color: #eafff8; letter-spacing: -0.02em; margin-top: 2px; }
.screen-bars { display: flex; gap: 3px; margin-top: 9px; }
.screen-bars i { height: 4px; border-radius: 2px; background: rgba(53, 226, 174, 0.55); }
.screen-bars i:nth-child(1) { width: 34%; }
.screen-bars i:nth-child(2) { width: 22%; background: rgba(76, 201, 240, 0.5); }
.screen-bars i:nth-child(3) { width: 14%; background: rgba(156, 140, 255, 0.45); }
.dc-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dc-row { display: flex; align-items: center; font-size: 11px; color: var(--dim); }
.dc-row b { margin-left: auto; color: var(--text-soft); font-weight: 500; font-family: 'Space Grotesk', var(--font); }
.dc-badge {
  margin-top: 12px; display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-radius: 10px; background: rgba(53, 226, 174, 0.08); border: 1px solid rgba(53, 226, 174, 0.18);
  font-size: 11px; color: #8defd0;
}
.float-chip {
  position: absolute; z-index: 3; padding: 9px 13px; border-radius: 11px;
  background: rgba(14, 21, 33, 0.9); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
  font-size: 11.5px; color: var(--text-soft); display: flex; align-items: center; gap: 8px;
}
.float-chip .icon { width: 14px; height: 14px; color: var(--mint); }
.float-chip.f1 { top: 12%; right: 4%; animation: float-y 6s ease-in-out infinite 0.6s; }
.float-chip.f2 { bottom: 16%; left: 2%; animation: float-y 7s ease-in-out infinite 1.2s; }
.float-chip.f3 { bottom: 4%; right: 8%; animation: float-y 8s ease-in-out infinite 0.3s; }
.float-chip b { font-family: 'Space Grotesk', var(--font); color: var(--text); }

.auth-footer { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: #46536a; flex-wrap: wrap; }
.auth-footer .tags { display: flex; gap: 8px; }
.auth-footer .tags span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; letter-spacing: 0.04em; }

/* ---------- 右侧表单 ---------- */
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 44px 40px; position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(9, 14, 23, 0.35), rgba(7, 11, 18, 0.6));
}
.auth-card { width: 100%; max-width: 392px; }
.auth-card .a-head { margin-bottom: 26px; }
.auth-card .a-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mint); padding: 4px 9px; border-radius: 5px;
  background: rgba(53, 226, 174, 0.08); border: 1px solid rgba(53, 226, 174, 0.2); margin-bottom: 16px;
}
.auth-card h2 { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.auth-card .a-sub { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.7; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form .field > label { font-size: 12px; color: var(--muted); }
.auth-form .input { height: 46px; border-radius: 12px; font-size: 13.5px; }
.auth-form .input-affix { height: 46px; border-radius: 12px; background: rgba(9, 14, 23, 0.62); border: 1px solid var(--line-strong); padding: 0 13px; transition: 0.18s; }
.auth-form .input-affix:focus-within { border-color: rgba(53, 226, 174, 0.62); box-shadow: 0 0 0 3px rgba(53, 226, 174, 0.1); }
.auth-form .input-affix .icon { width: 17px; height: 17px; }
.auth-form .toggle-eye { color: var(--dim); display: flex; }
.auth-form .toggle-eye:hover { color: var(--text-soft); }
.auth-form .row-between { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.auth-form .btn-primary { height: 46px; border-radius: 12px; font-size: 14px; margin-top: 4px; }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 11px; margin: 6px 0; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-alt a { color: var(--mint); font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }
.auth-secure { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; font-size: 11px; color: var(--dim); line-height: 1.6; }
.auth-secure .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--mint); opacity: 0.7; }
.auth-err {
  display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 110, 134, 0.1); border: 1px solid rgba(255, 110, 134, 0.28);
  color: #ff9aab; font-size: 12px;
}
.auth-err.show { display: flex; }
.auth-err .icon { width: 14px; height: 14px; flex: none; }
.auth-card.wide { max-width: 470px; }
.auth-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-meter { display: flex; gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; flex: 1; border-radius: 2px; background: rgba(147, 165, 192, 0.16); transition: 0.2s; }
.pw-meter i.on { background: var(--mint); }
.pw-meter i.on.mid { background: var(--amber); }
.pw-meter i.on.weak { background: var(--rose); }
.reg-note { font-size: 11px; color: var(--dim); line-height: 1.6; }

@media (max-width: 1080px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; padding: 34px 22px; }
}
