:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182438;
  background: #edf1f7;
  --surface: #fff;
  --input: #fff;
  --line: #cad3e1;
  --muted: #4e5c70;
  --accent: #344ba0;
  --link: #344ba0;
  --button-ink: #fff;
  --error-ink: #9b2424;
  --error-surface: #fff1ef;
}
@media (prefers-color-scheme: dark) {
  :root {
    color: #e7eef8;
    background: #151e2b;
    --surface: #202c3d;
    --input: #192434;
    --line: #52647d;
    --muted: #bcc9db;
    --accent: #a9bcff;
    --link: #b6c6ff;
    --button-ink: #172343;
    --error-ink: #ffd2ce;
    --error-surface: #592d32;
  }
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.layout {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.brand-mark {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--button-ink);
  font-weight: 700;
}
h1 { margin: 16px 0 8px; font-size: clamp(24px, 3.5vw, 34px); line-height: 1.3; }
h2 { margin: 0 0 24px; font-size: 24px; }
p { margin: 0; line-height: 1.6; color: var(--muted); }
.panel {
  padding: clamp(22px, 5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
form { display: grid; gap: 8px; }
label { font-weight: 600; font-size: 14px; }
input:not([type=checkbox]):not([type=hidden]) {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 10px 12px;
  color: inherit;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
input[hidden] { display: none; }
.password-field { position: relative; margin-bottom: 8px; }
.password-field input:not([type=hidden]) { display: block; margin: 0; padding-inline-end: 48px; }
.password-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.password-toggle[hidden], .password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.password-toggle:hover { color: var(--link); }
.password-toggle:focus-visible { outline-offset: -3px; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.remember-device { display: flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; }
.remember-device input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.remember-hint { margin-top: -4px; font-size: 13px; }
button { cursor: pointer; font: inherit; min-height: 44px; }
.primary {
  width: 100%;
  border: 0;
  border-radius: 6px;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--button-ink);
  font-weight: 650;
}
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: var(--error-ink); background: var(--error-surface); padding: 8px 12px; border-radius: 6px; }
.error, .notice { margin-bottom: 16px; }
.layout {
  width: min(100%, 980px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 70px #142c5420;
  align-items: stretch;
}
.brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 72px;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(ellipse at 100% 0%, #3e6b9b95, transparent 65%),
    radial-gradient(ellipse at 0% 100%, #216c6765, transparent 68%),
    linear-gradient(145deg, #16294a, #25254e);
  color: #fff;
}
.brand-sign { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 680; }
.brand-sign img { display: block; box-shadow: 0 6px 22px #070c305e; border-radius: 11px; }
.brand-story h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); text-wrap: balance; }
.brand-story p { color: #d7e6f6; max-width: 23em; }
.brand-process { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.brand-process li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #edf6ff; }
.brand-process li:not(:last-child)::after { content: "→"; color: #82e6d4; }
.panel { padding: clamp(26px, 5vw, 52px); border: 0; border-radius: 0; }
.panel h2 { margin-bottom: 22px; font-size: 26px; }
.panel input:not([type=checkbox]):not([type=hidden]) { border-radius: 9px; }
.panel .primary { min-height: 46px; border-radius: 9px; margin-top: 14px; }
@media (max-width: 680px) {
  body { padding: 16px; }
  .layout { max-width: 450px; grid-template-columns: 1fr; border-radius: 18px; }
  .brand { padding: 22px 26px; gap: 16px; }
  .brand-story h1 { margin-bottom: 6px; font-size: 28px; }
  .brand-story p { font-size: 14px; }
  .brand-process { display: none; }
}
