#_app-login-overlay{display:flex;position:fixed;inset:0;z-index:10000;align-items:center;justify-content:center;padding:20px;background:#172033;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#_login-card{width:100%;max-width:390px;background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:8px;padding:30px 28px;box-shadow:0 24px 60px rgba(0,0,0,.28)}
#_login-mark{width:48px;height:48px;margin:0 auto 16px;border:1px solid #e5e7eb;border-radius:8px;background:#fff url("../icons/icon-192.png") center/cover no-repeat;color:transparent;display:flex;align-items:center;justify-content:center;font-size:0;font-weight:800}
._login-label{display:block;margin:0 0 6px;color:#334155;font-size:12px;font-weight:700}
._login-input{width:100%!important;min-height:44px!important;padding:10px 12px!important;border:1px solid #cbd5e1!important;border-radius:7px!important;background:#fff!important;color:#0f172a!important;font-size:14px!important}
._login-input:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.14)!important}
#_login-submit{width:100%;min-height:44px;border:0;border-radius:7px;background:#2563eb;color:#fff;font-size:14px;font-weight:700;cursor:pointer}
#_login-submit:hover{background:#1d4ed8}
#_toggle-password{position:absolute;right:7px;top:7px;height:30px;padding:0 8px;border:0;background:transparent;color:#2563eb;font-size:12px;font-weight:700;cursor:pointer}
#_account-bar{display:none;position:fixed;right:10px;bottom:10px;z-index:9998;align-items:center;gap:8px;padding:6px 7px 6px 10px;border:1px solid rgba(15,23,42,.12);border-radius:7px;background:rgba(255,255,255,.96);box-shadow:0 4px 16px rgba(15,23,42,.12);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#_logged-in-email{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569;font-size:11px}
#_logout-button{height:28px;padding:0 9px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font-size:11px;font-weight:700;cursor:pointer}
#_account-bar button{height:28px;padding:0 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font-size:11px;font-weight:700;cursor:pointer}
@media(min-width:769px){
  #_account-bar{right:0;padding-left:0;border-right:0;border-radius:9px 0 0 9px;opacity:.78;transform:translateX(calc(100% - 30px));transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,background-color .18s ease;will-change:transform}
  #_account-bar::before{content:"账号";display:flex;align-self:stretch;align-items:center;justify-content:center;flex:0 0 30px;margin:-6px 0;color:#64748b;font-size:9px;font-weight:800;letter-spacing:1px;line-height:1;writing-mode:vertical-rl;background:linear-gradient(180deg,#eff6ff,#f8fafc);border-right:1px solid rgba(15,23,42,.1);cursor:pointer}
  #_account-bar:hover,#_account-bar:focus-within,#_account-bar.is-expanded{opacity:1;transform:translateX(0)}
}
#_local-export-button{width:100%;min-height:38px;margin-top:9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:12px;font-weight:700;cursor:pointer}
@media(max-width:520px){#_app-login-overlay{align-items:flex-start;padding-top:max(42px,env(safe-area-inset-top))}#_login-card{padding:26px 20px}#_account-bar{left:8px;right:8px;bottom:8px;gap:4px;justify-content:space-between}#_logged-in-email{max-width:calc(100vw - 210px)}}

/* Authentication retains a legible surface in every application theme. */
html body #_app-login-overlay{background:radial-gradient(ellipse at 18% 10%,#e7effb,transparent 55%),#f4f7fb!important;overflow:auto;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#24344d}
html body #_app-login-overlay #_login-card{box-sizing:border-box;max-width:372px;padding:26px 28px;border:1px solid #d7e1ed!important;border-radius:12px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 14px 42px rgba(37,64,102,.10)!important;backdrop-filter:none!important;resize:none!important;overflow:visible;transform:none!important}
html body #_app-login-overlay #_login-mark{width:56px;height:56px;margin:0 auto 15px;border:0;border-radius:0;background:transparent url('../icons/app-login-128.png') center/contain no-repeat}
html body #_app-login-overlay #_login-title{color:#24344d!important;font-size:21px!important;font-weight:650!important}
html body #_app-login-overlay ._login-label{font-size:12px;line-height:1.5;font-weight:500;color:#53647c}
html body #_app-login-overlay ._login-input{box-sizing:border-box;height:38px!important;min-height:38px!important;border:1px solid #cdd9e8!important;border-radius:6px!important;background:#fff!important;box-shadow:none!important;color:#24344d!important;font:13px/1.4 "Segoe UI","Microsoft YaHei",sans-serif!important;padding:8px 10px!important}
html body #_app-login-overlay ._login-input::placeholder{color:#92a0b1;opacity:1}
html body #_app-login-overlay ._login-input:focus{outline:2px solid rgba(37,99,235,.16);outline-offset:0;border-color:#618ee8!important}
html body #_app-login-overlay button{box-sizing:border-box;min-height:34px;border:1px solid #cdd9e8!important;border-radius:6px!important;background:#fff!important;color:#435773!important;box-shadow:none!important;backdrop-filter:none!important;text-shadow:none!important;transform:none!important;font:13px/1.35 "Segoe UI","Microsoft YaHei",sans-serif!important;cursor:pointer}
html body #_app-login-overlay button:focus-visible{outline:2px solid #6a99ec;outline-offset:2px}
html body #_app-login-overlay #_login-submit{height:38px;min-height:38px;background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;font-weight:600!important}
html body #_app-login-overlay #_login-submit:hover{background:#1e55d5!important}
html body #_app-login-overlay #_toggle-password{top:5px;right:5px;height:28px;min-height:28px;padding:0 7px;border:0!important;background:transparent!important;color:#3367b4!important;font-size:12px!important}
html body #_app-login-overlay #_local-export-button{height:34px;min-height:34px;font-size:12px!important}
html body #_app-login-overlay #employee-register{display:block;width:100%;height:34px;margin:14px 0 0;color:#2563eb!important;background:#f7faff!important;border-color:#d7e3f5!important}
html body #_app-login-overlay button:disabled{cursor:default;opacity:.55}
@media(max-width:520px){html body #_app-login-overlay{padding:24px 16px;align-items:center}html body #_app-login-overlay #_login-card{padding:24px 22px}}
