:root {
  --nav: #102f3d;
  --accent: #087ea4;
  --accent-strong: #046383;
  --ink: #172a33;
  --muted: #5c7079;
  --surface: #fff;
  --canvas: #edf2f3;
  --line: #d5dfe1;
  --red: #a93430;
  --focus: 0 0 0 3px rgba(8, 126, 164, .2);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--surface); background: var(--accent-strong); }

.login-layout { display: grid; grid-template-columns: 56% 44%; min-height: 100vh; min-height: 100svh; }
.login-visual { position: relative; display: flex; height: 100svh; min-height: 640px; flex-direction: column; padding: 48px 64px 36px; overflow: hidden; color: #f2f8fa; background: var(--nav); }
.login-brand { position: relative; z-index: 1; display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.login-brand > svg { width: 44px; height: 44px; fill: none; stroke: #e4f1f5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.login-brand span { margin-top: 2px; color: #b1c9d1; font-size: 10px; letter-spacing: 3px; }
.login-intro { position: relative; z-index: 1; flex-shrink: 0; margin-top: clamp(48px, 10vh, 112px); }
.login-eyebrow { margin: 0 0 24px; color: #9fc2ce; font-size: 11px; font-weight: 500; letter-spacing: 2.5px; }
.login-title { margin: 0; font-size: clamp(36px, 3.4vw, 52px); font-weight: 600; line-height: 1.45; letter-spacing: 3px; }
.login-description { margin: 24px 0 0; color: #bdd0d7; font-size: 15px; line-height: 1.9; }
.wind-scene { display: block; width: calc(100% + 128px); height: auto; max-height: 330px; min-height: 140px; flex: 1 1 auto; margin: 8px -64px 0; }
.login-visual-foot { display: flex; flex-shrink: 0; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; color: #b1c9d1; font-size: 11px; letter-spacing: 1.5px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #77c3bd; }

.login-main { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 80px 48px 96px; }
.login-form-wrap { width: 100%; max-width: 352px; }
.login-section-label { display: block; margin-bottom: 16px; color: var(--accent-strong); font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.login-form-wrap h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.4; letter-spacing: 1px; }
.login-subtitle { margin: 12px 0 36px; color: var(--muted); line-height: 1.7; }
.login-field + .login-field { margin-top: 24px; }
.login-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.login-field input { display: block; width: 100%; height: 48px; padding: 0 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-field input::placeholder { color: #7a8b92; }
.login-field input:hover { border-color: #9ab5bf; }
.login-field input:focus { border-color: var(--accent); box-shadow: var(--focus); }
.login-field input[aria-invalid="true"] { border-color: var(--red); }
.password-control { position: relative; }
.password-control input { padding-right: 64px; }
.password-control button { position: absolute; inset: 4px 4px 4px auto; min-width: 48px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 12px; }
.password-control button:hover { color: var(--accent-strong); background: #edf5f7; }
.password-control button:focus-visible { outline-offset: 0; }
.login-error { min-height: 44px; margin: 0; padding: 10px 0 12px; color: var(--red); font-size: 12px; line-height: 1.7; }
.login-submit { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; color: var(--surface); background: var(--accent); border: 1px solid var(--accent); border-radius: 5px; font-size: 15px; font-weight: 600; transition: background .15s; }
.login-submit:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-submit svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-session-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; color: var(--muted); font-size: 11px; }
.login-session-note svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.login-footer { position: absolute; bottom: 32px; padding: 0 24px; color: var(--muted); font-size: 11px; text-align: center; }
.login-footer span { margin: 0 6px; }

@media (min-width: 1600px) {
  .login-visual { padding-left: 96px; padding-right: 96px; }
  .wind-scene { width: calc(100% + 192px); max-height: 420px; margin-left: -96px; margin-right: -96px; }
}
@media (max-width: 1100px) {
  .login-layout { grid-template-columns: 50% 50%; }
  .login-visual { padding-left: 40px; padding-right: 40px; }
  .login-main { padding-left: 32px; padding-right: 32px; }
  .wind-scene { width: calc(100% + 80px); margin-left: -40px; margin-right: -40px; }
  .login-title { font-size: 36px; }
}
@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { height: auto; min-height: 0; padding: 24px; }
  .login-brand > svg { width: 36px; height: 36px; }
  .login-brand strong { font-size: 16px; }
  .login-brand span { font-size: 9px; }
  .login-intro, .wind-scene, .login-visual-foot { display: none; }
  .login-main { min-height: calc(100svh - 87px); padding: 48px 24px 88px; }
  .login-form-wrap h1 { font-size: 28px; }
  .login-field input { font-size: 16px; }
  .login-footer { bottom: 24px; }
}
@media (max-width: 360px) {
  .login-main { padding-left: 20px; padding-right: 20px; }
  .login-subtitle { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
