:root {
  color-scheme: light;
  --login-bg: #f7f9fc;
  --login-hero: #edf3f8;
  --login-surface: #fff;
  --login-text: #23364b;
  --login-muted: #52677c;
  --login-border: #dce5ee;
  --login-accent: #235fa5;
  --login-accent-hover: #194b87;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--login-text); background: var(--login-bg); }
button, input { font: inherit; }
button, summary, input[type="checkbox"] { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
.login-page { display: flex; min-height: 100vh; min-height: 100dvh; }
.hero-panel { position: relative; flex: 0 0 52%; display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--login-hero); border-right: 1px solid var(--login-border); }
.hero-panel::after { content: ""; position: absolute; width: 520px; height: 520px; right: -315px; top: 24%; border: 1px solid #dce5ee; border-radius: 50%; box-shadow: 0 0 0 64px #dce5ee48, 0 0 0 128px #dce5ee28; pointer-events: none; }
.hero-top-bar, .hero-footer { position: relative; z-index: 1; padding: 35px clamp(32px, 4.5vw, 76px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: var(--login-accent); background: #fff; border: 1px solid #dae5f0; border-radius: 12px; font-size: 22px; font-weight: 700; box-shadow: 0 3px 10px #23364b05; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-size: 19px; font-weight: 650; letter-spacing: .3px; }
.brand-divider { margin: 0 7px; color: #7890a8; }
.hero-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(32px, 4.5vw, 76px) 66px; }
.hero-badge { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: var(--login-muted); font-size: 14px; letter-spacing: 1.4px; }
.hero-badge > span { width: 7px; height: 7px; background: #4c8b87; border-radius: 50%; }
h1 { margin: 0 0 24px; font-size: clamp(36px, 3.45vw, 54px); line-height: 1.4; font-weight: 650; letter-spacing: 1px; }
h1 > span { color: var(--login-accent); }
.hero-description { margin: 0 0 38px; max-width: 480px; font-size: 16px; line-height: 1.9; color: var(--login-muted); }
.hero-features { display: flex; flex-direction: column; gap: 26px; list-style: none; margin: 0; padding: 0; }
.hero-features li { display: flex; align-items: center; gap: 16px; }
.feature-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; background: #ffffffd9; border: 1px solid var(--login-border); border-radius: 13px; color: var(--login-accent); }
.feature-icon svg { width: 24px; height: 24px; }
.hero-features h2 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.hero-features p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--login-muted); }
.hero-footer { padding-top: 24px; padding-bottom: 28px; font-size: 13px; line-height: 1.7; color: var(--login-muted); }
.hero-footer > span { padding: 0 7px; color: #aab9c8; }
.login-panel { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; padding: 48px 32px; }
.login-panel-inner { width: 100%; max-width: 458px; }
.mobile-brand { display: none; align-items: center; gap: 11px; justify-content: center; margin-bottom: 27px; font-size: 18px; font-weight: 600; }
.login-card { padding: 38px 38px 0; border: 1px solid var(--login-border); border-radius: 22px; background: var(--login-surface); box-shadow: 0 16px 48px #23364b0f, 0 2px 6px #23364b05; }
.login-heading { margin: 0 0 30px; }
.login-eyebrow { margin: 0 0 11px; font-size: 14px; font-weight: 600; letter-spacing: 2px; color: var(--login-accent); }
.login-heading h2 { margin: 0 0 11px; font-size: 31px; line-height: 1.4; font-weight: 650; }
.login-description { margin: 0; color: var(--login-muted); font-size: 15px; line-height: 1.8; }
.form-field { margin-bottom: 23px; }
.form-field > label { display: inline-block; margin-bottom: 10px; font-size: 15px; font-weight: 550; }
.input-wrap { display: flex; align-items: center; gap: 11px; min-height: 54px; border: 1px solid var(--login-border); border-radius: 10px; background: var(--login-surface); padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.input-wrap:hover { border-color: #a2b9d3; }
.input-wrap:focus-within { border-color: var(--login-accent); box-shadow: 0 0 0 3px #235fa512; }
.input-wrap > svg { flex: 0 0 20px; width: 20px; height: 20px; color: #7a8c9f; }
.input-wrap input { width: 100%; min-width: 0; height: 52px; border: 0; outline: 0; color: var(--login-text); background: transparent; font-size: 16px; }
.input-wrap input::placeholder { color: #617387; font-size: 15px; }
.password-toggle { display: grid; place-items: center; width: 36px; height: 42px; flex: 0 0 36px; padding: 0; margin-right: -6px; border: 0; background: transparent; color: #6d8095; border-radius: 6px; }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle:hover { color: var(--login-accent); background: #f1f6fb; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.form-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 1px 0 26px; color: var(--login-muted); font-size: 14px; line-height: 1.6; }
.remember-account { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; }
.remember-account input { appearance: auto; width: 16px; height: 16px; margin: 3px 0; accent-color: var(--login-accent); }
.login-help { position: relative; text-align: right; }
.login-help summary { color: var(--login-accent); list-style: none; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help p { position: absolute; right: 0; z-index: 2; width: 270px; max-width: 70vw; margin: 12px 0 0; padding: 14px 16px; text-align: left; color: var(--login-muted); background: #fff; border: 1px solid var(--login-border); border-radius: 10px; box-shadow: 0 8px 24px #23364b15; }
.login-help strong { color: var(--login-text); }
.login-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 15px; min-height: 54px; padding: 13px 18px; border: 0; border-radius: 10px; color: #fff; background: var(--login-accent); box-shadow: 0 4px 10px #235fa51f; font-size: 17px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.button-arrow { font-size: 21px; line-height: 1; font-weight: 400; }
.login-button:hover:not(:disabled) { background: var(--login-accent-hover); box-shadow: 0 6px 16px #235fa52e; }
.login-button:disabled { background: #6687ad; box-shadow: none; cursor: wait; }
.login-message { padding: 12px 14px; margin: -8px 0 21px; border: 1px solid #edd1c9; border-radius: 9px; background: #fff8f5; color: #923d2a; font-size: 14px; line-height: 1.65; }
.login-message[data-tone="success"] { border-color: #cce2db; background: #f4faf7; color: #35745b; }
.connection-status { margin-top: 12px; color: var(--login-muted); font-size: 13px; line-height: 1.65; }
.connection-status:empty { display: none; }
.retry-button { display: block; margin: 9px auto 0; padding: 4px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--login-accent); font-size: 14px; }
.login-card-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 29px; padding: 21px 0; border-top: 1px solid #eaf0f5; color: var(--login-muted); font-size: 14px; line-height: 1.7; }
.security-dot { width: 6px; height: 6px; border-radius: 50%; background: #5d8c81; }
.footer-divider { padding: 0 3px; color: #a2b1be; }
.demo-notice { margin: 22px 0 0; color: var(--login-muted); text-align: center; font-size: 14px; line-height: 1.9; }
.demo-notice > span { display: inline-block; margin-right: 6px; color: #49798b; }
.login-formal-name { margin: 12px 0 0; text-align: center; color: var(--login-muted); font-size: 14px; line-height: 1.8; }
.caps-lock, .noscript-message { margin: 8px 0 0; color: #8b5f27; font-size: 13px; line-height: 1.6; }
button:focus-visible, summary:focus-visible, a:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid var(--login-accent); outline-offset: 4px; }
@media (max-width: 1120px) {
  .hero-top-bar, .hero-footer, .hero-body { padding-left: 32px; padding-right: 32px; }
  .brand-name { font-size: 17px; }
  .hero-description { font-size: 15px; }
  .wide-break { display: none; }
  .hero-features p { font-size: 14px; }
  .login-panel { padding: 42px 24px; }
  .login-card { padding: 32px 28px 0; }
}
@media (max-width: 800px) {
  .login-page { min-height: 100dvh; }
  .hero-panel { display: none; }
  .login-panel { padding: 36px 22px; }
  .mobile-brand { display: flex; }
  .login-card { padding: 33px 30px 0; }
  .login-formal-name { margin-left: 0; margin-right: 0; }
}
@media (max-width: 380px) {
  .login-panel { padding: 28px 16px; }
  .login-card { padding: 28px 21px 0; border-radius: 18px; }
  .mobile-brand { gap: 8px; font-size: 16px; }
  .mobile-brand .brand-mark { flex-basis: 35px; width: 35px; height: 35px; font-size: 19px; border-radius: 10px; }
  .login-heading h2 { font-size: 28px; }
  .login-description { font-size: 14px; }
  .form-options { gap: 10px; font-size: 13px; }
  .demo-notice { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
