.auth-portal {
    --auth-bg:#020e17; --auth-panel:#031d27; --auth-surface:#082b35; --auth-input:#03232c;
    --auth-text:#eefbff; --auth-muted:#a4c5ce; --auth-line:#216371; --auth-accent:#62e8ef;
    --auth-action:#ffe22f; --auth-action-text:#151b12; --auth-shadow:0 0 0 1px #2be5ec60,0 0 38px #0adce51c;
    margin:0; min-height:100vh; color:var(--auth-text); background:radial-gradient(ellipse at 9% 12%,#d1b90012,transparent 36%),radial-gradient(ellipse at 90% 85%,#00d8e91c,transparent 45%),var(--auth-bg);
    font-family:'Instrument Sans',ui-sans-serif,system-ui,sans-serif; font-size:15px; line-height:1.5;
}
html[data-auth-theme="dark"] { color-scheme:dark; }
.auth-portal *, .auth-portal *::before, .auth-portal *::after { box-sizing:border-box; }
.auth-portal [hidden] { display:none !important; }
.auth-shell { width:min(580px,calc(100% - 40px)); margin:30px auto 48px; }
.auth-shell.auth-wide { width:min(960px,calc(100% - 40px)); }
.auth-card { overflow:hidden; border:1px solid var(--auth-line); border-radius:28px; background:var(--auth-panel); box-shadow:var(--auth-shadow); }
.auth-branding { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; gap:12px; min-height:200px; padding:28px 32px; overflow:hidden; background:#031923; color:#f3fbff; }
.auth-banner { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.auth-branding::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#021721dc 5%,#02172180 65%,#02172115); }
.auth-brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; font-weight:850; font-style:italic; font-size:clamp(19px,4.5vw,27px); letter-spacing:-.04em; }
.auth-brand img { width:46px; height:46px; flex-shrink:0; object-fit:contain; }
.auth-brand em { font-style:inherit; color:#ffe22f; }
.auth-cloud-pill { padding:5px 12px; border:1px solid #2be6ee; border-radius:999px; color:#defbff; background:#001a25b3; font-size:12px; }
.auth-content { padding:28px 32px 30px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:5px; margin-bottom:28px; border:1px solid var(--auth-line); border-radius:999px; background:var(--auth-surface); }
.auth-tabs a { padding:10px 12px; text-align:center; font-weight:750; border-radius:999px; color:var(--auth-muted); text-decoration:none; }
.auth-tabs a[aria-current="page"] { background:var(--auth-action); color:var(--auth-action-text); box-shadow:0 3px 10px #03172318; }
.auth-content h1 { margin:0 0 10px; font-weight:850; font-size:clamp(29px,5vw,39px); line-height:1.2; letter-spacing:-.04em; }
.auth-intro { color:var(--auth-muted); margin:0 0 24px; }
.auth-portal a:not(.auth-brand):not(.auth-tabs a) { color:var(--auth-accent); text-underline-offset:4px; }
.auth-form { display:grid; gap:19px; margin-top:25px; }
.auth-field { display:grid; gap:8px; min-width:0; }
.auth-field>label { font-weight:650; font-size:14px; }
.auth-form input:not([type="checkbox"]):not([type="hidden"]), .auth-form select { width:100%; min-width:0; min-height:49px; padding:12px 14px; border:1px solid var(--auth-line); border-radius:12px; background:var(--auth-input); color:var(--auth-text); font:inherit; }
.auth-form input::placeholder { color:var(--auth-muted); }
.auth-form input:autofill { color:var(--auth-text); -webkit-text-fill-color:var(--auth-text); background:var(--auth-input); box-shadow:0 0 0 1000px var(--auth-input) inset; }
.auth-password { position:relative; min-width:0; }
.auth-form .auth-password input { padding-right:58px; }
.auth-password-toggle { position:absolute; top:3px; right:5px; display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:9px; background:transparent; color:var(--auth-accent); cursor:pointer; }
.auth-password-toggle:hover { background:var(--auth-surface); }
.auth-password:focus-within input { border-color:#ffe22f !important; }
.auth-password input::-ms-reveal { display:none; }
.auth-portal :where(input,select,button,a):focus-visible { outline:3px solid var(--auth-accent); outline-offset:3px; }
.auth-forgot { text-align:right; margin-top:-5px; font-weight:650; font-size:14px; }
.auth-remember { display:flex; gap:10px; align-items:center; }
.auth-form input[type="checkbox"] { width:18px; height:18px; flex-shrink:0; accent-color:var(--auth-action); }
.auth-submit { min-height:50px; padding:12px 18px; border:0; border-radius:14px; background:var(--auth-action); color:var(--auth-action-text); font:inherit; font-size:17px; font-weight:800; cursor:pointer; }
.auth-submit:hover { filter:brightness(1.06); }
.auth-alternate { margin-top:24px; text-align:center; color:var(--auth-muted); font-size:14px; }
.auth-alternate a { font-weight:750; }
.auth-footer { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; padding:20px 24px; border-top:1px solid var(--auth-line); font-size:12px; }
.auth-message { padding:14px 16px; margin:0 0 22px; border:1px solid var(--auth-line); border-radius:12px; }
.auth-message ul { margin:0; padding-left:18px; }
.auth-errors { color:#a51f36; background:#fff1f2; border-color:#fecdd3; }
.auth-success { color:#07614c; background:#ecfdf5; border-color:#a7f3d0; }
.auth-registration { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.auth-registration>label { display:grid; gap:7px; min-width:0; font-size:14px; font-weight:650; }
.auth-registration .auth-full { grid-column:1/-1; }
.auth-registration label.auth-consent { display:flex; gap:12px; align-items:flex-start; padding:15px; border-radius:12px; background:var(--auth-surface); font-size:13px; font-weight:400; }
.auth-consent input { margin-top:3px; }
.auth-registration [data-billing-business].hidden, .auth-registration [data-billing-individual].hidden { display:none; }
.auth-registration-hint { margin:18px 0; color:var(--auth-muted); font-size:13px; }
html[data-auth-theme="dark"] .auth-card { border-color:#20cbd5; }
html[data-auth-theme="dark"] .auth-tabs { border-color:#168d9c; }
html[data-auth-theme="dark"] .auth-tabs a[aria-current="page"], html[data-auth-theme="dark"] .auth-submit { background:linear-gradient(#fff36c,#ffda13); box-shadow:0 0 16px #ffe42925,inset 0 0 0 1px #ffef85; }
html[data-auth-theme="dark"] .auth-content h1 { font-style:italic; }
html[data-auth-theme="dark"] .auth-form input:not([type="checkbox"]):not([type="hidden"]), html[data-auth-theme="dark"] .auth-form select { border-color:#2195a0; box-shadow:inset 0 0 12px #18d9e30a; }
html[data-auth-theme="dark"] .auth-errors { background:#381d28; color:#ffb9c1; border-color:#9c4557; }
html[data-auth-theme="dark"] .auth-success { background:#092f2c; color:#a3f4dd; border-color:#257f70; }
@media(max-width:600px) {
    .auth-shell,.auth-shell.auth-wide { width:calc(100% - 24px); margin:14px auto 28px; }
    .auth-card { border-radius:22px; }
    .auth-branding { min-height:170px; padding:24px; }
    .auth-content { padding:24px 20px; }
    .auth-registration { grid-template-columns:1fr; }
    .auth-form input:not([type="checkbox"]):not([type="hidden"]), .auth-form select { font-size:16px; }
    .auth-footer { gap:10px; padding:18px 14px; }
}
