:root {
  color-scheme: light;
  --page: #f3f7fa;
  --surface: #ffffff;
  --surface-soft: #eef5f7;
  --text: #263849;
  --muted: #6c7e8d;
  --line: #d9e5ea;
  --primary: #5f93ad;
  --primary-dark: #477f9a;
  --teal: #78b9ad;
  --shadow: 0 24px 70px rgba(63, 92, 110, 0.13);
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, #edf5f7 0%, #f7f9fb 54%, #eef4f7 100%); color: var(--text); }
button, input { font: inherit; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr); align-items: stretch; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 108px); background: rgba(232, 243, 246, 0.78); border-right: 1px solid rgba(174, 199, 209, 0.5); }
.brand-panel::after { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; right: -220px; bottom: -180px; background: radial-gradient(circle, rgba(120,185,173,.22), rgba(120,185,173,0)); }
.brand-logo { display: block; width: clamp(142px, 20vh, 214px); }
.brand-logo img { display: block; width: 100%; height: auto; }
.eyebrow { margin: 28px 0 12px; color: var(--primary-dark); font-size: 14px; letter-spacing: .16em; font-weight: 700; }
.brand-panel h1 { margin: 0; max-width: 600px; white-space: nowrap; font-size: clamp(30px, 3.5vw, 54px); line-height: 1.15; letter-spacing: -.045em; font-weight: 730; }
.brand-copy { max-width: 610px; margin: 28px 0; color: #536b7a; font-size: 18px; line-height: 1.9; }
.quiet-note { display: flex; flex-wrap: wrap; gap: 10px; }
.quiet-note span { padding: 9px 13px; border: 1px solid #cadde4; border-radius: 999px; color: #587181; background: rgba(255,255,255,.48); font-size: 13px; }
.login-card { align-self: center; justify-self: center; width: min(480px, calc(100% - 48px)); padding: 46px; background: rgba(255,255,255,.94); border: 1px solid rgba(201,218,225,.85); border-radius: 30px; box-shadow: var(--shadow); }
.login-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.soft-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #e7f3f0; color: #579b90; font-weight: 800; }
.login-heading p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.login-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.025em; }
label { display: block; margin: 18px 0 9px; color: #405767; font-size: 14px; font-weight: 700; }
input { width: 100%; height: 52px; padding: 0 16px; color: var(--text); background: #f9fbfc; border: 1px solid var(--line); border-radius: 14px; outline: none; transition: .2s ease; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(95,147,173,.12); background: #fff; }
button { width: 100%; height: 52px; margin-top: 26px; border: 0; border-radius: 14px; color: white; background: var(--primary); font-weight: 750; cursor: pointer; box-shadow: 0 10px 24px rgba(71,127,154,.18); }
button:hover { background: var(--primary-dark); }
button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.channel-name { margin: -14px 0 22px; padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); color: var(--primary-dark); overflow-wrap: anywhere; font-size: 14px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 18px; background: var(--surface-soft); border-radius: 14px; }
.login-tabs button { height: 42px; margin: 0; box-shadow: none; background: transparent; color: var(--muted); font-size: 14px; }
.login-tabs button[aria-selected="true"] { color: var(--primary-dark); background: white; box-shadow: 0 2px 7px rgba(63,92,110,.08); }
.login-note { margin: 10px 0; color: var(--muted); line-height: 1.6; font-size: 12px; }
.sms-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 10px; }
.sms-code-row button { margin: 0; font-size: 12px; }
.consent-label { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.7; font-weight: 400; }
.consent-label input { flex: 0 0 17px; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary-dark); }
input[readonly] { background: var(--surface-soft); }
.saved-session h3 { margin: 0 0 12px; font-size: 20px; }
.saved-session button { margin-top: 12px; }
.form-message { min-height: 22px; margin: 12px 0 0; color: #b96565; text-align: center; font-size: 13px; }
.support-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #8796a1; font-size: 12px; text-align: center; }
.support-line span { flex: 1; height: 1px; background: #e4ecef; }
.staff-entry { display: block; color: #658396; text-align: center; font-size: 13px; text-decoration: none; }
.staff-entry:hover { color: var(--primary-dark); }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 38vh; padding: 42px 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-logo { width: min(240px, 68vw); }
  .brand-panel h1 { font-size: clamp(26px, 8.4vw, 38px); }
  .brand-copy { margin: 16px 0; font-size: 15px; }
  .login-card { margin: 32px auto; padding: 30px; }
}
