* { box-sizing: border-box; }
:root { color-scheme: light; --brand: #cc3e49; --text: #303844; --muted: #6f7987; }
body { margin: 0; min-height: 100dvh; padding: 48px 24px; display: grid; place-items: center; background: #f5f6f8; color: var(--text); font: 13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; }
.page { width: min(870px,100%); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand-icon { width: 30px; height: 30px; object-fit: contain; }
.brand-title { font-size: 16px; font-weight: 650; letter-spacing: -.4px; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e2e6ec; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 36px #333d4f05; }
.login-intro { padding: 42px; background: #f9fafc; border-right: 1px solid #e6e9ee; }
.login-intro h2 { font-size: 32px; line-height: 1.4; letter-spacing: -1px; font-weight: 600; margin: 0; color: #313947; }
.login-intro > p { color: #6f7a89; margin: 16px 0 26px; font-size: 12px; line-height: 1.9; }
.login-flow { display: grid; gap: 19px; }
.login-flow > div { display: flex; gap: 12px; align-items: center; }
.login-flow svg { width: 29px; height: 29px; padding: 5px; stroke: #c14b58; fill: none; stroke-width: 1.5; background: #f9ecef; border-radius: 7px; }
.login-flow span { font-size: 12px; color: #596574; }
.login-flow small { display: block; font-size: 10px; color: #929aa6; margin-top: 1px; }
.card { padding: 54px 40px 40px; margin: 0; align-self: center; }
.card h1 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; margin: 0; }
.desc { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.field { margin-top: 30px; }
.field-label { display: block; font-size: 12px; font-weight: 500; color: #5f6a79; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; border: 1px solid #dfe3ea; border-radius: 7px; padding: 11px 42px; height: 43px; font: inherit; color: var(--text); background: #fcfcfd; }
.input-wrap input:focus { outline: 0; border-color: #d78d98; box-shadow: none; }
.input-wrap input::placeholder { color: #abb1bc; }
.input-icon { position: absolute; width: 16px; height: 16px; left: 14px; top: 14px; color: #9aa3af; }
.toggle-password { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 33px; height: 33px; border: 0; background: transparent; color: #929ba7; border-radius: 4px; cursor: pointer; }
.toggle-password svg { width: 17px; height: 17px; }
.toggle-password .icon-hide { display: none; }
.toggle-password.is-visible .icon-show { display: none; }
.toggle-password.is-visible .icon-hide { display: block; }
.remember { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 11px; color: #7b8695; cursor: pointer; }
.remember input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand); }
.submit { width: 100%; height: 41px; margin-top: 24px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.submit:hover { background: #b52f3b; }
.err { margin-top: 18px; padding: 9px 12px; border: 1px solid #f1cdd3; border-radius: 6px; background: #fff4f5; color: #b33341; font-size: 12px; }
.login-footer { margin: 18px 0 0; font-size: 10px; color: #a2a9b3; text-align: right; }
button:focus-visible, input:focus-visible { outline: none; box-shadow: none; }
button:focus-visible { background: #b52f3b; color: #fff; }
@media (max-width: 640px) {
 body { padding: 28px 20px; }
 .page { max-width: 390px; }
 .brand { margin-bottom: 20px; }
 .brand-title { font-size: 15px; }
 .login-layout { display: block; border-radius: 11px; }
 .login-intro { padding: 25px; border: 0; border-bottom: 1px solid #e6e9ee; }
 .login-intro h2 { font-size: 23px; line-height: 1.45; }
 .login-intro h2 br { display: none; }
 .login-intro > p { margin: 8px 0 0; font-size: 11px; }
 .login-intro > p br { display: none; }
 .login-flow { display: none; }
 .card { padding: 26px 25px 30px; }
 .card h1 { font-size: 19px; }
 .desc { font-size: 11px; }
 .field { margin-top: 22px; }
 .input-wrap input { font-size: 13px; }
 .login-footer { text-align: center; }
}
