:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", Roboto, sans-serif; color: #1e293b; background: #f6f7f9; --line: #e3e6eb; --input: #d5dae1; --input-hover: #bfc6d0; --muted: #5f6b7a; --accent: #4472c4; --ring: 0 0 0 1px #4472c4, 0 0 0 4px rgba(68, 114, 196, .18); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: #f6f7f9; }
.login-card { width: min(100%, 420px); padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(30, 41, 59, .06); }
.brand { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
h1 { margin: 18px 0 8px; font-size: 26px; font-weight: 600; line-height: 1.3; }
.intro, .help { color: var(--muted); font-size: 13px; line-height: 1.7; text-wrap: pretty; }
form { margin-top: 24px; }
label { display: block; margin: 16px 0 6px; color: #475467; font-size: 13px; font-weight: 600; }
input { width: 100%; min-height: 44px; border: 1px solid var(--input); border-radius: 8px; padding: 10px 12px; color: #1e293b; background: #fff; font: inherit; font-size: 15px; transition: border-color .12s ease, box-shadow .12s ease; }
input:hover { border-color: var(--input-hover); }
input:focus { outline: 2px solid transparent; border-color: transparent; box-shadow: var(--ring); }
button { width: 100%; min-height: 44px; margin-top: 4px; padding: 12px; border: none; border-radius: 8px; background: var(--accent); color: white; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .12s ease, box-shadow .12s ease; }
button:hover { background: #3a64b0; }
button:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); }
button:disabled { opacity: .6; cursor: wait; }
#login-error { min-height: 18px; color: #b42318; font-size: 13px; line-height: 1.5; }
.help { margin: 24px 0 0; font-size: 12px; }
.remember-device { display: flex; align-items: center; gap: 9px; color: #1e293b; font-weight: 400; cursor: pointer; }
.remember-device input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--accent); }
.remember-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.language-controls { display: flex; justify-content: flex-end; margin: -14px -10px 14px 0; }
.language-controls label { margin: 0; }
.language-controls select { max-width: 150px; padding: 6px 9px; border: 1px solid var(--input); border-radius: 8px; background: white; font: inherit; color: #1e293b; }
.language-controls select:focus { outline: 2px solid transparent; border-color: transparent; box-shadow: var(--ring); }
@media (prefers-reduced-motion: reduce) { input, button { transition: none; } }
@media (max-width: 480px) { .login-card { padding: 28px 20px; } }
