.auth-screen{position:fixed;inset:0;z-index:10000;display:grid;align-items:center;justify-content:center;background:var(--page,#f5f6f4);padding:20px;overflow:auto;color:var(--ink,#202b2b);font-size:15px;line-height:1.45;font-family:inherit}
.auth-card{box-sizing:border-box;width:min(400px,calc(100vw - 40px));padding:34px;background:#fff;border:1px solid #dce2dc;border-top:4px solid #1b2556;border-radius:18px;box-shadow:0 8px 36px #28403212}
.auth-brand{display:flex;align-items:center;gap:9px;font-size:22px;letter-spacing:-.04em;font-weight:700;color:#263536}
.auth-card h1{font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.03em;margin:22px 0}
.auth-card form,.auth-manage{display:grid;gap:17px}
.auth-field{display:grid;gap:7px;font-size:13px;font-weight:600;line-height:1.4}
.auth-field input,.auth-field select{display:block;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd6cf;border-radius:7px;background:white;color:#1e3327;width:100%;min-height:42px;font:inherit}
.auth-card button{border:0;border-radius:8px;background:#fc7708;color:#1b2556;font:inherit;font-weight:650;padding:11px 16px;cursor:pointer}
.auth-card [role=alert],.auth-form-error{color:#b4342d;font-size:13px;margin:0}
.auth-card [role=alert]:empty,.auth-form-error:empty{display:none}
.auth-note,.auth-account-name{margin:0;font-size:14px}.auth-account-name{font-weight:700}
.auth-logout{background:white;border:1px solid #d5d9d5;border-radius:7px;padding:9px 15px;justify-self:start;cursor:pointer;color:#8a2b28;font:inherit}
.auth-brand{gap:14px}
.auth-brand img{display:block;max-width:120px;max-height:58px;width:auto;height:auto;object-fit:contain}
.auth-brand div{display:grid;gap:1px}
.auth-brand [data-company]{display:block;font-size:13px;font-weight:500;letter-spacing:0;overflow-wrap:anywhere;color:var(--muted,#687471)}
.auth-brand [data-company]:empty{display:none}
:root[data-branded] .auth-screen{background:var(--brand-soft);font-family:var(--brand-font)}
:root[data-branded] .auth-card{border-top:4px solid var(--brand-secondary)}
:root[data-branded] .auth-card button{background:var(--brand-primary);color:var(--brand-on-primary)}
:root[data-branded] .auth-card :focus-visible{outline:2px solid var(--brand-border);outline-offset:3px}
.auth-boot-fields,.auth-invitation,.auth-personal{display:grid;gap:12px}
.auth-invitation[hidden],.auth-card button[hidden]{display:none}
.auth-invitation{border:1px solid var(--border,#dce2dc);border-radius:8px;padding:14px}
.auth-invitation button,.auth-revoke{justify-self:start}
.auth-actions{display:flex;flex-wrap:wrap;gap:8px}
.auth-field input[readonly]{background:#f5f6f4}
.auth-revoke{border:0;background:none;color:#852c27;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px 0;font:inherit;font-size:13px}
.auth-card .auth-back,:root[data-branded] .auth-card .auth-back{background:white;color:var(--ink,#202b2b);border:1px solid #d5d9d5}

.auth-show-password{display:flex;align-items:center;gap:8px;min-height:36px;font-size:14px;cursor:pointer}
.auth-show-password input{width:18px;height:18px;accent-color:var(--brand-primary,#1b2556)}
.auth-recovery{margin-top:16px;font-size:14px}
.auth-recovery summary{cursor:pointer;line-height:1.5;padding:5px 0}
.auth-recovery p{margin:8px 0 0}
