/* Auth presentation only: original forms, IDs, validation and handlers remain in place. */
body.px-auth-active{background:radial-gradient(ellipse at 75% 20%,#81536c38,transparent 55%),#30232c}
body.px-auth-active .account-wrap{max-width:1120px;padding:42px 28px 55px;margin:auto;box-sizing:border-box}
.px-auth-stage{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:800px;isolation:isolate;background:linear-gradient(125deg,#fffaf2,#f1e7e0);border:1px solid #ddc4b5;border-radius:23px;box-shadow:0 35px 80px -25px #0d0719aa,inset 0 1px 0 #fff;overflow:hidden;--auth-ease:cubic-bezier(.65,0,.2,1)}
.px-auth-stage[hidden]{display:none!important}
.px-auth-welcome{position:absolute;z-index:1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 95% 0,#a5778b88,transparent 55%),linear-gradient(135deg,#674758,#362332 75%);clip-path:polygon(52% 0,100% 0,100% 100%,62% 100%);transition:clip-path .85s var(--auth-ease)}
.px-auth-stage[data-auth-mode=signup] .px-auth-welcome{clip-path:polygon(0 0,48% 0,38% 100%,0 100%)}
.px-auth-welcome:before{content:'';position:absolute;inset:25px;border:1px solid #e3c09b29;border-radius:14px;pointer-events:none}
.px-auth-welcome:after{content:'';position:absolute;left:57%;top:-12%;height:130%;width:1px;background:linear-gradient(transparent,#f0d2a6,#fff0d0,transparent);box-shadow:0 0 23px 4px #d9b78e3b;transform:rotate(-7deg);transition:left .85s var(--auth-ease),transform .85s var(--auth-ease)}
.px-auth-stage[data-auth-mode=signup] .px-auth-welcome:after{left:43%;transform:rotate(7deg)}
.px-auth-welcome-copy{position:absolute;left:65%;right:6%;top:50%;transform:translateY(-50%);transition:left .85s var(--auth-ease),right .85s var(--auth-ease);color:#fff5e8;max-width:360px}
.px-auth-stage[data-auth-mode=signup] .px-auth-welcome-copy{left:6%;right:65%}
.px-auth-welcome-copy>span{font:10px/1.5 Arial,sans-serif;letter-spacing:2px;color:#dec19e}
.px-auth-welcome-copy h2{font:400 43px/1.15 Georgia,serif;letter-spacing:-1px;color:#fff1df;margin:23px 0}
.px-auth-welcome-copy h2 em{font-weight:400;color:#dfb9a6}
.px-auth-welcome-copy p{font:14px/1.9 Arial,sans-serif;color:#dfc8d6;margin:0;max-width:260px}
.px-auth-welcome-copy>i{display:block;width:45px;height:1px;background:#c7a379;margin:28px 0}
.px-auth-stage>.login-panel{position:relative;z-index:2;grid-column:1;grid-row:1;width:100%;max-width:none;margin:0;box-sizing:border-box;padding:45px 15% 45px 11%;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0}
.px-auth-stage[data-auth-mode=signup]>.login-panel{grid-column:2;padding:38px 11% 38px 15%}
.px-auth-stage>.login-panel h1{font:400 34px/1.15 Georgia,serif;color:#56394b;margin:13px 0 17px;letter-spacing:-.6px}
.px-auth-stage>.login-panel .eyebrow{color:#92667e;font:600 9px/1.6 Arial,sans-serif;letter-spacing:1.6px;margin:0}
.px-auth-stage>.login-panel>p:not(.eyebrow){color:#806575;font:14px/1.7 Arial,sans-serif;margin:0 0 20px}
.px-auth-stage>.login-panel label{font:12px/1.5 Arial,sans-serif;color:#67465c;margin:0 0 13px;display:block}
.px-auth-stage>.login-panel :is(input[type=email],input[type=password]){width:100%;box-sizing:border-box;min-height:48px;padding:12px 13px;font:16px/1.4 Arial,sans-serif;border:1px solid #d9c4d1;border-radius:8px;background:#fffdf8;color:#503748;margin:6px 0 0;box-shadow:inset 0 1px 3px #58354b04}
.px-auth-stage>.login-panel input:focus-visible{outline:2px solid #ab7e99;outline-offset:2px;border-color:#a47790}
.px-auth-stage>.login-panel button.primary{display:flex;justify-content:center;align-items:center;width:100%;min-height:48px;padding:13px 18px;background:linear-gradient(180deg,#f3d9a4,#cfa25d);border:0;border-radius:8px;color:#3a2532;font:600 14px/1.5 Arial,sans-serif;box-shadow:0 6px 16px #0000004d,inset 0 1px 0 #ffffffa0;margin-top:16px;cursor:pointer}
.px-auth-stage>.login-panel button.primary:disabled{opacity:.65;cursor:wait}
.px-auth-stage>.login-panel .helper{font:11px/1.7 Arial,sans-serif;color:#8a7081;margin:8px 0}
.px-auth-stage>.login-panel .helper a{color:#6f465f;text-decoration:underline;text-underline-offset:3px}
.px-auth-stage>.login-panel .actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}
.px-auth-stage>.login-panel :is(.quiet,.soft-button){font:12px/1.5 Arial,sans-serif;min-height:44px;padding:8px 10px;border-radius:7px;color:#704c63}
.px-auth-stage>.login-panel .soft-button{background:#eee1e9;border-color:#ddc6d6}
.px-auth-stage>.login-panel .auth-help{margin-top:12px;border-top:1px solid #dfccd7;padding-top:14px}
.px-auth-stage>.login-panel .auth-help summary{font:11px/1.6 Arial,sans-serif;color:#8b6b7d;cursor:pointer}
.px-auth-stage>.login-panel .auth-switch{font:12px/1.6 Arial,sans-serif;color:#7e6073;margin:12px 0 0}
.px-auth-stage>.login-panel .auth-switch button{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.px-auth-stage>.login-panel .google-button{border:1px solid #d8c3cf;background:#fffaf4;color:#65475a;border-radius:8px;min-height:48px;font:13px/1.5 Arial,sans-serif}
.px-auth-stage>.login-panel .auth-or{color:#9c8192;font-size:10px}
.px-auth-stage>.login-panel .auth-result{font:12px/1.7 Arial,sans-serif;color:#7d3e52;margin-top:12px;overflow-wrap:anywhere}
.px-auth-stage>.login-panel :is(button,summary,a):focus-visible{outline:3px solid #ac819c;outline-offset:3px}
body.px-auth-active #accountMessage{color:#efd8e7;max-width:650px;margin:18px auto;text-align:center;line-height:1.7}
body.px-auth-active #demoResumeNote{background:#fff6e9;color:#715268;border-color:#bca0b0}
@media(max-width:900px){body.px-auth-active .account-wrap{padding:23px 18px 38px}.px-auth-stage{display:block;min-height:0;border-radius:20px}.px-auth-welcome{position:relative;height:155px;clip-path:polygon(0 0,100% 0,100% 77%,0 100%);transition:clip-path .7s var(--auth-ease)}.px-auth-stage[data-auth-mode=signup] .px-auth-welcome{clip-path:polygon(0 0,100% 0,100% 100%,0 77%)}.px-auth-welcome-copy,.px-auth-stage[data-auth-mode=signup] .px-auth-welcome-copy{left:27px;right:27px;top:21px;transform:none;max-width:none;transition:none}.px-auth-welcome-copy>span{font-size:8px;letter-spacing:1.7px}.px-auth-welcome-copy h2{font-size:28px;line-height:1.12;margin:11px 0}.px-auth-welcome-copy h2 br{display:none}.px-auth-welcome-copy p,.px-auth-welcome-copy>i{display:none}.px-auth-welcome:before{inset:12px 12px 30px;border-radius:12px}.px-auth-welcome:after,.px-auth-stage[data-auth-mode=signup] .px-auth-welcome:after{left:50%;top:120px;transform:rotate(-6deg);width:110%;height:1px}.px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding:10px 27px 30px}.px-auth-stage>.login-panel h1{font-size:30px}.px-auth-stage>.login-panel>p:not(.eyebrow){font-size:13px}.px-auth-stage>.login-panel .helper{font-size:11px}.px-auth-stage>.login-panel .eyebrow{font-size:8px}}
@media(max-width:360px){body.px-auth-active .account-wrap{padding-inline:12px}.px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding-inline:20px}.px-auth-welcome-copy,.px-auth-stage[data-auth-mode=signup] .px-auth-welcome-copy{left:20px;right:20px}.px-auth-stage>.login-panel h1{font-size:27px}.px-auth-welcome-copy h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){.px-auth-welcome,.px-auth-welcome:after,.px-auth-welcome-copy{transition:none!important}}
/* Explicit dark-surface contrast beats the account's legacy heading rule. */
body.acct-v113 .px-auth-welcome-copy h2{color:#fff1df!important}
@media(min-width:901px){.px-auth-stage{min-height:920px}}
@media(max-width:900px){.px-auth-welcome-copy h2 em{display:block}.px-auth-welcome-copy h2{font-size:27px}}
body.px-auth-active>.sf-footer{background:#241b23;border-image:none;border-color:#d1acbf26;color:#cdb6c5}
body.px-auth-active>.sf-footer :is(a,small,button){color:#d9c2d0}
body.px-auth-active>.sf-footer button{border-color:#b38d9e66;background:transparent}
/* Desktop auth fits the viewport through layout, never through a clipped page. */
@media(min-width:901px){
 body.px-auth-active{min-height:100svh;display:flex;flex-direction:column}
 body.px-auth-active>.workspace-header{min-height:60px;padding:6px 28px;box-sizing:border-box;flex-shrink:0}
 body.px-auth-active>.workspace-header .sofinvite-logo{width:112px;max-height:48px;object-fit:contain}
 body.px-auth-active .account-wrap{width:100%;max-width:1180px;padding:12px 28px;margin:auto;flex:1 0 auto;display:flex;flex-direction:column;justify-content:center}
 .px-auth-stage{min-height:0;align-items:center}
 .px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding-top:23px;padding-bottom:23px}
 .px-auth-stage>.login-panel h1{font-size:30px;line-height:1.12;margin:8px 0 11px}
 .px-auth-stage>.login-panel .eyebrow{font-size:8px;line-height:1.5}
 .px-auth-stage>.login-panel>p:not(.eyebrow){font-size:12px;line-height:1.5;margin:0 0 10px}
 .px-auth-stage>.login-panel .auth-free-note{font-size:11px;min-height:0;padding:5px 9px;line-height:1.4;margin-bottom:9px}
 .px-auth-stage>.login-panel .google-auth{margin:10px 0 8px}
 .px-auth-stage>.login-panel .google-button{min-height:41px;font-size:12px;padding:9px 12px}
 .px-auth-stage>.login-panel .auth-or{margin:9px 0;font-size:9px}
 .px-auth-stage>.login-panel label{font-size:11px;margin-bottom:9px}
 .px-auth-stage>.login-panel :is(input[type=email],input[type=password]){min-height:41px;padding:9px 11px;margin-top:4px;font-size:14px}
 .px-auth-stage>.login-panel button.primary{min-height:41px;padding:9px 13px;font-size:13px;margin-top:9px}
 .px-auth-stage>.login-panel .helper{font-size:10px;line-height:1.6;margin:4px 0}
 .px-auth-stage>.login-panel .actions{margin-top:9px}
 .px-auth-stage>.login-panel :is(.quiet,.soft-button){min-height:34px;padding:6px 9px;font-size:11px}
 .px-auth-stage>.login-panel .auth-help{margin-top:9px;padding-top:10px}
 .px-auth-stage>.login-panel .auth-switch{margin:6px 0 0;font-size:11px}
 .px-auth-stage #signupForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px}
 .px-auth-stage #signupForm>label{min-width:0;margin:0}
 .px-auth-stage #signupForm>label:first-of-type{grid-column:1/-1}
 .px-auth-stage #signupForm>label:nth-of-type(2){grid-column:1;grid-row:2}
 .px-auth-stage #signupForm>label:nth-of-type(3){grid-column:2;grid-row:2}
 .px-auth-stage #signupForm>:is(p,button){grid-column:1/-1}
 .px-auth-stage #signupForm>p.helper:first-of-type{grid-row:3;margin:0}
 .px-auth-stage #signupForm>button.primary{margin-top:4px}
 .px-auth-stage #signupForm>.auth-result:empty{display:none}
 .px-auth-welcome-copy h2{font-size:clamp(33px,3.2vw,43px)}
 body.px-auth-active #accountMessage:empty{display:none}
 body.px-auth-active>.sf-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px 22px;flex-wrap:wrap;margin:0;padding:9px 24px;min-height:44px;box-sizing:border-box;flex-shrink:0}
 body.px-auth-active>.sf-footer nav{margin:0;display:flex;gap:15px;flex-wrap:wrap}
 body.px-auth-active>.sf-footer :is(a,small){font:10px/1.5 Arial,sans-serif;padding:0;min-height:0}
 body.px-auth-active>.sf-footer button{min-height:30px;padding:5px 9px;font-size:10px}
}
@media(min-width:901px){
 .px-auth-stage{min-height:min(590px,calc(100svh - 170px))}
 .px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding-top:16px;padding-bottom:16px}
 .px-auth-stage #signupPanel>.px-auth-tabs+p{display:none}
 body.px-auth-active>.sf-footer{padding-block:6px}
 body.px-auth-active>.sf-footer :is(nav,small,button){margin:0;padding-block:0}
 body.px-auth-active>.sf-footer nav{min-height:0}
 body.px-auth-active>.sf-footer button{padding:5px 9px}
}
@media(min-width:901px) and (max-height:800px){body.px-auth-active>.workspace-header{min-height:52px}.px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding-top:12px;padding-bottom:12px}body.px-auth-active>.workspace-header .sofinvite-logo{height:38px}.px-auth-stage{min-height:min(590px,calc(100svh - 160px))}}
@media(min-width:901px) and (max-width:1100px) and (max-height:800px){.px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding-top:8px;padding-bottom:8px}}
/* Use the panel's exact polygon coordinates for its illuminated edge. */
@media(min-width:901px){
 .px-auth-welcome:after{inset:0;width:100%;height:100%;transform:none;box-shadow:none;background:linear-gradient(180deg,transparent 1%,#d9b98a88 18%,#f1d7b5bf 50%,#d9b98a88 82%,transparent 99%);clip-path:polygon(52% 0,calc(52% + 1px) 0,calc(62% + 1px) 100%,62% 100%);transition:clip-path .85s var(--auth-ease)}
 .px-auth-stage[data-auth-mode=signup] .px-auth-welcome:after{left:0;transform:none;clip-path:polygon(calc(48% - 1px) 0,48% 0,38% 100%,calc(38% - 1px) 100%)}
}

/* Mobile switches stay at the heading. No moving sheets or clipped form text. */
.px-auth-tabs{display:none}
.px-auth-stage[data-switching=true]>.login-panel:not([hidden]){opacity:0;pointer-events:none}
@media(max-width:900px){
 .px-auth-stage{perspective:none}
 .px-auth-stage .px-auth-welcome{display:none}
 .px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding:27px 25px 30px;backface-visibility:visible}
 .px-auth-stage>.login-panel h1{font-size:29px;line-height:1.14;margin:10px 0 18px;scroll-margin-top:100px}
 .px-auth-stage>.login-panel .px-auth-tabs{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 19px;border:1px solid #d6becd;border-radius:12px;background:#eadee7;box-sizing:border-box}
 .px-auth-stage>.login-panel .px-auth-tabs[hidden]{display:none}
 .px-auth-tabs button{position:relative;z-index:1;transition:color .25s ease;min-height:44px;padding:10px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:#68465d;font:600 13px/1.4 Arial,sans-serif;cursor:pointer}
 .px-auth-tabs button[aria-selected=true]{color:#fff8ed}
 .px-auth-tabs button:focus-visible{outline:2px solid #967542;outline-offset:2px}
 .px-auth-stage #loginPanel .actions>[data-auth-view=signupPanel],.px-auth-stage #signupPanel>.auth-switch{display:none}
 .px-auth-stage>.login-panel .auth-free-note{color:#644a5c;margin:0 0 16px;padding:9px 11px;border:1px solid #d9c5d1;border-radius:8px;background:#f0e6ec;font-size:12px;line-height:1.6}
 .px-auth-stage #loginPanel .actions{justify-content:flex-end;margin-top:10px}
}
@media(max-width:360px){.px-auth-stage>.login-panel,.px-auth-stage[data-auth-mode=signup]>.login-panel{padding:23px 19px 26px}.px-auth-stage>.login-panel h1{font-size:27px}}

/* The pill is one shared layer, so it glides rather than recolouring two buttons. */
@media(max-width:900px){
 .px-auth-indicator{position:absolute;z-index:0;left:4px;top:4px;bottom:4px;width:calc((100% - 12px)/2);box-sizing:border-box;border:1px solid #79566f;border-radius:9px;background:#69465f;box-shadow:0 4px 10px #50334626;pointer-events:none}
 .px-auth-stage[data-switching=true]>.login-panel:not([hidden]){opacity:1;pointer-events:auto}
 .px-auth-stage :is(#loginPanel,#signupPanel)>h1{min-height:2.28em}
}
@media(prefers-reduced-motion:reduce){.px-auth-tabs button,.px-auth-indicator{transition:none!important;animation:none!important}}
