/* ============================================================
   登录 / 注册
   ============================================================ */
:root {
  --ink: #0B1622;
  --muted: #667085;
  --line: #E4E7EC;
  --teal: #0F766E;
  --teal-deep: #0B5F58;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.auth-body {
  font-family: var(--font); color: var(--ink); background: #F2F5F7; font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input { font-family: inherit; outline: none; }
.ic { width: 18px; height: 18px; vertical-align: middle; }

.auth-stage { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 100vh; }

/* 左侧视觉 */
.auth-visual {
  position: relative; overflow: hidden; padding: 40px 52px 34px;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(45, 212, 191, .18), transparent 55%),
    radial-gradient(70% 60% at 90% 90%, rgba(56, 189, 248, .14), transparent 60%),
    linear-gradient(155deg, #061A24 0%, #08222F 45%, #04141C 100%);
  color: #DCEAEE; display: flex; flex-direction: column;
}
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; }
.aurora-a { width: 480px; height: 480px; left: -160px; top: -120px; background: #0F766E; animation: drift 16s ease-in-out infinite alternate; }
.aurora-b { width: 420px; height: 420px; right: -140px; bottom: -80px; background: #0E7490; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30px, 24px, 0); } }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent);
}
.visual-head { position: relative; z-index: 2; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; filter: drop-shadow(0 0 16px rgba(45,212,191,.4)); }
.brand-mark svg { width: 42px; height: 42px; }
.auth-brand strong { display: block; font-size: 17px; color: #F0FAFB; letter-spacing: .4px; }
.auth-brand em { display: block; font-style: normal; font-size: 10px; color: #6E8B97; letter-spacing: 1.1px; margin-top: 1px; }

.visual-copy { position: relative; z-index: 2; margin-top: 56px; max-width: 520px; }
.eyebrow { font-size: 9.5px; letter-spacing: 2.6px; color: #4FBFAF; font-weight: 600; margin-bottom: 16px; }
.visual-copy h1 { font-size: 38px; line-height: 1.35; letter-spacing: -1px; font-weight: 700; color: #F4FBFC; margin: 0 0 16px; }
.visual-copy p { font-size: 13px; line-height: 1.9; color: #8FAAB5; margin: 0; }

.radar-stage { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; justify-content: center; margin: 6px 0; min-height: 300px; }
.radar { width: 360px; height: 360px; max-width: 82%; }
.radar-sweep { transform-origin: 210px 210px; animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-points circle { animation: blink 3.4s ease-in-out infinite; transform-origin: center; }
.radar-points circle:nth-child(2n) { animation-delay: 1.2s; }
.radar-points circle:nth-child(3n) { animation-delay: 2.1s; }
@keyframes blink { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.radar-tag {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: rgba(9, 31, 42, .78); border: 1px solid rgba(94, 234, 212, .18);
  border-radius: 10px; padding: 8px 11px; backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); animation: floatTag 6s ease-in-out infinite;
}
.radar-tag b { font-size: 10.5px; color: #E6F7F5; }
.radar-tag span { font-size: 9px; color: #7B98A4; }
.radar-tag em { font-style: normal; font-size: 10px; color: #5EEAD4; margin-top: 2px; }
.tag-a { top: 14%; right: 4%; }
.tag-b { bottom: 22%; left: 0; animation-delay: 1.8s; }
.tag-c { bottom: 4%; right: 10%; animation-delay: 3.2s; }
@keyframes floatTag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.visual-stats { position: relative; z-index: 2; display: flex; gap: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.visual-stats b { display: block; font-size: 20px; color: #F1FAFB; letter-spacing: -.3px; }
.visual-stats span { font-size: 9.5px; color: #6E8B97; letter-spacing: .8px; }

.feature-list { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.feature-item { display: flex; gap: 11px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.03); }
.f-ico { width: 32px; height: 32px; border-radius: 9px; background: rgba(45,212,191,.12); color: #5EEAD4; display: grid; place-items: center; flex: 0 0 32px; }
.f-ico .ic { width: 16px; height: 16px; }
.feature-item b { display: block; font-size: 12px; color: #E6F7F5; }
.feature-item em { font-style: normal; font-size: 10px; color: #78949F; line-height: 1.5; display: block; margin-top: 2px; }

/* 右侧表单 */
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 30px; position: relative; background: #F6F8FA; }
.auth-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 70% 10%, rgba(15,118,110,.06), transparent 60%);
  pointer-events: none;
}
.auth-card {
  position: relative; width: 100%; max-width: 430px; background: #fff; border: 1px solid #E9ECF0;
  border-radius: 20px; padding: 34px 34px 26px; box-shadow: 0 30px 70px -40px rgba(9, 30, 45, .4), 0 1px 2px rgba(16,24,40,.04);
}
.register-card { max-width: 600px; padding: 30px 32px 24px; }
.panel-head { margin-bottom: 22px; }
.panel-chip { display: inline-block; font-size: 9px; letter-spacing: 2px; font-weight: 700; color: #0F766E; background: #E7F4F1; padding: 3px 9px; border-radius: 5px; margin-bottom: 12px; }
.panel-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 6px; }
.panel-head p { font-size: 12px; color: #667085; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11.5px; color: #475467; font-weight: 600; }
.field-box {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px;
  border: 1px solid #E4E7EC; border-radius: 10px; background: #FAFBFC; transition: .18s;
}
.field-box:focus-within { border-color: #0F766E; background: #fff; box-shadow: 0 0 0 4px rgba(15,118,110,.08); }
.field-box > .ic { width: 16px; height: 16px; color: #98A2B3; flex: 0 0 16px; }
.field-box:focus-within > .ic { color: #0F766E; }
.field-box input { flex: 1; border: 0; background: transparent; font-size: 13px; min-width: 0; }
.pwd-toggle { width: 26px; height: 26px; display: grid; place-items: center; color: #98A2B3; border-radius: 6px; }
.pwd-toggle:hover { background: #F2F4F7; color: #475467; }
.pwd-toggle .ic { width: 15px; height: 15px; }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; }
.checkbox { display: flex; align-items: center; gap: 7px; color: #475467; cursor: pointer; font-size: 11.5px; }
.checkbox input { display: none; }
.checkbox span { width: 15px; height: 15px; border: 1.5px solid #CBD5E1; border-radius: 4px; display: inline-block; position: relative; transition: .15s; flex: 0 0 15px; }
.checkbox input:checked + span { background: #0F766E; border-color: #0F766E; }
.checkbox input:checked + span::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.checkbox.agree { margin: 2px 0 0; font-size: 11px; }
.link-muted { color: #667085; font-size: 11.5px; }
.link-muted:hover { color: #0F766E; }
.btn-auth {
  height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #0F766E, #0B5F58); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(15, 118, 110, .8); transition: .18s; margin-top: 2px;
}
.btn-auth:hover { background: linear-gradient(135deg, #12897F, #0B6A62); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(15,118,110,.85); }
.btn-auth .ic { width: 15px; height: 15px; }
.btn-auth.loading { opacity: .75; pointer-events: none; }
.auth-error { min-height: 16px; font-size: 11.5px; color: #D92D20; text-align: center; }
.panel-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid #F0F2F5; text-align: center; font-size: 11.5px; color: #667085; }
.panel-foot a { color: #0F766E; font-weight: 600; margin-left: 3px; }
.trust-row { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 9.5px; color: #98A2B3; }
.trust-row span { display: inline-flex; align-items: center; gap: 4px; }
.trust-row .ic { width: 12px; height: 12px; color: #12B76A; }
.auth-copyright { position: relative; margin-top: 20px; font-size: 10px; color: #98A2B3; text-align: center; line-height: 1.7; }

.toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 11px; background: #fff; border: 1px solid #E4E7EC; box-shadow: 0 18px 40px -20px rgba(9,30,45,.4); font-size: 12.5px; opacity: 0; transform: translateY(-10px); transition: .25s; }
.toast.in { opacity: 1; transform: none; }
.toast-ico { width: 18px; height: 18px; display: grid; place-items: center; }
.toast-ico .ic { width: 17px; height: 17px; }
.toast-success .toast-ico { color: #12B76A; }
.toast-error .toast-ico { color: #F04438; }
.toast-warn .toast-ico { color: #F79009; }
.toast-info .toast-ico { color: #2563EB; }

@media (max-width: 1080px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 30px 18px; }
  .auth-card { max-width: 460px; }
  .register-card { max-width: 600px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px 20px; border-radius: 16px; }
  .panel-head h2 { font-size: 21px; }
}
