:root{
  color-scheme:light;
  --ink:#0E1116;
  --ink-2:#171C24;
  --paper:#F5F2EA;
  --card:#FFFDF8;
  --line:#E4DED2;
  --muted:#6E7076;
  --muted-2:#9A9C9F;
  --accent:#3D6DF2;
  --accent-soft:rgba(61,109,242,.12);
  --serif:"Songti SC","Noto Serif SC","STSong","Source Han Serif SC","SimSun",serif;
  --sans:"PingFang SC","HarmonyOS Sans SC","Noto Sans SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:var(--ink);color:var(--paper)}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
svg{display:block}

.app{
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
}

.brand{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  padding:clamp(28px,4vw,52px);
  padding-top:clamp(28px,3.4vw,44px);
  color:#EEEAE1;
  background:
    radial-gradient(760px 560px at 8% 2%,rgba(61,109,242,.30),transparent 62%),
    radial-gradient(700px 520px at 96% 88%,rgba(24,178,166,.16),transparent 64%),
    radial-gradient(520px 420px at 60% 40%,rgba(120,86,255,.10),transparent 70%),
    #0B0F18;
}
.brand::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:radial-gradient(rgba(255,255,255,.10) 1px,transparent 1px);
  background-size:26px 26px;
  opacity:.35;
  mask-image:radial-gradient(120% 100% at 30% 20%,#000 20%,transparent 78%);
  -webkit-mask-image:radial-gradient(120% 100% at 30% 20%,#000 20%,transparent 78%);
}
.brand::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:min(66vw,760px);
  aspect-ratio:1;
  right:-24%;
  top:4%;
  border-radius:50%;
  background:
    repeating-radial-gradient(circle at center,rgba(255,255,255,.055) 0 1px,transparent 1px 74px);
  opacity:.55;
  animation:ringBreath 9s var(--ease) infinite;
  pointer-events:none;
}
@keyframes ringBreath{
  0%,100%{transform:scale(1);opacity:.45}
  50%{transform:scale(1.045);opacity:.7}
}

.brand-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:relative;
  z-index:2;
}
.logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  letter-spacing:.02em;
}
.logo-mark{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:11px;
  color:#F3EFE6;
  background:linear-gradient(160deg,rgba(255,255,255,.16),rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 20px rgba(0,0,0,.25);
}
.logo-mark svg{width:21px;height:21px}
.logo-text{display:flex;flex-direction:column;gap:2px;line-height:1}
.logo-text b{font-size:14.5px;font-weight:600;letter-spacing:.08em}
.logo-text span{font-size:8.5px;font-weight:500;letter-spacing:.26em;color:rgba(238,234,225,.44)}

.brand-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11.5px;
  letter-spacing:.08em;
  color:rgba(238,234,225,.62);
  padding:7px 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  white-space:nowrap;
}
.dot-live{
  width:6px;height:6px;border-radius:50%;
  background:#62E3A8;
  box-shadow:0 0 0 0 rgba(98,227,168,.55);
  animation:pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot{
  0%{box-shadow:0 0 0 0 rgba(98,227,168,.55)}
  70%{box-shadow:0 0 0 7px rgba(98,227,168,0)}
  100%{box-shadow:0 0 0 0 rgba(98,227,168,0)}
}

.brand-hero{
  margin-top:auto;
  margin-bottom:auto;
  padding:clamp(30px,6vh,64px) 0 clamp(26px,4vh,44px);
  position:relative;
  z-index:2;
  max-width:560px;
}
.eyebrow{
  margin:0 0 18px;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.30em;
  text-transform:uppercase;
  color:rgba(238,234,225,.45);
}
.brand-hero h1{
  margin:0;
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(38px,4.5vw,64px);
  line-height:1.18;
  letter-spacing:.01em;
  color:#F6F1E7;
}
.brand-hero h1 em{
  font-style:normal;
  position:relative;
  white-space:nowrap;
  background:linear-gradient(96deg,#A9C2FF 0%,#EAF0FF 46%,#8FE7DB 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand-sub{
  margin:22px 0 0;
  max-width:36em;
  font-size:14px;
  line-height:1.9;
  color:rgba(238,234,225,.56);
}

.console{
  position:relative;
  z-index:2;
  padding:18px 20px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.11);
  background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.028));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 24px 50px rgba(0,0,0,.30);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  max-width:560px;
}
.console-head{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:11px;
  letter-spacing:.10em;
  color:rgba(238,234,225,.55);
}
.live-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 8px;
  border-radius:5px;
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.16em;
  color:#0B0F18;
  background:#DFE7FF;
}
.live-tag i{width:5px;height:5px;border-radius:50%;background:#2C5CE6;animation:pulseDot 2s infinite}
.console-title{color:rgba(238,234,225,.78)}
.console-time{
  margin-left:auto;
  font-variant-numeric:tabular-nums;
  font-size:11px;
  color:rgba(238,234,225,.45);
}

.wave{
  display:flex;
  align-items:center;
  gap:3px;
  height:60px;
  margin:14px 0 10px;
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.wave i{
  flex:1;
  min-width:2px;
  height:var(--h);
  border-radius:2px;
  background:linear-gradient(180deg,#BBD0FF,#5B87F5 55%,#2FC2B4);
  opacity:.92;
  transform-origin:center;
  animation:waveMove var(--d) ease-in-out infinite alternate;
  animation-delay:var(--dl);
}
@keyframes waveMove{
  0%{transform:scaleY(.34);opacity:.5}
  100%{transform:scaleY(1);opacity:.95}
}
.console-foot{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:10px;
  letter-spacing:.10em;
  color:rgba(238,234,225,.34);
}

.brand-foot{
  position:relative;
  z-index:2;
  margin-top:clamp(22px,4vh,40px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  font-size:11px;
  color:rgba(238,234,225,.40);
  letter-spacing:.06em;
}
.features{
  display:flex;
  gap:clamp(16px,2.6vw,34px);
  list-style:none;
  margin:0;padding:0;
}
.features li{
  display:flex;align-items:center;gap:7px;
  color:rgba(238,234,225,.48);
  font-size:11px;
}
.features b{
  font-size:9px;
  font-weight:600;
  color:rgba(238,234,225,.28);
  letter-spacing:.05em;
}

.auth{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(28px,4vw,56px);
  background:
    radial-gradient(620px 420px at 88% -10%,rgba(61,109,242,.10),transparent 60%),
    radial-gradient(520px 460px at 0% 108%,rgba(24,178,166,.08),transparent 62%),
    var(--paper);
}
.auth::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(14,17,22,.038) 1px,transparent 1px),
    linear-gradient(90deg,rgba(14,17,22,.038) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(90% 80% at 50% 50%,#000 30%,transparent 100%);
  -webkit-mask-image:radial-gradient(90% 80% at 50% 50%,#000 30%,transparent 100%);
  pointer-events:none;
}
.auth::after{
  content:"";
  position:absolute;
  top:0;bottom:0;left:0;
  width:1px;
  background:linear-gradient(180deg,rgba(14,17,22,0),rgba(14,17,22,.16) 22%,rgba(14,17,22,.16) 78%,rgba(14,17,22,0));
  pointer-events:none;
}
.auth-inner{
  position:relative;
  z-index:1;
  width:100%;
  max-width:440px;
}

.auth-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:clamp(34px,5.4vh,58px);
}
.auth-badge{
  font-size:10px;
  font-weight:600;
  letter-spacing:.28em;
  color:#6E6659;
  text-transform:uppercase;
}
.admin-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  color:var(--muted);
  padding-bottom:2px;
  border-bottom:1px solid transparent;
  transition:color .25s var(--ease),border-color .25s var(--ease);
}
.admin-link:hover{color:var(--ink);border-color:rgba(14,17,22,.35)}
.admin-link svg{width:11px;height:11px;opacity:.7;transition:transform .25s var(--ease)}
.admin-link:hover svg{transform:translate(1px,-1px)}

.auth-head h2{
  margin:0;
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(38px,3.4vw,46px);
  line-height:1.12;
  letter-spacing:.01em;
}
.auth-head p{
  margin:14px 0 0;
  font-size:13.5px;
  line-height:1.85;
  color:var(--muted);
}

form{margin-top:clamp(26px,4vh,38px)}

.field{margin-bottom:18px}
.field label{
  display:block;
  margin-bottom:8px;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.04em;
  color:#3C4048;
}
.control{
  position:relative;
  display:flex;
  align-items:center;
  height:54px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  box-shadow:0 1px 2px rgba(20,24,30,.035);
  transition:border-color .22s var(--ease),box-shadow .22s var(--ease),background .22s var(--ease);
}
.control:hover{border-color:#D3CBB9}
.control:focus-within{
  border-color:var(--ink);
  background:#fff;
  box-shadow:0 0 0 4px var(--accent-soft),0 1px 2px rgba(20,24,30,.05);
}
.control-icon{
  flex:0 0 auto;
  color:#7E7668;
  margin-right:11px;
  transition:color .22s var(--ease);
}
.control:focus-within .control-icon{color:var(--ink)}
.control-icon svg{width:18px;height:18px}

.control input{
  flex:1 1 auto;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:14.5px;
  color:var(--ink);
  letter-spacing:.02em;
  padding:0;
}
.control input::placeholder{color:#7E7668;letter-spacing:.03em}
.control input:-webkit-autofill{
  -webkit-text-fill-color:var(--ink);
  -webkit-box-shadow:0 0 0 1000px var(--card) inset;
  transition:background-color 9999s;
}

.toggle-pw{
  flex:0 0 auto;
  display:grid;place-items:center;
  width:34px;height:34px;
  margin-right:-6px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#A9A194;
  cursor:pointer;
  transition:color .2s,background .2s;
}
.toggle-pw:hover{color:var(--ink);background:rgba(14,17,22,.05)}
.toggle-pw:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.toggle-pw svg{width:18px;height:18px}
.toggle-pw .eye-off{display:none}
.toggle-pw.is-on .eye-on{display:none}
.toggle-pw.is-on .eye-off{display:block}

.caps{
  margin:8px 2px 0;
  font-size:11.5px;
  color:#B4690E;
  display:none;
}
.caps.show{display:block}

.form-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:2px 0 24px;
}
.remember{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:12.5px;
  color:#4A4E55;
  cursor:pointer;
  user-select:none;
}
.remember input{
  position:absolute;
  opacity:0;
  width:1px;height:1px;
  pointer-events:none;
}
.box{
  width:17px;height:17px;
  flex:0 0 auto;
  display:grid;place-items:center;
  border:1.5px solid #CFC6B4;
  border-radius:5px;
  background:#fff;
  transition:background .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease);
}
.box svg{width:10px;height:10px;stroke:#fff;stroke-width:2.6;fill:none;opacity:0;transform:scale(.6);transition:opacity .16s,transform .16s}
.remember input:checked + .box{background:var(--ink);border-color:var(--ink)}
.remember input:checked + .box svg{opacity:1;transform:scale(1)}
.remember input:focus-visible + .box{box-shadow:0 0 0 4px var(--accent-soft);border-color:var(--ink)}
.remember:hover .box{border-color:#9E9481}

.hint{
  font-size:11px;
  color:#A9A194;
  letter-spacing:.02em;
}

.submit{
  position:relative;
  width:100%;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:14px;
  background:var(--ink);
  color:#F7F4EC;
  font-size:15px;
  font-weight:600;
  letter-spacing:.14em;
  cursor:pointer;
  overflow:hidden;
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),background .22s var(--ease);
  box-shadow:0 10px 24px rgba(14,17,22,.16);
}
.submit::after{
  content:"";
  position:absolute;
  top:0;bottom:0;
  left:-40%;
  width:30%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.20),transparent);
  transform:skewX(-18deg);
  transition:left .6s var(--ease);
}
.submit:hover{background:#1B212B;transform:translateY(-1px);box-shadow:0 16px 30px rgba(14,17,22,.22)}
.submit:hover::after{left:115%}
.submit:active{transform:translateY(0) scale(.995)}
.submit:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.submit svg{
  width:17px;height:17px;
  transition:transform .28s var(--ease);
}
.submit:hover svg{transform:translateX(4px)}
.submit[disabled]{cursor:progress;opacity:.86;transform:none}
.submit .spinner{
  width:16px;height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.3);
  border-top-color:#fff;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.auth-foot{
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid rgba(14,17,22,.09);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size:11.5px;
  color:#756D5F;
}
.auth-foot p{margin:0}
.secure{
  display:inline-flex;align-items:center;gap:6px;
  color:#6F6759;
}
.secure svg{width:12px;height:12px}

.reveal{opacity:0;transform:translateY(14px);animation:reveal .8s var(--ease) forwards}
@keyframes reveal{to{opacity:1;transform:translateY(0)}}
.d1{animation-delay:.05s}.d2{animation-delay:.13s}.d3{animation-delay:.21s}
.d4{animation-delay:.29s}.d5{animation-delay:.37s}.d6{animation-delay:.45s}

@media (max-width:1080px){
  .app{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .brand-hero h1{font-size:clamp(36px,4.6vw,50px)}
}
@media (max-width:900px){
  .app{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .brand{padding:26px 24px 30px}
  .brand::after{display:none}
  .brand-hero{margin:26px 0 0;padding:0;max-width:none}
  .brand-hero h1{font-size:clamp(30px,7vw,40px)}
  .brand-hero h1 br{display:none}
  .brand-sub{margin-top:12px;font-size:13px}
  .console,.brand-foot{display:none}
  .auth{padding:30px 22px 46px;align-items:flex-start}
  .auth-inner{max-width:440px;margin:0 auto}
  .auth-top{margin-bottom:30px}
}
@media (max-width:900px) and (min-height:760px){
  .auth{align-items:center}
}
@media (max-width:560px){
  .brand{padding:20px 20px 24px}
  .logo-text span{display:none}
  .brand-status{padding:6px 10px;font-size:10.5px}
  .brand-hero{margin-top:20px}
  .brand-hero h1{font-size:28px;line-height:1.24}
  .eyebrow{margin-bottom:12px}
  .auth{padding:24px 18px calc(40px + env(safe-area-inset-bottom))}
  .control input{font-size:16px}
  .auth-head h2{font-size:34px}
  .auth-head p{font-size:13px;margin-top:10px}
  .auth-foot{font-size:11px}
  .auth-top{margin-bottom:24px}
  form{margin-top:24px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .reveal{opacity:1;transform:none}
}

.alert{
  margin:20px 0 0;
  padding:11px 14px;
  border:1px solid transparent;
  border-radius:12px;
  font-size:13px;
  line-height:1.6;
}
.alert-danger{color:#991B1B;border-color:#F1C9C5;background:#FCEDEB}
.alert-warning{color:#7C4A08;border-color:#EBD6AC;background:#FBF3E2}
.alert-success{color:#17603F;border-color:#C8E0D2;background:#E9F4EE}

.captcha-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.captcha-row .control{flex:1 1 140px;min-width:0}
.captcha-row img{
  flex:0 0 auto;
  height:54px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.captcha-refresh{
  flex:0 0 auto;
  min-height:44px;
  padding:0 6px;
  border:0;
  background:transparent;
  color:var(--ink);
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.captcha-refresh:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
