:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dce4ee;
  --paper: #f7f6f2;
  --white: #fffdfa;
  --brand: #2f6fe4;
  --brand-dark: #174b9c;
  --cyan: #74ddeb;
  --danger: #a64034;
  --success: #176b50;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0, rgba(116, 221, 235, .22), transparent 34rem),
    radial-gradient(circle at 100% 100%, rgba(90, 82, 223, .12), transparent 32rem),
    var(--paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(47,111,228,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47,111,228,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, black, transparent 75%);
}
button, input { font: inherit; }
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .8fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}
.auth-intro { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; }
.auth-brand img { width: 58px; height: 50px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(47,111,228,.14)); }
.auth-brand strong { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.auth-intro-copy { margin: clamp(54px, 10vh, 120px) 0 42px; }
.auth-eyebrow { margin: 0 0 16px; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .24em; }
.auth-intro h1 { margin: 0; font: 700 clamp(38px, 4.6vw, 60px)/1.28 var(--serif); letter-spacing: -.035em; }
.auth-intro-copy > p:last-child { max-width: 610px; margin: 24px 0 0; color: #4d5a6d; font-size: 16px; line-height: 1.9; }
.auth-assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid rgba(47,111,228,.16); border-radius: 18px; background: rgba(47,111,228,.13); list-style: none; }
.auth-assurance li { min-height: 118px; padding: 19px; background: rgba(255,253,250,.86); }
.auth-assurance strong, .auth-assurance span { display: block; }
.auth-assurance strong { color: var(--brand-dark); font-size: 13px; }
.auth-assurance span { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.auth-note { padding: 20px 22px; border-left: 3px solid var(--brand); border-radius: 0 16px 16px 0; background: rgba(234,242,255,.72); }
.auth-note.warning { border-color: #d58742; background: rgba(255,243,230,.72); }
.auth-note strong { font-size: 13px; color: var(--brand-dark); }
.auth-note p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-panel { padding: clamp(27px, 4vw, 46px); border: 1px solid rgba(47,111,228,.16); border-radius: 28px; background: rgba(255,253,250,.94); box-shadow: 0 28px 90px rgba(24,64,128,.15); backdrop-filter: blur(20px); }
.auth-panel-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.auth-step { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border: 1px dashed rgba(47,111,228,.3); border-radius: 17px; color: var(--brand); background: #eef5ff; font-weight: 900; }
.auth-panel-heading p { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-panel h2 { margin: 0; font: 700 28px/1.2 var(--serif); }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 8px; color: #344054; font-size: 12px; font-weight: 800; }
.auth-form label small { color: var(--muted); font-weight: 500; }
.auth-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: white; transition: border .18s, box-shadow .18s; }
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,111,228,.1); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-pair > div { display: grid; gap: 9px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 7px 9px; border: 0; border-radius: 8px; color: var(--brand); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.password-toggle:hover { background: #eef5ff; }
.form-message { min-height: 20px; margin: 8px 0 0; font-size: 12px; line-height: 1.55; }
.form-message[data-type="error"] { color: var(--danger); }
.form-message[data-type="success"] { color: var(--success); font-weight: 700; }
.auth-submit { min-height: 50px; margin-top: 2px; border: 0; border-radius: 13px; color: white; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 11px 26px rgba(47,111,228,.22); font-weight: 900; cursor: pointer; }
.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(47,111,228,.28); }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf0f4; }
.auth-links.single { justify-content: flex-start; }
.auth-links a { color: var(--brand-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; gap: 34px; padding: 24px 0 42px; }
  .auth-intro-copy { margin: 48px 0 28px; }
  .auth-intro h1 { font-size: clamp(34px, 9vw, 48px); }
}
@media (max-width: 540px) {
  .auth-shell { width: min(100% - 20px, 480px); }
  .auth-assurance { grid-template-columns: 1fr; }
  .auth-assurance li { min-height: auto; }
  .auth-panel { padding: 24px 18px; border-radius: 21px; }
  .field-pair { grid-template-columns: 1fr; }
  .auth-links { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
