/* Shared mailbox blue, paper white and slate keep authentication part of the workspace. */
:root { --auth-blue: #0078d4; --auth-ink: #16324b; --auth-muted: #64778b; --auth-paper: #ffffff; --auth-line: #d9e5ee; --auth-bg: #edf4f9; }
.login-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: var(--auth-bg); color: var(--auth-ink); font: 15px/1.6 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.login-page * { box-sizing: border-box; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; width: min(980px, calc(100% - 64px)); min-height: 610px; margin: 32px; background: white; border: 1px solid var(--auth-line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px #16324b0e; }
.login-intro { position: relative; display: flex; flex-direction: column; padding: 44px; background: #e3f1fc; border-right: 1px solid #cfdfed; }
.product-wordmark { font: 700 16px/1.5 'Trebuchet MS', 'Microsoft YaHei', sans-serif; letter-spacing: 1.5px; }
.product-wordmark span { font-size: 12px; letter-spacing: 1px; font-weight: 400; }
.mail-emblem { width: 148px; height: 100px; border: 2px solid var(--auth-blue); border-radius: 7px; margin: 66px 0 24px; position: relative; overflow: hidden; background: #f8fcff; transform: rotate(-7deg); box-shadow: 9px 9px 0 #bedcf1; }
.mail-emblem::before { content: ''; position: absolute; width: 105px; height: 105px; border: 2px solid var(--auth-blue); transform: rotate(45deg); top: -61px; left: 18px; border-radius: 6px; }
.mail-emblem span { position: absolute; width: 26px; height: 7px; background: #b7d7ee; right: 12px; bottom: 13px; }
.login-intro h1 { font-family: 'Trebuchet MS', 'Microsoft YaHei', sans-serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.4; font-weight: 600; letter-spacing: -1px; margin: 14px 0; }
.login-intro p { color: #466782; margin: 6px 0 30px; }
.intro-footer { margin-top: auto; font-size: 12px; color: #416880; }
.intro-footer span { margin: 0 10px; }
.login-panel { padding: 72px 48px 38px; }
.login-eyebrow { color: var(--auth-blue); font-size: 13px; font-weight: 600; }
.login-panel h2 { font-size: 28px; margin: 6px 0 8px; font-weight: 600; }
.login-caption, .login-help, .login-footnote { color: var(--auth-muted); font-size: 13px; }
.login-caption { margin: 0 0 34px; }
.login-panel label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 7px; }
.login-panel input { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid #b8c9d6; border-radius: 6px; background: #fbfdff; color: var(--auth-ink); }
.auth-primary { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border: 0; border-radius: 6px; color: white; background: var(--auth-blue); font: 600 15px/1.5 'Segoe UI', 'Microsoft YaHei', sans-serif; cursor: pointer; }
.auth-primary:hover { background: #0067b6; }
.auth-primary:disabled { opacity: .6; cursor: wait; }
.auth-error { min-height: 23px; color: #ac2633; font-size: 13px; margin: 12px 0; }
.login-help { margin-top: 22px; }
.login-footnote { margin-top: 45px; padding-top: 18px; border-top: 1px solid var(--auth-line); font-size: 12px; }
.auth-notice { background: #fff6de; border: 1px solid #ead396; border-radius: 6px; padding: 14px; font-size: 13px; }
.auth-notice p { margin-bottom: 0; }
.auth-notice code { overflow-wrap: anywhere; }
.login-page :focus-visible, .auth-dialog :focus-visible, .web-user-panel :focus-visible { outline: 3px solid #49a5e9; outline-offset: 3px; }
[hidden] { display: none !important; }
.web-user-panel { padding: 12px 15px; border-bottom: 1px solid #ffffff38; }
.web-user-identity { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
#web-username { font-weight: 600; overflow-wrap: anywhere; }
.web-role { font-size: 11px; padding: 2px 7px; border: 1px solid #ffffff60; border-radius: 20px; white-space: nowrap; }
.web-user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.auth-dialog { width: min(850px, calc(100% - 36px)); max-height: 85vh; border: 1px solid var(--auth-line); border-radius: 12px; padding: 24px; color: var(--auth-ink); background: white; box-shadow: 0 24px 80px #16324b40; font: 14px/1.5 'Segoe UI', 'Microsoft YaHei', sans-serif; margin: auto; }
.auth-dialog::backdrop { background: #102e4b66; }
.auth-dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auth-dialog-header h2 { font-size: 21px; }
.auth-dialog p { margin: 10px 0; }
.auth-dialog form { display: grid; gap: 10px; }
.auth-dialog input, .auth-dialog select { padding: 9px; border: 1px solid #bacbd8; border-radius: 4px; font: inherit; width: 100%; min-width: 0; }
.auth-dialog label { display: grid; gap: 5px; }
.auth-create-grid { display: grid; grid-template-columns: 1fr 1fr 120px auto; align-items: end; gap: 10px; border-bottom: 1px solid var(--auth-line); padding-bottom: 18px; margin-bottom: 14px; }
.auth-table-wrap { overflow-x: auto; }
.auth-table { border-collapse: collapse; width: 100%; text-align: left; }
.auth-table th, .auth-table td { padding: 10px 8px; border-bottom: 1px solid var(--auth-line); white-space: nowrap; }
.auth-table th { color: var(--auth-muted); font-size: 12px; font-weight: 500; }
.auth-table td:last-child { display: flex; gap: 6px; }
.auth-password-dialog { max-width: 430px; }
.auth-description { color: var(--auth-muted); font-size: 13px; }
html[data-web-role='viewer'] [data-permission='write'], html[data-web-role='operator'] [data-permission='admin'], html[data-web-role='viewer'] [data-permission='admin'], html[data-web-role='viewer'] .account-delete, html[data-web-role='viewer'] #reply-email-btn { display: none !important; }
@media (max-width: 760px) { .login-shell { grid-template-columns: 1fr; width: min(460px, calc(100% - 28px)); min-height: 0; margin: 20px 14px; } .login-intro { padding: 22px 28px; border-right: 0; border-bottom: 1px solid var(--auth-line); } .mail-emblem, .login-intro p, .intro-footer { display: none; } .login-intro h1 { font-size: 23px; margin-bottom: 0; } .login-intro h1 br { display: none; } .login-panel { padding: 28px; } .login-footnote { margin-top: 28px; } .auth-create-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: no-preference) { .login-shell { animation: auth-enter .28s ease-out; } @keyframes auth-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }
