#auth-root{display:none}
.auth-screen #sidebar,.auth-screen #workspace,.auth-screen .mobile-backdrop,.auth-screen .skip-link{display:none!important}
.auth-screen #auth-root{display:grid;min-height:100dvh;place-items:center;padding:32px 24px;background:radial-gradient(ellipse at 85% 8%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 48%),radial-gradient(ellipse at 10% 100%,color-mix(in srgb,var(--accent) 5%,transparent),transparent 50%),var(--bg)}
.auth-layout{display:grid;grid-template-columns:1.08fr 1fr;max-width:1080px;width:100%;min-height:640px;background:var(--surface);border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 24px 90px #16356b0c,0 3px 12px #16356b04}
.auth-brand{position:relative;isolation:isolate;display:flex;flex-direction:column;padding:44px 42px 30px;background:linear-gradient(145deg,#315fca 0%,#244dab 52%,#18367e 100%);color:#fff;overflow:hidden}
.auth-brand:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 15% 55%,#9fbfff24,transparent 60%),linear-gradient(125deg,transparent 48%,#ffffff04 48%,#ffffff04 49%,transparent 49%)}
.auth-wordmark{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.auth-mark{display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;border:1px solid #ffffff35;border-radius:15px;background:#ffffff10;box-shadow:inset 0 1px 0 #ffffff15}
.auth-mark .icon{width:29px;height:29px;stroke-width:1.4}
.auth-brand h1{font-size:26px;font-weight:600;letter-spacing:-.7px;line-height:1.65}
.auth-brand p{font-size:11px;color:#d5e1fb;margin-top:3px}
.auth-visual{flex:1;display:grid;place-items:center;margin:7px -14px 0;min-height:300px}
.scan-art{display:block;width:100%;max-width:460px;height:auto;filter:drop-shadow(0 12px 25px #102c5c25)}




.auth-brand-footer{display:flex;align-items:center;gap:18px;font-size:10px;color:#b9ccef}
.auth-footer-line{height:1px;flex:1;background:linear-gradient(to left,#c6daff40,transparent)}
.auth-card{position:relative;display:flex;align-items:center;justify-content:center;padding:66px 50px 50px}
.auth-form-content{width:100%;max-width:350px}
.auth-title-mark{width:43px;height:43px;border:1px solid var(--line);border-radius:13px;display:grid;place-items:center;color:var(--accent);background:var(--surface2);margin-bottom:18px}
.auth-title-mark .icon{width:21px;height:21px}
.auth-card h2{font-size:24px;font-weight:600;letter-spacing:-.5px;margin:0 0 28px}
.auth-card form{display:flex;flex-direction:column;gap:21px}
.auth-card .field{gap:9px}
.auth-card .field>label{font-size:12px;color:var(--text)}
.auth-card .field input{min-height:50px;border-radius:10px;background:var(--surface2);padding-top:11px;padding-bottom:11px;transition:border-color .15s,background .15s,box-shadow .15s}
.auth-card .field input:focus{background:var(--surface);border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent);outline:none}
.auth-card .auth-submit{min-height:50px;margin-top:6px;width:100%;justify-content:space-between;border-radius:10px;font-size:13px;font-weight:500;box-shadow:0 5px 12px #315fca18}
.auth-card .auth-submit:hover{box-shadow:0 7px 18px #315fca25}
.auth-card .auth-help{display:block;margin:24px auto 0;padding:5px 8px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:11px}
.auth-card .auth-help:hover{color:var(--accent);background:var(--accent-soft)}
.auth-card .auth-theme{position:absolute;top:24px;left:26px;border-radius:50%;width:34px;height:34px;background:var(--surface2);border-color:transparent}
.auth-card .auth-theme .icon{width:17px;height:17px}
.auth-welcome{font-size:13px;color:var(--muted);line-height:1.9}
.auth-card .inline-error:not(:empty){margin-bottom:18px}
.password-field{position:relative}
.password-field input{padding-left:49px}
.password-field button{position:absolute;left:5px;top:5px;bottom:5px;display:grid;place-items:center;width:33px;padding:0;border:0;border-radius:7px;color:var(--muted);background:transparent}
.password-field button>.icon{width:17px;height:17px}
.password-field button:hover{color:var(--accent);background:var(--accent-soft)}
.ltr{direction:ltr!important;text-align:left!important}
input[name=username],input[name=invoice_prefix]{direction:ltr;text-align:left}
.account-controls{display:flex;align-items:center}
.account-control{position:relative}
.account-button{display:flex;align-items:center;gap:10px;min-height:42px;max-width:230px;border:1px solid transparent;border-radius:10px;background:none;color:var(--text);font-size:12px;padding:4px 7px}
.account-button:hover,.account-button[aria-expanded=true]{border-color:var(--line);background:var(--surface2)}
.account-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-button>.icon{width:14px;height:14px;color:var(--muted);margin-right:2px;transition:transform .15s}
.account-button[aria-expanded=true]>.icon{transform:rotate(180deg)}
.avatar{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:var(--accent-soft);color:var(--accent);border:1px solid var(--line);border-radius:50%;font-size:14px}
.account-menu{right:auto;left:0;top:calc(100% + 12px);min-width:240px;max-width:calc(100vw - 32px);padding:7px;border-radius:12px}
.account-menu-heading{display:flex;flex-direction:column;gap:4px;padding:10px 12px 14px;margin-bottom:4px;border-bottom:1px solid var(--line);max-width:265px;overflow-wrap:anywhere}
.account-menu-heading strong{font-size:12px;font-weight:500;color:var(--text)}
.account-menu-heading small{font-size:10px;color:var(--muted);line-height:1.8}
.account-menu button{min-height:39px;border-radius:7px}
.account-menu button>.icon{width:17px;height:17px}
.account-menu .menu-separator{height:1px;background:var(--line);margin:5px}
.account-menu .menu-danger{color:var(--danger)}
.account-menu .menu-danger:hover{color:var(--danger);background:var(--danger-bg)}
@media(max-width:950px){.auth-layout{max-width:880px;min-height:610px}.auth-brand{padding:38px 30px 28px}.auth-card{padding:66px 34px 44px}.auth-wordmark{gap:12px}.auth-brand h1{font-size:23px}.auth-mark{width:45px;height:45px}.account-name{max-width:115px}}
@media(max-width:700px){.auth-screen #auth-root{padding:24px 16px}.auth-layout{grid-template-columns:1fr;max-width:440px;min-height:0;border-radius:22px}.auth-brand{padding:24px 28px;gap:0}.auth-brand h1{font-size:21px}.auth-wordmark{gap:13px}.auth-brand p{font-size:10px}.auth-mark{width:43px;height:43px;border-radius:12px}.auth-mark .icon{width:25px;height:25px}.auth-visual,.auth-brand-footer{display:none}.auth-card{padding:62px 28px 32px}.auth-form-content{max-width:none}.auth-card h2{font-size:22px;margin-bottom:25px}.auth-title-mark{display:none}.auth-card .auth-theme{top:16px;left:20px}.auth-card form{gap:19px}.auth-card .auth-help{margin-top:22px}}
@media(max-width:650px){.account-name{display:none}.account-button{gap:5px;padding:3px;min-height:38px}.account-menu{min-width:225px}.topbar-actions{gap:7px}.theme-control{padding-right:8px}.role-grid,.workflow-steps{grid-template-columns:1fr}.request-line{grid-template-columns:1fr 1fr}.request-line>.icon-button{justify-self:end}.settings-tabs{width:100%}.profile-identity{gap:10px}}

.settings-tabs{flex-wrap:wrap}.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.role-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;cursor:pointer;background:var(--surface)}.role-option:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.role-option input{width:15px;height:15px;min-height:0;padding:0;margin-top:4px;accent-color:var(--accent)}.role-option strong{display:block;font-size:12px;font-weight:500}.role-option small{display:block;font-size:10px;color:var(--muted);line-height:1.8;margin-top:4px}.profile-identity{display:flex;align-items:center;gap:16px}.profile-identity>.avatar{width:55px;height:55px;font-size:22px}.profile-identity h2{font-size:18px}.profile-identity p{margin-top:6px}.workflow-steps{display:grid;grid-template-columns:1fr 1fr;gap:16px;font-size:13px}.workflow-steps>div{display:flex;align-items:center;gap:10px}.workflow-steps span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:8px;color:var(--accent);background:var(--accent-soft)}.portal-tabs{margin-bottom:24px;flex-wrap:wrap}.portal-search{margin-bottom:18px}.request-line{display:grid;grid-template-columns:110px 1fr 80px 36px;gap:12px;align-items:end;margin:18px 0}.request-line>.icon-button{margin-bottom:1px}.public-instructions{white-space:pre-wrap;line-height:2.1;font-size:13px}.invite-card{font-size:13px;line-height:2}.topbar-actions{gap:14px}

.auth-brand-logo{display:block;width:232px;height:auto;max-width:100%}.auth-wordmark h1{margin:0;line-height:1}.auth-wordmark>p{margin:0}
@media(max-width:950px){.auth-brand-logo{width:210px}.auth-wordmark{gap:9px}}
@media(max-width:700px){.auth-brand-logo{width:184px}.auth-wordmark{gap:7px}.auth-brand{padding:20px 28px}}
