/* Only the ordinary public login gets this screen; recovery, signup and other dialogs retain their layout. */
#portalModal:has(.customer-auth-screen){background:#f3f5f8f5;backdrop-filter:blur(8px);padding:12px}
#portalModal .portal-dialog:has(.customer-auth-screen){width:min(530px,100%);max-height:calc(100dvh - 24px);padding:54px 0 20px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:hidden}
#portalModalBody:has(.customer-auth-screen){padding:0 10px 4px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
#portalModal .portal-dialog:has(.customer-auth-screen)>.dialog-x{top:4px;right:8px;background:#e9edf3;color:#65748a;border-radius:50%;width:40px;height:40px;z-index:12}
#portalModal .portal-dialog:has(.customer-auth-screen)>.dialog-x:hover{background:#dde5ef}
.customer-auth-screen,.customer-auth-screen *{box-sizing:border-box}
.customer-auth-screen{width:100%;max-width:440px;margin:0 auto;color:#273244}
.customer-auth-heading{text-align:center;margin:0 0 25px}
#portalModal .customer-auth-heading h3{margin:0 0 11px;font-size:clamp(25px,5vw,31px);line-height:1.3;font-weight:720;letter-spacing:-.6px;color:#263245}
.customer-auth-heading p{font-size:14px;line-height:1.6;color:#8390a1;margin:0}
.customer-auth-card{padding:31px 30px 27px;border:1px solid #e8ecf2;border-radius:28px;background:#fff;box-shadow:0 10px 36px #263f6210}
.customer-auth-screen .customer-auth-form{gap:17px;margin:0}
.customer-auth-screen .customer-auth-form>label{gap:9px;font-size:13px;font-weight:600;color:#59667a}
.customer-auth-screen .customer-auth-form input{width:100%;height:51px;border:1px solid #e0e8f3;border-radius:9px;padding:13px 15px;background:#f0f5fc;color:#2a3a50;font-size:15px;line-height:1.4;outline:none}
.customer-auth-screen .customer-auth-form input::placeholder{color:#96a4b7;font-size:14px;font-weight:400;opacity:1}
.customer-auth-screen .customer-auth-form input:focus{border-color:#6fa4ee;box-shadow:0 0 0 3px #3687f018}
.customer-auth-password{position:relative;display:block}
.customer-auth-screen .customer-auth-password input{padding-right:51px}
#portalModal .customer-auth-eye{position:absolute;top:5px;right:5px;display:grid;place-items:center;min-width:41px;width:41px;height:41px;padding:9px;background:transparent;border:0;border-radius:7px;color:#8c9bb0}
#portalModal .customer-auth-eye:hover{background:#e3ecf9;color:#547baa}
.customer-auth-eye svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.customer-auth-eye-slash{display:none}.customer-auth-eye[aria-pressed='true'] .customer-auth-eye-slash{display:block}
.customer-auth-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.customer-auth-security{display:flex;align-items:flex-start;gap:8px;margin:0;padding:12px;background:#f5f5f6;border-radius:14px;color:#8b98ab;font-size:12px;line-height:1.65}
.customer-auth-security svg{width:17px;height:17px;flex:0 0 17px;margin-top:2px;fill:none;stroke:#7f9cb9;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#portalModal .customer-auth-forgot{justify-self:end;width:auto;min-height:25px;margin:-5px 0 0;padding:0;border:0;background:transparent;color:#4786db;font-size:12px;font-weight:500;text-align:right}
#portalModal .customer-auth-forgot:hover{text-decoration:underline;background:transparent}
.customer-auth-screen #portalError{margin:0;font-size:12px}.customer-auth-screen #portalError:empty{display:none}
#portalModal .customer-auth-continue{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;height:51px;padding:12px 18px;border:1px solid #2f65d7;border-radius:999px;background:#2f65d7;color:#fff;font-size:15px;font-weight:650;box-shadow:0 4px 10px #2f65d71a}
#portalModal .customer-auth-continue:hover{background:#2658c4;border-color:#2658c4}
.customer-auth-continue>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-auth-passkey-slot:empty{display:none}
.customer-auth-screen #authPasskeySlot .customer-passkey-login{gap:10px;margin:0;padding:0;border:0}
.customer-auth-screen #authPasskeySlot .customer-passkey-help{display:none}
#portalModal .customer-auth-screen .customer-auth-passkey{width:100%;height:51px;padding:12px 15px;border:1px solid #dce3ec;border-radius:999px;background:#fff;color:#47576d;font-size:14px;font-weight:600;box-shadow:none}
#portalModal .customer-auth-screen .customer-auth-passkey:hover{background:#f8fbfe;border-color:#b9cde5}
.customer-auth-screen .customer-auth-passkey::before{content:'';width:23px;height:23px;flex:0 0 23px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327a87c' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4 11a8 8 0 0 1 16 0M7 11a5 5 0 0 1 10 0c0 5-1 8-3 10M10 11a2 2 0 0 1 4 0c0 5-.5 7-2 10M4 14c0 3-.5 5-1 7M7 14c0 3-.5 5-1 7M10 14c0 3-.5 5-1 7'/%3E%3C/svg%3E")}
.customer-auth-screen #authPasskeySlot .customer-passkey-status{font-size:12px;line-height:1.6}
.customer-auth-register{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:1px;font-size:12px;color:#9ca5b3}
#portalModal .customer-auth-register button{padding:0;min-height:25px;border:0;background:transparent;color:#4285df;font-size:13px;font-weight:600}
#portalModal .customer-auth-register button:hover{text-decoration:underline;background:transparent}
.customer-auth-policies{text-align:center;margin:22px auto 0;max-width:385px;padding:0 8px;color:#98a3b2;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.customer-auth-policies a{color:#3975d4;text-decoration:underline;text-decoration-color:#9fbce7;text-underline-offset:3px}
.customer-auth-screen button:focus-visible,.customer-auth-screen a:focus-visible{outline:3px solid #89b8f5;outline-offset:3px}
html[data-theme='dark'] #portalModal:has(.customer-auth-screen){background:#111b28f7}
html[data-theme='dark'] #portalModal .portal-dialog:has(.customer-auth-screen){background:transparent}
html[data-theme='dark'] #portalModal .portal-dialog:has(.customer-auth-screen)>.dialog-x{background:#26364a;color:#b5c3d7}
html[data-theme='dark'] .customer-auth-screen{color:#e4ebf5}
html[data-theme='dark'] #portalModal .customer-auth-heading h3{color:#e7eef9}
html[data-theme='dark'] .customer-auth-heading p,html[data-theme='dark'] .customer-auth-security{color:#9baabe}
html[data-theme='dark'] .customer-auth-security{background:#26354a}
html[data-theme='dark'] .customer-auth-card{background:#1d293a;border-color:#304057;box-shadow:0 10px 36px #0002}
html[data-theme='dark'] .customer-auth-screen .customer-auth-form>label{color:#c4cfe0}
html[data-theme='dark'] .customer-auth-screen .customer-auth-form input{background:#26374d;border-color:#3b506a;color:#e7effa}
html[data-theme='dark'] .customer-auth-screen .customer-auth-form input::placeholder{color:#91a3bd}
html[data-theme='dark'] #portalModal .customer-auth-eye:hover{background:#344b68;color:#c5d8ef}
html[data-theme='dark'] #portalModal .customer-auth-screen .customer-auth-passkey{background:#1d293a;border-color:#49607c;color:#d8e4f4}
html[data-theme='dark'] #portalModal .customer-auth-screen .customer-auth-passkey:hover{background:#263a52}
html[data-theme='dark'] .customer-auth-policies{color:#9aacc3}html[data-theme='dark'] .customer-auth-policies a{color:#8bb8ff}
@media(max-width:420px){#portalModal:has(.customer-auth-screen){padding:8px}#portalModal .portal-dialog:has(.customer-auth-screen){max-height:calc(100dvh - 16px);padding-top:50px;padding-bottom:12px}#portalModalBody:has(.customer-auth-screen){padding-right:4px;padding-left:4px;scrollbar-gutter:auto}.customer-auth-heading{margin-bottom:20px}.customer-auth-card{padding:24px 21px 22px;border-radius:24px}.customer-auth-screen .customer-auth-form{gap:15px}.customer-auth-policies{margin-top:18px}}
@media(max-height:500px){#portalModal .portal-dialog:has(.customer-auth-screen){max-height:calc(100dvh - 12px);padding-bottom:5px}.customer-auth-heading{margin-bottom:16px}.customer-auth-policies{margin-top:15px}}
