/* 官网登录：沿用蓝紫色、柔和圆角；样式限定在登录弹窗。 */
#modal-login-scan { padding: 20px; }
#modal-login-box { max-width: 448px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 36px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #4338ca; font-size: 14px; font-weight: 700; }
.login-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px #6366f118; }
.login-heading { text-align: left; }
.login-heading h3 { color: #111827; font-size: 26px; line-height: 1.4; font-weight: 750; letter-spacing: -.5px; }
.login-heading p { margin-top: 8px; color: #6b7280; font-size: 13px; line-height: 1.7; }
.login-tabs { display: flex; gap: 4px; margin: 26px 0 24px; padding: 4px; border-radius: 12px; background: #f3f4f8; }
.login-tabs button { flex: 1; padding: 10px 0; border-radius: 9px; color: #6b7280; font-size: 13px; font-weight: 600; transition: background .2s, box-shadow .2s, color .2s; }
.login-tabs button[aria-selected="true"] { color: #4f46e5; background: #fff; box-shadow: 0 2px 6px #1118270a; }
.login-field { display: block; text-align: left; margin-bottom: 18px; }
.login-field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #374151; }
.login-input-wrap { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafbfe; transition: border-color .2s, box-shadow .2s; }
.login-input-wrap:focus-within { border-color: #818cf8; box-shadow: 0 0 0 3px #6366f112; background: #fff; }
.login-input-wrap input { width: 100%; min-width: 0; padding: 14px; background: transparent; border: 0; outline: none; color: #111827; font-size: 15px; line-height: 22px; }
.login-input-wrap input::placeholder { color: #9ca3af; }
.login-input-wrap button { flex-shrink: 0; margin-right: 14px; font-size: 13px; font-weight: 600; color: #4f46e5; }
.login-input-wrap button:disabled { cursor: not-allowed; color: #9ca3af; }
.login-hint { text-align: left; margin: -6px 0 18px; font-size: 12px; color: #6b7280; line-height: 1.7; }
.login-hint button { color: #4f46e5; }
.login-agreement { display: flex; align-items: flex-start; gap: 8px; text-align: left; font-size: 12px; line-height: 20px; color: #6b7280; }
.login-agreement input { margin-top: 3px; width: 14px; height: 14px; accent-color: #4f46e5; flex-shrink: 0; }
.login-agreement a { color: #4f46e5; }
.login-agreement a:hover { text-decoration: underline; }
.login-message { min-height: 36px; padding-top: 10px; padding-bottom: 6px; text-align: left; color: #dc2626; font-size: 12px; line-height: 20px; }
.login-message[data-kind="success"] { color: #059669; }
.login-submit { width: 100%; padding: 14px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 15px; background: linear-gradient(110deg, #4f46e5, #7c3aed); box-shadow: 0 6px 16px #6366f126; transition: transform .2s, box-shadow .2s; }
.login-submit:hover { box-shadow: 0 8px 22px #6366f13b; }
.login-submit:active { transform: scale(.985); }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid #f3f4f6; color: #9ca3af; font-size: 11px; letter-spacing: 1px; }
#modal-login-box button:focus-visible, #modal-login-box a:focus-visible { outline: 2px solid #818cf8; outline-offset: 3px; }
#modal-login-box [hidden] { display: none !important; }
#scan-panel { padding-top: 2px; }
@media (max-width: 480px) {
    #modal-login-scan { padding: 16px; }
    #modal-login-box { padding: 28px 24px; max-height: calc(100dvh - 32px); border-radius: 24px; }
    .login-brand { margin-bottom: 22px; }
    .login-heading h3 { font-size: 24px; }
    .login-tabs { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    #modal-login-scan, #modal-login-box, #modal-login-box * { transition: none !important; animation: none !important; }
}
