/* Public UI only. Reuses the approved portal palette, typography, inputs and buttons. */
.cfx-partner-portal[data-cfx-portal].cx-auth{background:#f7f8fa;min-height:100vh;border-radius:0}
.cfx-partner-portal[data-cfx-portal].cx-auth [hidden]{display:none!important}
.cfx-partner-portal[data-cfx-portal] .cx-auth-layout{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}
.cfx-partner-portal[data-cfx-portal] .cx-auth-aside{padding:40px 30px;display:flex;flex-direction:column;border-right:1px solid #e7e9ee;background:#fff url('../images/sidebar-alps.jpg') center bottom/100% auto no-repeat}
.cfx-partner-portal[data-cfx-portal] .cx-auth-aside .cx-logo{width:190px;max-width:100%}
.cfx-partner-portal[data-cfx-portal] .cx-auth-eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#cf1023;margin:16px 0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-intro{margin:65px 0 130px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-rule{display:block;width:44px;height:3px;background:#d41126;margin-bottom:23px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-intro h2{font-size:31px;letter-spacing:-1px;line-height:1.3;margin:0 0 20px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-intro p{color:#626b79;line-height:1.8;font-size:13px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-swiss{display:flex;align-items:center;gap:13px;margin-top:auto;padding-top:35px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-swiss span{background:#d10d25;color:#fff;padding:2px 7px;font-size:26px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-swiss b{font-size:10px;letter-spacing:2px;line-height:1.6}
.cfx-partner-portal[data-cfx-portal] .cx-auth-main{padding:30px clamp(18px,5vw,80px);min-width:0;background:radial-gradient(ellipse at top right,#d5102410,transparent 48%)}
.cfx-partner-portal[data-cfx-portal] .cx-auth-topline{max-width:780px;margin:0 auto 28px;display:flex;justify-content:space-between;gap:12px;font-size:10px;font-weight:600;letter-spacing:1px;color:#6b7280;line-height:1.7}
.cfx-partner-portal[data-cfx-portal] .cx-auth-topline span{white-space:nowrap;letter-spacing:0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-card{max-width:780px;margin:0 auto;padding:32px 38px;background:#fff;border:1px solid #e6e8ee;border-radius:14px;box-shadow:0 12px 35px #25303b08}
.cfx-partner-portal[data-cfx-portal] .cx-auth-demo{font-size:11px;line-height:1.7;color:#6b7280;border-bottom:1px solid #eceef2;padding-bottom:16px;margin-bottom:26px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-heading{margin-bottom:30px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-heading h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:10px 0 12px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-heading p{font-size:13px;color:#667080;line-height:1.7}
.cfx-partner-portal[data-cfx-portal] .cx-auth-card fieldset{border:0;padding:0;margin:0 0 28px;min-width:0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-card legend{font-size:15px;font-weight:700;margin-bottom:18px;padding:0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-fields label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500;min-width:0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-fields input{width:100%;min-width:0;background:#fafbfc;border:1px solid #dfe3e9;border-radius:7px;min-height:44px;padding:11px 12px;font-size:13px;color:#202632}
.cfx-partner-portal[data-cfx-portal] .cx-auth-fields input:focus{border-color:#cf1023;outline:2px solid #cf10231a;outline-offset:1px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;margin:18px 0 24px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-check input{width:17px;height:17px;flex:0 0 17px;margin:2px 0 0;accent-color:#cf1023}
.cfx-partner-portal[data-cfx-portal] .cx-auth-privacy{font-size:12px;border:1px solid #eceef2;border-radius:7px;margin-bottom:18px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-privacy summary{cursor:pointer;padding:12px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-privacy p{padding:0 12px 12px;color:#667080;line-height:1.8}
.cfx-partner-portal[data-cfx-portal] .cx-auth-submit{width:100%;justify-content:center;min-height:46px;font-size:14px;gap:12px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-bottom{text-align:center;font-size:12px;color:#6b7280;line-height:2;margin-top:20px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-bottom button{font-size:12px;margin-left:5px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-login-fields{grid-template-columns:1fr;margin-bottom:25px}
.cfx-partner-portal[data-cfx-portal] [data-auth-result]{background:#f4f7f5;border:1px solid #dce7df;border-radius:8px;color:#28543b;font-size:13px;line-height:1.8;padding:16px;margin-bottom:20px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-footer{max-width:780px;margin:24px auto 0;font-size:11px;color:#7b8290;text-align:center}
@media(max-width:900px){
.cfx-partner-portal[data-cfx-portal] .cx-auth-layout{grid-template-columns:220px minmax(0,1fr)}
.cfx-partner-portal[data-cfx-portal] .cx-auth-aside{padding:30px 20px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-card{padding:26px}
}
@media(max-width:680px){
.cfx-partner-portal[data-cfx-portal] .cx-auth-layout{grid-template-columns:1fr}
.cfx-partner-portal[data-cfx-portal] .cx-auth-aside{padding:18px 22px;background:#fff;border-right:0;border-bottom:1px solid #e7e9ee}
.cfx-partner-portal[data-cfx-portal] .cx-auth-aside .cx-logo{width:155px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-aside>.cx-auth-eyebrow{margin:8px 0 0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-intro,.cfx-partner-portal[data-cfx-portal] .cx-auth-swiss{display:none}
.cfx-partner-portal[data-cfx-portal] .cx-auth-main{padding:22px 14px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-topline{font-size:9px;margin-bottom:18px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-topline span{display:none}
.cfx-partner-portal[data-cfx-portal] .cx-auth-card{padding:24px 20px;border-radius:11px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-heading h1{font-size:26px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-fields{grid-template-columns:1fr;gap:16px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-fields input{font-size:16px}
}

/* Registration sidebar only; login, confirmation and the dashboard retain their styling. */
.cfx-partner-portal[data-cfx-portal] .cx-auth-register-intro{display:none}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside{background:#fff}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside>.cx-auth-eyebrow,
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-intro,
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-swiss{display:none}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-register-intro{display:block;margin:66px 0 40px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-register-rule{display:block;width:48px;height:4px;background:#e30613;margin-bottom:27px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-register-intro h2{margin:0 0 38px;font-size:32px;font-weight:700;line-height:1.22;letter-spacing:-1.1px;color:#11151d}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits{list-style:none;margin:0;padding:0;display:grid;gap:25px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits li{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:16px;margin:0;padding:0;color:#191d24;font-size:14px;font-weight:600;line-height:1.5}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits svg{display:block;width:32px;height:32px;color:#e30613;overflow:visible}
@media(min-width:681px) and (max-width:900px){
.cfx-partner-portal[data-cfx-portal] .cx-auth-register-intro h2{font-size:27px;letter-spacing:-1px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits li{grid-template-columns:27px minmax(0,1fr);gap:11px;font-size:13px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits svg{width:27px;height:27px}
}
@media(max-width:680px){
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside{padding:24px 22px}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-register-intro{margin:26px 0 0}
.cfx-partner-portal[data-cfx-portal] .cx-auth-register-rule{width:40px;height:3px;margin-bottom:18px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-register-intro h2{font-size:28px;line-height:1.2;margin-bottom:24px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 16px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits li{grid-template-columns:25px minmax(0,1fr);gap:10px;font-size:13px}
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits svg{width:25px;height:25px}
}
@media(max-width:400px){
.cfx-partner-portal[data-cfx-portal] .cx-auth-benefits{grid-template-columns:1fr;gap:17px}
}

/* Full-width alpine scenery belongs to the sidebar itself, never a separate image card. */
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside{position:relative;align-self:stretch;overflow:hidden}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside .cx-logo{height:98px;flex:0 0 98px}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-register-intro{margin-top:50px;position:relative;z-index:1}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside::after{content:"";display:block;position:absolute;left:0;right:0;top:var(--cx-registration-mountain-top,521px);bottom:0;width:100%;height:auto;aspect-ratio:auto;margin:0;background:url('../images/registration-alps-tall.png') center top/cover no-repeat;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%);mask-image:linear-gradient(to bottom,transparent,#000 12%)}
@media(max-width:680px){
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside .cx-logo{height:80px;flex-basis:80px}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-register-intro{margin-top:24px}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside{padding-bottom:calc(24px + 75%)}
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"] .cx-auth-aside::after{top:calc(var(--cx-registration-mountain-top,521px) + 45px);background-position:center bottom}
}

/* Keep the Swiss flag visible when login or confirmation crops the scenery. */
.cfx-partner-portal[data-cfx-portal][data-auth-sidebar="registration"]:is([data-sidebar-view="login"],[data-sidebar-view="confirmation"]) .cx-auth-aside::after{top:var(--cx-registration-mountain-top,579px);background-position:center bottom}
