@font-face { font-family: 'Glyphicons Halflings'; src: url('/assets/glyphicons.woff2') format('woff2'); font-display: block; }
:root { --ink: #202b3b; --muted: #637188; --line: #dce4ef; --blue: #2563eb; --blue-hover: #1d4ed8; --blue-pale: #edf3ff; --red: #b53a43; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100dvh; background: #f6f8fc; color: var(--ink); font: 14px/1.6 'Microsoft YaHei', 'PingFang SC', sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.icon { display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; }
.icon-home::before { content: '\e021'; }
.icon-user::before { content: '\e008'; }
.icon-lock::before { content: '\e033'; }
.icon-eye::before { content: '\e105'; }
.icon-eye-off::before { content: '\e106'; }
.icon-login::before { content: '\e161'; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 28px; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { object-fit: contain; flex: none; }
.brand strong { font-size: 16px; font-weight: 600; }
.home-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; flex: none; }
main { width: 100%; max-width: 456px; margin: 64px auto 0; padding: 0 28px 28px; }
.page-heading { margin-bottom: 24px; }
h1 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 600; }
.page-heading p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 26px; border: 1px solid var(--line); background: #eef2f8; border-radius: 6px; }
.role-selector button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 8px; font-size: 13px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; }
.role-selector button[aria-pressed='true'] { color: var(--blue); border-color: #d7e1f0; background: white; font-weight: 600; }
.role-selector button:hover { color: var(--blue); }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; font-size: 13px; }
input { width: 100%; min-width: 0; height: 44px; padding: 9px 12px; border: 1px solid #bac8dc; border-radius: 4px; background: white; }
input:hover { border-color: #809bc2; }
.password-field { display: flex; align-items: center; position: relative; }
.password-field input { padding-right: 47px; }
.icon-button { position: absolute; right: 4px; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #627692; }
.icon-button:hover { color: var(--blue); background: var(--blue-pale); }
.form-status { min-height: 23px; margin: -6px 0 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.form-status.error { color: var(--red); }
.submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: white; font-size: 14px; }
.submit-button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 600px) {
    .site-bar { height: 60px; padding: 0 18px; }
    .brand { gap: 8px; }
    .brand strong { font-size: 14px; }
    .brand img { width: 27px; height: 27px; }
    main { margin-top: 36px; padding: 0 24px 24px; }
    .page-heading { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: color .12s, border-color .12s, background .12s; } }
