/* Scoped guest registration and one-time activation, same customer portal language. */
body.portal-login .portal-signup-wrap{max-width:min(850px,calc(100vw - 28px))}
body.portal-login .portal-signup-card{padding:25px 28px}
body.portal-login .portal-signup-form{display:grid;gap:13px}
body.portal-login .portal-registration-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.portal-login .portal-signup-card label,body.portal-login .portal-identity-card label{display:grid;gap:6px}
body.portal-login .portal-signup-card :is(input,select),body.portal-login .portal-identity-card input{
 display:block;min-height:42px;width:100%;box-sizing:border-box;
 border:1px solid var(--line);border-radius:9px;background:var(--surface);
 color:var(--ink);padding:9px 11px;font:inherit}
body.portal-login .portal-signup-card :is(input,select):focus-visible,
body.portal-login .portal-identity-card input:focus-visible{outline:2px solid var(--portal-accent);outline-offset:2px}
body.portal-login .portal-signup-card label small{font-size:11px;color:var(--muted);font-weight:500}
body.portal-login .portal-registration-notice:empty,body.portal-login .portal-error:empty{display:none}
body.portal-login .portal-registration-notice:not(:empty){font-size:13px;line-height:1.6;
 padding:11px 13px;border-radius:10px;background:var(--portal-soft);
 color:var(--ink);border:1px solid var(--line)}
body.portal-login .portal-registration-product{margin:5px 0 0;display:grid;gap:11px;
 padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}
body.portal-login .portal-registration-footnote{font-size:11px;line-height:1.6;margin-top:15px}
body.portal-login .portal-identity-card{max-width:560px}
body.portal-login .portal-identity-card #portal-identity-passwords{display:grid;gap:13px}
body.portal-login .portal-identity-card #portal-identity-passwords[hidden]{display:none}
body.portal-login .portal-signup-card button[type=submit],body.portal-login .portal-identity-card button[type=submit]{min-height:44px}
body.portal-login .portal-signup-card button:disabled,body.portal-login .portal-identity-card button:disabled{opacity:.55}
@media(max-width:680px){
 body.portal-login .portal-registration-row{grid-template-columns:1fr}
 body.portal-login .portal-signup-card{padding:16px 15px}
 body.portal-login .portal-registration-product{padding:11px}
}

body.portal-login #portal-registration-form[hidden],
body.portal-login #portal-sudodrive-request-form[hidden]{display:none!important}

/* Form controls marked hidden must stay hidden with grid-layout labels. */
body.portal-login .portal-signup-card label[hidden],
body.portal-login .portal-signup-card form[hidden],
body.portal-login .portal-identity-card [hidden]{display:none!important}

/* SudoDrive free offer: neutral customer-portal surfaces in both themes.
   Keep the acknowledgement a NORMAL checkbox, not a full-width text input. */
body.portal-login .portal-signup-card .portal-registration-product{
 background:var(--surface-2);padding:16px;gap:13px;
 border-color:var(--line);border-radius:13px;
}
body.portal-login .portal-signup-card .sd-free-offer{
 display:grid;gap:13px;padding:17px 18px;
 border:1px solid var(--line);border-radius:12px;
 background:var(--surface);color:var(--ink);
}
body.portal-login .portal-signup-card .sd-free-offer[hidden]{display:none!important}
body.portal-login .portal-signup-card .sd-free-offer-head{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
}
body.portal-login .portal-signup-card .sd-free-offer-title{
 display:grid;gap:1px;min-width:0;
}
body.portal-login .portal-signup-card .sd-free-offer-eyebrow{
 font-size:10px;letter-spacing:.11em;font-weight:800;color:var(--deep-orange);
}
body.portal-login .portal-signup-card .sd-free-offer-title strong{
 font-size:16px;line-height:1.4;font-weight:800;color:var(--ink);
}
body.portal-login .portal-signup-card .sd-free-offer-title>span:last-child{
 font-size:12px;color:var(--muted);
}
body.portal-login .portal-signup-card .sd-free-offer-price{
 display:inline-flex;align-items:center;justify-content:center;
 flex:none;padding:7px 12px;border-radius:999px;
 border:1px solid var(--line);background:var(--portal-soft);
 color:var(--deep-orange);font-size:16px;font-weight:850;white-space:nowrap;
}
body.portal-login .portal-signup-card .sd-free-offer-periods{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
}
body.portal-login .portal-signup-card .sd-free-offer-periods>div{
 min-width:0;display:grid;gap:3px;
 padding:10px 12px;border-radius:10px;
 background:var(--surface-2);border:1px solid var(--line);
}
body.portal-login .portal-signup-card .sd-free-offer-periods strong{
 color:var(--ink);font-size:17px;line-height:1.25;font-weight:800;
}
body.portal-login .portal-signup-card .sd-free-offer-periods span{
 color:var(--muted);font-size:12px;line-height:1.4;
}
body.portal-login .portal-signup-card .sd-free-offer-note{
 margin:0;color:var(--muted);font-size:12px;line-height:1.5;
}
body.portal-login .portal-signup-card label.sd-free-offer-consent{
 display:flex;align-items:flex-start;gap:11px;margin:0;
 padding:13px 0 0;border-top:1px solid var(--line);
 color:var(--ink);font-size:13px;font-weight:520;line-height:1.55;
 cursor:pointer;
}
body.portal-login .portal-signup-card label.sd-free-offer-consent span{
 display:block;flex:1;min-width:0;
}
body.portal-login .portal-signup-card #sudodrive-early-access-accept{
 appearance:auto;display:inline-block;
 box-sizing:border-box;width:18px;height:18px;
 min-width:18px;min-height:18px;max-width:18px;max-height:18px;
 flex:0 0 18px;padding:0;margin:1px 0 0;border-radius:4px;
 accent-color:var(--portal-accent);cursor:pointer;
}
body.portal-login .portal-signup-card #sudodrive-early-access-accept:focus-visible{
 outline:2px solid var(--portal-accent);outline-offset:3px;
}
body.portal-login .portal-signup-card .sd-free-offer-consent:has(input:checked) span{
 font-weight:650;
}
body.portal-login .portal-signup-card .portal-registration-product:focus-within{
 border-color:var(--line);
}
@media(max-width:540px){
 body.portal-login .portal-signup-card .portal-registration-product{padding:11px}
 body.portal-login .portal-signup-card .sd-free-offer{padding:13px}
 body.portal-login .portal-signup-card .sd-free-offer-periods{
  grid-template-columns:1fr;
 }
 body.portal-login .portal-signup-card .sd-free-offer-periods>div{
  padding:9px 11px;
 }
}

/* Dedicated post-submission confirmation: no signup form or stacked cards.
   Uses the same neutral surfaces in the customer portal's light/dark themes. */
body.portal-login .portal-confirm-wrap{
 max-width:min(700px,calc(100vw - 24px));margin-inline:auto;
 padding-block:30px 50px;
}
body.portal-login .portal-confirm-card{
 display:grid;justify-items:start;gap:13px;padding:34px 38px;
 border:1px solid var(--line);border-radius:18px;background:var(--surface);
}
body.portal-login .portal-confirm-card h1{
 margin:0;font-size:clamp(25px,4vw,34px);letter-spacing:-.028em;line-height:1.15;
}
body.portal-login .portal-confirm-check{
 display:grid;place-items:center;width:58px;height:58px;border-radius:17px;
 color:var(--portal-accent);background:var(--portal-soft);
 border:1px solid var(--line);font-size:28px;font-weight:800;
}
body.portal-login .portal-confirm-intro{
 margin:0;color:var(--muted);font-size:14px;line-height:1.68;
}
body.portal-login .portal-confirm-steps{
 width:100%;margin-top:11px;padding:19px 20px;border-radius:14px;
 background:var(--surface-2);border:1px solid var(--line);
}
body.portal-login .portal-confirm-steps h2{
 margin:0 0 14px;font-size:13px;letter-spacing:.01em;
}
body.portal-login .portal-confirm-steps ol{
 display:grid;gap:14px;margin:0;padding:0;list-style:none;
}
body.portal-login .portal-confirm-steps li{
 display:flex;align-items:flex-start;gap:13px;margin:0;padding:0;line-height:1.4;
}
body.portal-login .portal-confirm-step{
 flex:0 0 28px;display:grid;place-items:center;
 width:28px;height:28px;border-radius:10px;
 background:var(--surface);border:1px solid var(--line);
 color:var(--portal-accent);font-weight:800;font-size:12px;
}
body.portal-login .portal-confirm-steps li>span:last-child{display:grid;gap:3px}
body.portal-login .portal-confirm-steps strong{font-size:13px}
body.portal-login .portal-confirm-steps small{font-size:12px;color:var(--muted)}
body.portal-login .portal-confirm-hint{
 width:100%;padding:15px 17px;border:1px solid var(--line);
 border-radius:12px;background:var(--portal-soft);font-size:13px;
}
body.portal-login .portal-confirm-hint p{margin:5px 0 0;color:var(--muted);line-height:1.6}
body.portal-login .portal-confirm-back{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;padding:11px 19px;margin-top:7px;border-radius:10px;
 text-decoration:none;font-weight:750;font-size:13px;
 background:var(--portal-accent);color:var(--portal-accent-on);
}
body.portal-login .portal-confirm-back:hover{filter:brightness(1.06)}
body.portal-login .portal-confirm-legal{
 display:flex;justify-content:center;gap:11px;margin:20px 0 0;
 color:var(--muted);font-size:12px;
}
body.portal-login .portal-confirm-legal a{color:inherit}
@media(max-width:580px){
 body.portal-login .portal-confirm-wrap{padding-block:15px 30px}
 body.portal-login .portal-confirm-card{padding:24px 19px;gap:12px}
 body.portal-login .portal-confirm-steps{padding:16px 14px}
}
