:root {
  color-scheme: light;
  --blue-900: #123a68;
  --blue-800: #164276;
  --blue-600: #2f6fac;
  --blue-100: #e8f1fb;
  --line: #c9d6e5;
  --text: #17283d;
  --muted: #66768a;
  --danger: #c83a2a;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #f3f6fa; }
button, input { font: inherit; }
button { cursor: pointer; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.auth-layout {
  width: min(1080px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(18, 58, 104, .12);
  overflow: hidden;
}

.auth-intro {
  padding: 82px 70px;
  color: #fff;
  background: var(--blue-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-mark { width: 58px; height: 58px; display: grid; place-items: center; background: #fff; color: var(--blue-800); border-radius: 12px; font-size: 28px; }
.auth-intro h1 { margin: 30px 0 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.25; }
.auth-intro > p { margin: 22px 0 0; max-width: 520px; color: #d7e6f5; line-height: 1.8; }

.auth-card { padding: 66px 54px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-card header h2 { margin: 0; color: var(--blue-900); font-size: 26px; }
.auth-card header p { margin: 10px 0 30px; color: var(--muted); font-size: 14px; }
.auth-card form { display: grid; gap: 20px; }
.auth-card label > span { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.auth-input { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.auth-input:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,111,172,.12); }
.auth-input i { color: var(--blue-600); }
.auth-input input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.auth-input input::placeholder { color: #9aa7b6; }
.password-rule { margin: -8px 0 0; color: var(--muted); font-size: 13px; }
.primary-button { min-height: 48px; border: 0; border-radius: 7px; background: var(--blue-800); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.primary-button:hover { background: var(--blue-600); }
.primary-button:focus-visible { outline: 3px solid rgba(47,111,172,.3); outline-offset: 2px; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.auth-message { margin: 18px 0 0; padding: 10px 12px; color: var(--danger); background: #fff2f0; border: 1px solid #f0b7af; border-radius: 6px; font-size: 13px; }
.auth-message.is-success { color: #155d34; background: #eef9f3; border-color: #b9dfc8; }

@media (max-width: 800px) {
  .auth-page { padding: 16px; align-items: start; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-intro { padding: 36px 28px; }
  .auth-card { padding: 36px 28px 28px; }
}
