:root {
  color-scheme: light;
  --bg: #f1f4f6;
  --surface: #ffffff;
  --ink: #172026;
  --muted: #67747d;
  --line: #d8e0e4;
  --accent: #ee1d52;
  --accent-dark: #ca1643;
  --cyan: #20b7bd;
  --danger: #bf3041;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input { font: inherit; letter-spacing: 0; }
.auth-shell { width: min(880px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 84px; }
.auth-intro { padding: 32px 0; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 7px; color: white; background: #111820; box-shadow: -3px 0 0 var(--cyan), 3px 0 0 var(--accent); font-size: 24px; font-weight: 800; }
.auth-intro h1 { margin: 24px 0 8px; font-size: 30px; letter-spacing: 0; }
.auth-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 40px rgba(23, 32, 38, 0.08); }
.auth-heading span { color: var(--accent); font-size: 11px; font-weight: 700; }
.auth-heading h2 { margin: 7px 0 5px; font-size: 21px; }
.auth-heading p { margin: 0 0 26px; color: var(--muted); font-size: 12px; }
form > label:not(.show-password) { display: block; margin: 16px 0 7px; color: #3f4b53; font-size: 12px; font-weight: 650; }
form > label:first-child { margin-top: 0; }
input[type="text"], input[type="password"] { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #cbd5da; border-radius: 6px; outline: none; color: var(--ink); background: #fbfcfd; }
input[type="text"]:focus, input[type="password"]:focus { border-color: var(--cyan); background: white; box-shadow: 0 0 0 3px rgba(32, 183, 189, 0.12); }
.show-password { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: 12px; }
.show-password input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.auth-message { min-height: 20px; color: var(--danger); font-size: 12px; line-height: 1.5; }
button { width: 100%; height: 43px; margin-top: 7px; border: 1px solid var(--accent); border-radius: 6px; color: white; background: var(--accent); cursor: pointer; font-weight: 700; }
button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
button:disabled { opacity: .58; cursor: wait; }

@media (max-width: 720px) {
  .auth-shell { width: min(390px, calc(100% - 32px)); grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .auth-intro { display: flex; align-items: center; gap: 14px; padding: 0; }
  .brand-mark { width: 42px; height: 42px; font-size: 21px; }
  .auth-intro h1 { margin: 0 0 3px; font-size: 19px; }
  .auth-intro p { font-size: 12px; }
  .auth-card { padding: 24px 20px; }
}
