/* Customer landing only. Shared staff styles and invoice styling are unchanged. */
body.customer-login-page{margin:0;min-height:100vh;background:#f3f6fa;color:#102b54;font-family:Arial,Helvetica,sans-serif;display:flex;flex-direction:column}
.customer-welcome{background:linear-gradient(105deg,rgba(246,249,252,.96),rgba(245,249,253,.79)),url('assets/customer-ship.jpg') center/cover fixed!important}
.customer-login-header{padding:24px clamp(20px,4vw,64px);background:rgba(255,255,255,.92);border-bottom:1px solid #dfe5ee;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;box-shadow:none}
.customer-brand-mark{display:flex;align-items:center;gap:18px;text-decoration:none;color:#102b54;flex-shrink:0}
.emblem-frame{display:block;position:relative;overflow:hidden;width:110px;height:74px;flex-shrink:0}.emblem-frame img{position:absolute;width:157px;height:auto;max-width:none;left:-35px;top:-6px}
.customer-brand-name{display:block;font-size:36px;line-height:1.1;letter-spacing:-1.2px;font-weight:800}.customer-brand-sub{display:block;margin-top:5px;letter-spacing:6px;color:#c8102e;font-size:12px;text-align:center;font-weight:600}
.customer-header-actions{display:flex;gap:22px;align-items:center}.customer-header-actions a{color:#102b54;text-decoration:none;font-weight:600}.lang-toggle{display:flex;background:transparent;border:0;gap:0}.lang-toggle button{background:transparent;color:#637087;border:0;padding:12px 10px;min-height:44px;border-radius:0;font-size:14px}.lang-toggle button.active{background:transparent;color:#102b54;font-weight:700;box-shadow:inset 0 -2px #c8102e}
.customer-login-shell{width:min(1280px,100%);max-width:1280px;margin:auto;padding:52px 40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);gap:70px;align-items:center;flex:1}
.customer-hero h1{font-size:clamp(42px,5.3vw,72px);line-height:1.08;letter-spacing:-2px;margin:16px 0 24px;font-weight:800;color:#102b54}.customer-hero h1 span:last-child{color:#c8102e}.hero-eyebrow{font-size:12px;letter-spacing:2.5px;font-weight:700;color:#63718a}.hero-copy{font-size:23px;line-height:1.5;max-width:460px;color:#405572}.hero-features{display:flex;gap:35px;margin-top:46px}.hero-features>div{display:flex;flex-direction:column;gap:14px;font-weight:600;font-size:15px}.hero-features>div+div{border-left:1px solid #c3cedc;padding-left:35px}.hero-features svg{width:36px;height:36px;fill:none;stroke:#173c69;stroke-width:1.6}
.customer-auth-card{width:100%;max-width:none;margin:0;padding:32px 34px 24px;border-radius:18px;border:1px solid #e4e9ef;border-top:6px solid #ce1030;background:#fff;box-shadow:0 18px 55px #1638591c;text-align:left;min-width:0}.auth-eyebrow{font-size:12px;letter-spacing:1.4px;font-weight:700;color:#737f91;margin:0 0 16px}.customer-auth-card h2{font-size:36px;letter-spacing:-1px;margin:0 0 8px;color:#102b54}.customer-auth-sub{font-size:16px;line-height:1.5;color:#64748b;margin:0 0 24px}.auth-tabs{display:flex;border-bottom:1px solid #dce3ec;margin-bottom:24px}.auth-tabs button{flex:1;border:0;border-bottom:3px solid transparent;background:none;padding:14px 5px;font-size:15px;font-weight:700;color:#718095;cursor:pointer}.auth-tabs button[aria-selected=true]{color:#102b54;border-bottom-color:#cf1030}.customer-auth-card label{display:block;text-align:left;margin:18px 0 8px;font-size:14px;font-weight:600;color:#173254}.customer-auth-card input{width:100%;height:49px;min-width:0;padding:12px 14px;border:1px solid #ced7e3;border-radius:8px;font-size:16px;background:#fff;color:#142d4f;box-sizing:border-box}.password-wrap{position:relative}.password-wrap input{padding-right:82px}.password-toggle{position:absolute;right:3px;top:3px;height:43px;border:0;background:transparent;color:#34567c;font-size:12px;padding:0 10px;cursor:pointer}.customer-main-btn{width:100%;margin-top:24px;border:0;border-radius:8px;background:#102e62!important;color:#fff;min-height:50px;font-size:16px;font-weight:700;padding:13px;cursor:pointer}.customer-main-btn:disabled{opacity:.6;cursor:wait}.auth-help{text-align:center;color:#6c788a;font-size:13px;border-top:1px solid #edf0f4;padding-top:20px;margin:24px 0 0}.auth-help a{color:#145ca1;font-weight:600;text-decoration:none}.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.register-description,.input-hint{font-size:13px;color:#67758b;line-height:1.5}.input-hint{margin:8px 0}.msg:empty{display:none}.customer-auth-card .msg{overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin-top:12px}.customer-login-footer{display:flex;justify-content:space-between;gap:18px;padding:22px clamp(20px,4vw,64px);background:rgba(255,255,255,.75);border-top:1px solid #dde5ed;color:#63738a;font-size:12px;text-align:left}.customer-login-footer a{color:#34587b;text-decoration:none}
.customer-login-page:not(.customer-welcome) .customer-login-shell{display:block;width:min(1200px,100%)}.customer-login-page:not(.customer-welcome) .customer-hero{display:none}.hidden{display:none!important}
.customer-login-page button:focus-visible,.customer-login-page a:focus-visible,.customer-login-page input:focus-visible{outline:3px solid #3988cf;outline-offset:3px}
@media(max-width:850px){.customer-login-shell{gap:32px;padding:36px 24px;grid-template-columns:minmax(0,1fr) minmax(320px,400px)}.customer-brand-name{font-size:28px}.emblem-frame{width:83px;height:56px}.emblem-frame img{width:119px;left:-27px;top:-4px}.customer-brand-mark{gap:10px}.customer-header-actions{gap:10px}.customer-hero h1{font-size:44px}.hero-copy{font-size:19px}.hero-features{gap:16px}.hero-features>div+div{padding-left:16px}.customer-auth-card{padding:28px 24px}}
@media(max-width:680px){.customer-login-header{padding:16px;gap:12px;flex-wrap:wrap}.customer-brand-name{font-size:28px}.customer-brand-sub{font-size:10px;letter-spacing:5px}.customer-header-actions{width:100%;justify-content:space-between;border-top:1px solid #edf0f4;padding-top:5px}.customer-login-shell{display:flex;flex-direction:column;gap:22px;padding:26px 18px 36px;width:100%;box-sizing:border-box}.customer-hero{width:100%;text-align:center}.hero-eyebrow{display:none}.customer-hero h1{font-size:36px;letter-spacing:-1px;margin:4px 0 12px}.customer-hero h1 br{display:none}.customer-hero h1 span+span:before{content:' '}.hero-copy{font-size:16px;margin:0 auto;max-width:290px}.hero-features{display:none}.customer-auth-card{max-width:460px;box-sizing:border-box;padding:25px 24px 22px}.customer-auth-card h2{font-size:30px}.customer-auth-sub{margin-bottom:12px}.auth-tabs{margin-bottom:15px}.customer-login-footer{flex-direction:column;align-items:center;text-align:center;gap:10px;font-size:11px}.customer-welcome{background-attachment:scroll!important}.customer-login-page:not(.customer-welcome) .customer-login-shell{display:block}}
.customer-login-header{width:100%;max-width:none;margin:0;box-sizing:border-box}.customer-auth-card h2,.customer-auth-sub{text-align:left}.customer-auth-sub{margin:8px 0 24px}.customer-hero h1 span:last-child:before{content:none}
@media(max-width:680px){.customer-hero h1 span:last-child:before{content:'\00a0'}}
.customer-brand-mark{margin:0}@media(max-width:680px){.customer-brand-mark{margin:0 auto}}

/* V24.2: keep session controls reachable at tablet widths and while scrolling. */
.customer-login-header{flex-wrap:wrap}.customer-header-actions{flex-wrap:wrap;justify-content:flex-end;margin-left:auto;min-width:0}
.customer-has-session .customer-login-header{position:sticky;top:0;z-index:100;background:#fff}
.customer-signout{white-space:nowrap!important;border:1px solid #c8102e!important;color:#a51d34!important;background:#fff3f5!important;min-height:44px;font-weight:700}
#customerSessionMessage:empty{display:none}#customerSessionMessage{width:100%;margin:4px 0 0;color:#a51d34;font-size:13px;text-align:right}
@media(max-width:680px){.customer-header-actions{justify-content:space-between}.customer-header-actions .customer-signout{margin-left:auto}.customer-has-session .customer-login-header{padding-top:10px;padding-bottom:10px}}
/* Clip horizontal decoration without creating a separate sticky scroll container. */
body.customer-login-page{overflow-x:clip!important;overflow-y:visible!important}
#customerPhone{margin:0 0 24px;padding:20px;max-width:100%;box-sizing:border-box;text-align:left}#customerPhone summary{font-weight:700;cursor:pointer}#customerPhone p{line-height:1.5}#customerPhone label{display:block;margin:14px 0 7px}#customerPhone input{display:block;width:100%;max-width:360px;box-sizing:border-box;font-size:16px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;margin-bottom:8px}#customerPhone button{margin-top:10px;min-height:44px}#phoneHint{display:block;color:#64748b}.phone-verified{color:#216c48;font-weight:700}
/* V24.7: soft package backdrop and compact verification step. */
.customer-welcome{background:#eef2f7!important;position:relative;isolation:isolate}.customer-welcome::before{content:'';position:fixed;inset:-12px;z-index:-2;background:url('assets/customer-boxes.jpg') center/cover no-repeat;filter:blur(5px);opacity:.3;pointer-events:none}.customer-welcome::after{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(100deg,rgba(246,249,252,.88),rgba(246,249,252,.55));pointer-events:none}.customer-auth-card{box-shadow:0 18px 55px #16385920}.customer-forgot{display:block;border:0;background:transparent;color:#17467a;font-size:14px;font-weight:600;padding:14px 0;min-height:44px;cursor:pointer}#customerPhone{border:1px solid #d6e4f1;border-left:4px solid #315f99;border-radius:14px;background:#f7faff;margin:20px 0;padding:18px}#customerPhone summary{color:#173a65;list-style:none;display:flex;align-items:center;gap:12px}#customerPhone summary:before{content:'SMS';font-size:11px;letter-spacing:1px;background:#173a65;color:#fff;border-radius:10px;padding:12px 8px}#customerRecovery input{width:100%}
/* V24.9: fixed cargo ship inside the portal; sign-in rotates daily. */
body.customer-login-page{position:relative;isolation:isolate;background:#eef2f7!important}
body.customer-login-page::before{content:'';position:fixed;inset:-12px;z-index:-2;background:url('assets/customer-ship.jpg') center/cover no-repeat;filter:blur(5px);opacity:.4;pointer-events:none}
body.customer-login-page::after{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(105deg,rgba(246,249,252,.76),rgba(246,249,252,.48));pointer-events:none}
body.customer-login-page.customer-welcome::before{background-image:var(--customer-daily-image,url('assets/customer-boxes.jpg'));opacity:.42}
body.customer-login-page.customer-welcome::after{background:linear-gradient(100deg,rgba(246,249,252,.85),rgba(246,249,252,.48))}
.customer-login-page:not(.customer-welcome) .cp-welcome,.customer-login-page:not(.customer-welcome) .cp-content>h2{color:#102b54}
@media print{body.customer-login-page::before,body.customer-login-page::after{display:none!important}}
