:root{
  --ink:#0b1728;
  --muted:#66758c;
  --line:#e1e8f2;
  --brand:#2563eb;
  --brand-2:#06b6d4;
  --bg:#f4f7fb;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Inter","HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
button{font-family:inherit}
.auth{display:grid;grid-template-columns:1.06fr .94fr;min-height:100svh}

/* ============ 左侧视觉区 ============ */
.auth-visual{
  position:relative;
  overflow:hidden;
  padding:44px 56px 40px;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(1200px 700px at 82% 8%, #123a5c 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 90%, #0a2f43 0%, transparent 60%),
    linear-gradient(160deg,#071322 0%,#081a2e 45%,#061524 100%);
  color:#fff;
  isolation:isolate;
}
.aurora{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.55;
  z-index:-2;
  will-change:transform;
}
.aurora-a{
  width:520px;height:520px;left:-140px;top:-120px;
  background:radial-gradient(circle at 30% 30%, rgba(37,99,235,.9), transparent 62%);
  animation:drift-a 22s ease-in-out infinite alternate;
}
.aurora-b{
  width:460px;height:460px;right:-120px;top:22%;
  background:radial-gradient(circle at 50% 50%, rgba(6,182,212,.65), transparent 64%);
  animation:drift-b 26s ease-in-out infinite alternate;
}
.aurora-c{
  width:420px;height:420px;left:24%;bottom:-180px;
  background:radial-gradient(circle at 50% 50%, rgba(99,102,241,.5), transparent 65%);
  animation:drift-c 30s ease-in-out infinite alternate;
}
@keyframes drift-a{to{transform:translate(90px,60px) scale(1.15)}}
@keyframes drift-b{to{transform:translate(-70px,-50px) scale(.9)}}
@keyframes drift-c{to{transform:translate(40px,-70px) scale(1.1)}}

.grid-overlay{
  position:absolute;inset:0;z-index:-1;
  background-image:linear-gradient(rgba(148,197,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(148,197,255,.055) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(120% 90% at 40% 30%, #000 20%, transparent 78%);
  -webkit-mask-image:radial-gradient(120% 90% at 40% 30%, #000 20%, transparent 78%);
}
.visual-brand{display:flex;align-items:center;gap:14px;animation:rise .8s .05s both}
.brand-mark{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  font-weight:800;font-size:21px;color:#fff;
  background:linear-gradient(135deg,#3b82f6,#06b6d4);
  box-shadow:0 10px 24px -8px rgba(56,189,248,.65), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-copy{display:flex;flex-direction:column;line-height:1.25}
.brand-copy strong{font-size:17px;letter-spacing:.08em}
.brand-copy span{font-size:10px;letter-spacing:.22em;color:rgba(191,219,254,.6)}

.visual-copy{margin-top:auto;padding-top:64px}
.eyebrow{
  display:flex;align-items:center;gap:10px;
  font-size:11.5px;letter-spacing:.2em;color:#7dd3fc;margin:0 0 22px;
  animation:rise .8s .12s both;
}
.eyebrow i{width:26px;height:1px;background:linear-gradient(90deg,#22d3ee,transparent)}
.visual-copy h1{
  margin:0;
  font-size:clamp(38px,3.6vw,60px);
  line-height:1.14;
  letter-spacing:-.015em;
  font-weight:700;
  animation:rise .9s .18s both;
}
.visual-copy h1 em{
  font-style:normal;
  background:linear-gradient(100deg,#7dd3fc,#22d3ee 45%,#a5b4fc);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.lede{
  margin:24px 0 0;font-size:15px;line-height:1.95;color:rgba(203,222,247,.72);
  animation:rise .9s .26s both;
}
.visual-cards{display:flex;flex-wrap:wrap;gap:10px;margin-top:38px;animation:rise .9s .34s both}
.glass-card{
  display:flex;align-items:center;gap:8px;
  padding:9px 15px;border-radius:11px;
  font-size:12.5px;color:rgba(226,240,255,.86);
  background:rgba(255,255,255,.055);
  border:1px solid rgba(148,197,255,.14);
  backdrop-filter:blur(8px);
}
.pulse-dot{width:6px;height:6px;border-radius:50%;background:#22d3ee;box-shadow:0 0 0 0 rgba(34,211,238,.55);animation:pulse 2.6s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 7px rgba(34,211,238,0)}100%{box-shadow:0 0 0 0 rgba(34,211,238,0)}}
.visual-foot{
  margin-top:56px;display:flex;align-items:center;gap:14px;
  font-size:12px;letter-spacing:.12em;color:rgba(148,178,214,.55);
  animation:rise .9s .42s both;
}
.visual-foot .sep{width:1px;height:12px;background:rgba(148,178,214,.3)}

/* ============ 右侧表单区 ============ */
.auth-panel{
  display:flex;align-items:center;justify-content:center;
  padding:48px 40px;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(37,99,235,.06), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(6,182,212,.07), transparent 60%),
    #f7f9fd;
  position:relative;
}
.form-wrap{width:100%;max-width:404px;animation:rise .8s .1s both}
.mobile-brand{display:none}
.form-head h2{margin:0;font-size:30px;letter-spacing:-.01em;font-weight:700}
.form-head p{margin:10px 0 0;font-size:13.5px;color:var(--muted)}
#login-form{margin-top:34px}

.field{display:block;margin-bottom:18px}
.field-label{display:block;font-size:12.5px;font-weight:600;color:#43526b;margin-bottom:8px;letter-spacing:.02em}
.field-box{
  position:relative;display:flex;align-items:center;gap:10px;
  height:52px;padding:0 15px;border-radius:14px;
  background:#fff;border:1px solid var(--line);
  box-shadow:0 1px 2px rgba(16,24,40,.03);
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.field-box:focus-within{
  border-color:#93b4fb;
  box-shadow:0 0 0 4px rgba(37,99,235,.10),0 1px 2px rgba(16,24,40,.04);
}
.field-box > svg{width:18px;height:18px;color:#93a3ba;flex:none;transition:color .2s}
.field-box:focus-within > svg{color:var(--brand)}
.field-box input{
  flex:1;height:100%;border:0;outline:0;background:transparent;
  font-size:14.5px;color:var(--ink);letter-spacing:.01em;min-width:0;
}
.field-box input::placeholder{color:#a9b6c9}
.peek{
  border:0;background:transparent;padding:6px;margin-right:-6px;border-radius:8px;
  color:#9aa9bd;cursor:pointer;display:grid;place-items:center;transition:.2s;
}
.peek:hover{color:var(--brand);background:rgba(37,99,235,.06)}
.peek svg{width:18px;height:18px}
.peek.on{color:var(--brand)}

.login-options{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:-4px 0 8px;min-height:24px;
}
.remember{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:#43526b;cursor:pointer;user-select:none}
.remember input{width:15px;height:15px;accent-color:var(--brand);cursor:pointer}
.remember-note{font-size:10.5px;color:#a0aec2;white-space:nowrap}

.form-error{
  min-height:22px;margin:-2px 0 6px;
  font-size:12.5px;color:#e11d48;display:flex;align-items:center;gap:6px;
  opacity:0;transform:translateY(-3px);transition:.22s;
}
.form-error.show{opacity:1;transform:none}
.form-error.shake{animation:shake .42s}
@keyframes shake{
  10%,90%{transform:translateX(-1px)}
  20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-4px)}
  40%,60%{transform:translateX(4px)}
}

.submit{
  position:relative;width:100%;height:52px;margin-top:4px;
  border:0;border-radius:14px;cursor:pointer;overflow:hidden;
  display:flex;align-items:center;justify-content:center;gap:10px;
  color:#fff;font-size:14.5px;font-weight:600;letter-spacing:.16em;
  background:linear-gradient(120deg,#2563eb,#0ea5e9 55%,#06b6d4);
  background-size:160% 100%;
  box-shadow:0 14px 28px -14px rgba(37,99,235,.75);
  transition:transform .18s,box-shadow .25s,background-position .4s;
}
.submit::after{
  content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-18deg);transition:left .55s;
}
.submit:hover{transform:translateY(-1px);background-position:100% 0;box-shadow:0 18px 34px -14px rgba(14,165,233,.8)}
.submit:hover::after{left:120%}
.submit:active{transform:scale(.985)}
.submit .arrow{width:18px;height:18px;transition:transform .25s}
.submit:hover .arrow{transform:translateX(3px)}
.submit .spinner{
  display:none;width:17px;height:17px;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:spin .7s linear infinite;
}
.submit.loading{pointer-events:none;opacity:.9}
.submit.loading .spinner{display:block}
.submit.loading .arrow{display:none}
@keyframes spin{to{transform:rotate(360deg)}}

.demo{margin-top:34px}
.demo-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.demo-head span{font-size:11.5px;letter-spacing:.06em;color:#8b9ab0;white-space:nowrap}
.demo-head i{flex:1;height:1px;background:var(--line)}
.chips{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.chips button{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:9px 12px;border-radius:10px;
  border:1px solid var(--line);background:#fff;cursor:pointer;
  transition:.18s;text-align:left;
}
.chips button b{font-size:12px;font-weight:600;color:#3c4c64}
.chips button span{font-size:10.5px;color:#a0aec2;font-family:ui-monospace,Consolas,monospace}
.chips button:hover{border-color:#b9d0fb;background:#f4f8ff;transform:translateY(-1px);box-shadow:0 6px 16px -10px rgba(37,99,235,.5)}
.chips button:last-child{grid-column:span 2}
.login-help{
  margin:26px 0 0;display:flex;align-items:center;justify-content:center;gap:10px;
  font-size:11px;color:#94a3b8;letter-spacing:.02em;flex-wrap:wrap;
}
.login-help .sep{width:1px;height:10px;background:#dbe3ef}
.copy{margin:20px 0 0;text-align:center;font-size:11px;color:#a8b4c6;letter-spacing:.04em}

@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

@media (max-width:1024px){
  .auth{grid-template-columns:1fr}
  .auth-visual{display:none}
  .auth-panel{padding:40px 24px;align-items:flex-start;padding-top:8vh}
  .mobile-brand{
    display:flex;align-items:center;gap:12px;margin-bottom:44px;
  }
  .mobile-brand .brand-mark{width:42px;height:42px;font-size:19px}
  .mobile-brand strong{display:block;font-size:15px;letter-spacing:.06em}
  .mobile-brand span{display:block;font-size:10.5px;color:#8b9ab0;margin-top:3px;letter-spacing:.08em}
}
@media (max-width:420px){
  .chips{grid-template-columns:1fr}
  .chips button:last-child{grid-column:auto}
  .form-head h2{font-size:26px}
  .remember-note{display:none}
  .login-help{gap:7px;font-size:10.5px}
}
