:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
  background: #0b101a;
  color: #f0f3fb;
  font-synthesis: none;
  --ink: #f0f3fb;
  --muted: #a7b5cc;
  --line: #34425b;
  --accent: #a9baff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; padding: clamp(12px, 2.15vw, 34px); }
[hidden] { display: none !important; }
.login {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(390px, 1fr);
  min-height: calc(100svh - clamp(24px, 4.3vw, 68px));
  max-width: 1640px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #2c384c;
  border-radius: 16px;
  background: #131c2b;
}
.login-art {
  position: relative;
  min-height: 520px;
  background: #17293d;
}
.login-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.login-art::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, #09152513 55%, #09132281);
  pointer-events: none;
}
.frame-guide {
  position: absolute;
  z-index: 1;
  inset: clamp(16px, 2.6vw, 42px);
  pointer-events: none;
}
.frame-guide span { position: absolute; width: 24px; height: 24px; border: 1px solid #d9e8ff8c; }
.frame-guide span:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.frame-guide span:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.frame-guide span:nth-child(3) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.frame-guide span:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.login-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: clamp(28px, 4.5vh, 64px);
  padding: clamp(24px, 3.7vw, 64px);
  border-left: 1px solid #34425a;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  letter-spacing: .09em;
  font-weight: 680;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 32px;
  border: 1px solid #5572b3;
  border-radius: 7px;
  background: #233351;
  color: #bccaff;
}
.brand-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #85a2fb38;
}
.login-content { width: min(100%, 420px); margin-inline: auto; }
h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(33px, 3.1vw, 52px);
  font-weight: 720;
  letter-spacing: .012em;
  line-height: 1.14;
}
.login-intro { margin: 14px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
form { display: grid; gap: 9px; }
label { color: #dce5f6; font-size: 13px; font-weight: 620; }
input {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101827;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input::placeholder { color: #8495b1; font-size: 14px; }
label[for="password"] { margin-top: 10px; }
.password-field { position: relative; }
.password-field input { padding-right: 69px; }
button { font: inherit; cursor: pointer; }
.password-toggle {
  position: absolute;
  inset: 6px 6px 6px auto;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b7c8f4;
  font-size: 13px;
}
.password-toggle:hover { background: #24324b; }
.login-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  margin-top: 13px;
  padding: 0 16px;
  border: 1px solid #829cf8;
  border-radius: 7px;
  background: #5574dc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}
.login-submit span:last-child { font-size: 21px; font-weight: 450; }
.login-submit:hover { background: #4765cc; }
:is(input, button):focus-visible, .login-error:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.login-error {
  margin: 0 0 7px;
  padding: 11px 12px;
  border: 1px solid #915865;
  border-radius: 6px;
  background: #382432;
  color: #ffd6de;
  font-size: 13px;
}
.storage-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.storage-note i { width: 6px; height: 6px; border-radius: 50%; background: #9bd8dc; }
@media (max-width: 810px) {
  .login { grid-template-columns: 1fr; grid-template-rows: minmax(140px, 29svh) 1fr; }
  .login-art { min-height: 0; }
  .login-art img { object-position: 50% 54%; }
  .login-panel { padding: clamp(18px, 5vw, 40px); border-left: 0; border-top: 1px solid var(--line); gap: 26px; }
  .login-content { max-width: 460px; }
  .login-intro { margin-block: 11px 22px; }
}
