* { box-sizing: border-box; }
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #252c39; background: #f6f7fa; font-synthesis: none; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-layout { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 24px; }
.login-panel { width: 100%; max-width: 350px; }
.login-form-wrap { width: 100%; }
.login-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 650; letter-spacing: -.5px; margin-bottom: 38px; }
.login-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #1d212b; color: #bdc8e0; }
.login-mark svg { width: 27px; height: 27px; }
.login-panel h2 { font-weight: 600; font-size: 28px; letter-spacing: -.6px; margin: 0 0 28px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 23px; }
.field > label { font-size: 13px; font-weight: 550; }
.field input { width: 100%; height: 46px; border: 1px solid #d9dee8; border-radius: 8px; padding: 10px 13px; background: #fff; color: #252c39; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: #6a91ed; box-shadow: 0 0 0 3px #356be51a; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 3px; top: 3px; width: 40px; height: 40px; background: transparent; border: 0; border-radius: 6px; color: #6b7689; display: grid; place-items: center; }
.password-toggle:hover { background: #f3f5f9; color: #466ab2; }
.login-submit { width: 100%; min-height: 46px; border: 1px solid #3165d6; border-radius: 8px; background: #356bdf; color: #fff; display: flex; align-items: center; justify-content: center; gap: 13px; font-size: 14px; font-weight: 550; transition: background .15s; }
.login-submit:hover { background: #285dcf; }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-submit:focus-visible, .password-toggle:focus-visible { outline: 3px solid #8eaef1; outline-offset: 3px; }
.login-error { font-size: 12px; line-height: 1.7; color: #b84848; overflow-wrap: anywhere; }
.login-error:not(:empty) { margin: -8px 0 17px; padding: 10px 12px; border: 1px solid #efd8d8; background: #fdf5f5; border-radius: 7px; }
.login-note { color: #6b7689; font-size: 12px; line-height: 1.8; margin-top: 20px; }
.ui-field-error { margin-top: 0; }
@media (max-width: 760px) {
  .login-layout { padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); }
  .field input { font-size: 16px; }
  .login-submit { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
