:root {
  --brand-deep: #0B1A40;
  --brand-navy: #14285A;
  --brand-blue: #2E86C9;
  --brand-gold: #C9A24A;
  --brand-red: #C0392B;
  --ink: #1F2D42;
  --muted: #52637A;
  --canvas: #F3F6FA;
  --surface: #FFFFFF;
  --line: #D9E2EE;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { min-height: 100dvh; margin: 0; background: linear-gradient(135deg, #edf3f9, #f8fafc 48%, #eef4fa); }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-140%); padding: 10px 14px; color: #fff; background: var(--brand-deep); }
.skip-link:focus { transform: none; }
.login-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: stretch; }
.brand-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 112px); color: #fff; background: linear-gradient(145deg, var(--brand-deep), var(--brand-navy)); }
.brand-mark { margin: 0 0 48px; font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.brand-mark span { display: block; margin-bottom: 5px; color: #c8dcf3; font-size: 11px; letter-spacing: .22em; }
.brand-panel h1 { max-width: 620px; margin: 0; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.13; letter-spacing: -.04em; }
.brand-panel > p { max-width: 580px; margin: 24px 0 0; color: #d7e3f2; font-size: 17px; line-height: 1.75; }
.brand-panel ul { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; color: #e8f0fa; }
.brand-panel li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--brand-gold); }
.login-card { align-self: center; width: min(480px, calc(100% - 48px)); margin: 48px auto; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 70px rgba(11, 26, 64, .13); }
.candidate-badge { width: fit-content; padding: 6px 10px; border-radius: 999px; color: #72540e; background: #fbf4df; font-size: 12px; font-weight: 700; }
.login-card h2 { margin: 22px 0 0; color: var(--brand-deep); font-size: 30px; }
.lead { margin: 9px 0 28px; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 10px; }
label { margin-top: 8px; font-size: 14px; font-weight: 700; }
input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #aebdce; border-radius: 10px; color: var(--ink); background: #fff; font-size: 16px; }
input:focus, button:focus-visible { outline: 3px solid rgba(46, 134, 201, .28); outline-offset: 2px; border-color: var(--brand-blue); }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.password-field button { min-width: 64px; min-height: 48px; border: 1px solid #aebdce; border-radius: 10px; color: var(--brand-navy); background: #f6f9fc; font-weight: 700; }
.helper { margin: 2px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.helper code { overflow-wrap: anywhere; color: var(--brand-deep); }
.error { margin: 4px 0 0; padding: 10px 12px; border-left: 4px solid var(--brand-red); color: #8d2c25; background: #fff2f0; font-size: 14px; }
.submit { min-height: 50px; margin-top: 10px; border: 0; border-radius: 10px; color: #fff; background: var(--brand-blue); font-weight: 800; transition: opacity .18s ease-out, background .18s ease-out; }
.submit:hover { background: #2578b8; }
.submit:disabled { cursor: wait; opacity: .55; }
.boundary { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 34dvh; padding: 34px 24px; }
  .brand-mark { margin-bottom: 20px; }
  .brand-panel h1 { font-size: clamp(28px, 9vw, 42px); }
  .brand-panel > p { font-size: 15px; }
  .brand-panel ul { display: none; }
  .login-card { width: min(100% - 32px, 520px); margin: 24px auto 40px; padding: 28px 22px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .login-shell { grid-template-columns: .9fr 1.1fr; }
  .brand-panel { min-height: 100dvh; padding: 28px; }
  .brand-panel h1 { font-size: 28px; }
  .brand-panel > p, .brand-panel ul { display: none; }
  .login-card { margin: 18px auto; padding: 22px; }
  .login-card h2 { margin-top: 12px; }
  .lead, .boundary { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
