.login-page:has(.kbw-story){
  color:#fff;
  background:radial-gradient(ellipse at 95% 0,#03badc 0,transparent 38%),linear-gradient(115deg,#2710eb 3%,#034de8 68%,#0766f2);
  min-height:100svh;
  isolation:isolate;
}
.login-page:has(.kbw-story)>header,.login-page .login-layout:has(.kbw-story){
  box-sizing:border-box;width:min(100% - 64px,1300px);margin-inline:auto;
}
.login-page:has(.kbw-story)>header{padding:22px 0 0;min-height:68px}
.login-page:has(.kbw-story) .wordmark,.login-page:has(.kbw-story) .wordmark small{color:white}
.login-page:has(.kbw-story) .brand-mark{background:#fff;color:#172de4}
.login-page .login-layout:has(.kbw-story){
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  align-items:center;min-height:calc(100svh - 76px);gap:clamp(28px,5vw,78px);padding:22px 0 30px;
}
.login-layout .kbw-story{
  position:relative;isolation:isolate;display:block;min-height:0;padding:0;
  background:none;border:0;box-shadow:none;overflow:visible;color:white;
}
.kbw-story::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:auto 10% -1% -3%;height:30%;border:clamp(12px,2vw,28px) solid #31dcfc;
  border-radius:50%;transform:rotate(-10deg);
  box-shadow:inset 0 0 18px #08a3ff,0 0 28px #43deff80;
}
.login-layout .kbw-story h1,.login-layout .kbw-story h2{color:#fff;line-height:1.05;letter-spacing:-.04em;margin:0 0 10px}
.login-layout .kbw-story h1{font-size:clamp(2rem,4.2vw,4.2rem)}
.login-layout .kbw-story h2{font-size:clamp(1.55rem,3.15vw,3.1rem)}
.login-layout .kbw-story p{font-size:clamp(1rem,1.6vw,1.4rem);line-height:1.4;color:#fff;margin:0 0 20px;max-width:34em}
.kbw-preview{margin:24px 0 12px;padding:16px;background:#f1f6ff;color:#11234c;border:1px solid white;border-radius:20px;box-shadow:0 16px 50px #0004}
.kbw-preview figcaption{font-weight:800;margin-bottom:10px}
.kbw-pipeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:left}
.kbw-pipeline>div{padding:8px;background:#e4edff;border-radius:10px;overflow-wrap:anywhere}
.kbw-pipeline>div:nth-child(2){background:#dff5ff}
.kbw-pipeline>div:nth-child(3){background:#dff7ef}
.kbw-pipeline>div>div{background:white;padding:8px;margin-top:6px;border-radius:7px}
.kbw-pipeline small{display:block;color:#42577d}
.login-layout:has(.kbw-story) .login-card{
  min-width:0;min-height:0;width:100%;box-sizing:border-box;
  padding:clamp(22px,3vw,46px);background:#fff;border-radius:26px;
  --text:#101d3c;--muted:#405476;--input:#f5f8ff;--line:#b4c5ed;
  color:var(--text);
}
.login-layout:has(.kbw-story) .login-card h2{font-size:clamp(1.65rem,3vw,3rem);letter-spacing:-.045em}
.login-layout:has(.kbw-story) .login-card .button.primary{background:linear-gradient(105deg,#0670ef,#143bec);color:white}
@media(max-width:760px){
  .login-page:has(.kbw-story)>header,.login-page .login-layout:has(.kbw-story){width:min(100% - 32px,540px)}
  .login-page .login-layout:has(.kbw-story){grid-template-columns:1fr;min-height:0;gap:34px}
  .login-layout:has(.kbw-story) .login-card{grid-row:1}
}

/* Entrada do CRM: cabeçalho e conteúdo compartilham a altura da janela. */
.login-page:has(.kbw-story){
  display:grid;
  grid-template-rows:auto 1fr;
  min-height:100svh;
  background:radial-gradient(ellipse at 112% -20%,#02bbef,transparent 49%),
    linear-gradient(111deg,#2607ee 0%,#1035e7 55%,#0567f8 100%);
}
.login-page:has(.kbw-story)>header,
.login-page .login-layout:has(.kbw-story){
  width:min(calc(100% - 96px), 1370px);
  max-width:none;
  margin:0 auto;
}
.login-page:has(.kbw-story)>header{padding:22px 0 10px}
.login-page .login-layout:has(.kbw-story){
  min-height:0;
  padding:24px 0 38px;
  gap:clamp(36px,5vw,80px);
}
.login-page:has(.kbw-story) .brand-mark{
  color:transparent;
  background:linear-gradient(115deg,#fff 42%,#21d8ff 43%);
  border-radius:0;
  box-shadow:none;
  clip-path:polygon(0 0,31% 0,31% 42%,66% 0,100% 0,62% 49%,100% 100%,63% 100%,33% 59%,0 100%);
}
.login-layout .kbw-story h1{font-size:clamp(2rem,4vw,4.15rem)}
.login-layout .kbw-story h2{font-size:clamp(1.55rem,3.15vw,3.25rem)}
.login-layout .kbw-story p{margin-bottom:22px}
.kbw-story::before{
  inset:auto 6% -2% 0;
  height:32%;
  transform:rotate(-13deg);
  border:0;
  background:linear-gradient(155deg,#38e9ff,#0060e9 29%,#09b8fb 52%,#145aff 75%,#53efff);
  box-shadow:inset 0 0 0 2px #9aefff88,inset 0 0 22px #49ecff,0 8px 32px #00199f85;
}
.kbw-preview{
  position:relative;
  margin:30px 12px 10px 9px;
  transform:rotate(1.5deg);
  background:linear-gradient(140deg,#fff,#deebff);
  box-shadow:0 18px 36px #03178770,inset 0 1px 0 white;
}
.kbw-pipeline strong::before{
  content:"";display:inline-block;width:.55em;height:.55em;
  margin-right:.35em;border-radius:50%;background:#1563ff;
}
.kbw-pipeline>div:nth-child(2) strong::before{background:#008ea9}
.kbw-pipeline>div:nth-child(3) strong::before{background:#008859}
.login-layout:has(.kbw-story) .login-card{padding:clamp(24px,3vw,42px);align-self:center}
.login-layout:has(.kbw-story) .login-card h2{line-height:1.08;margin-top:0}
.login-layout:has(.kbw-story) .login-card>p:last-child{margin-bottom:0}
@media (min-width:761px) and (max-height:780px){
  .login-page:has(.kbw-story)>header{padding-top:16px;min-height:60px}
  .login-page .login-layout:has(.kbw-story){padding-block:12px 24px}
  .login-layout .kbw-story p{margin-bottom:16px}
  .kbw-preview{margin-top:18px}
  .login-layout:has(.kbw-story) .login-card{padding:24px 30px}
  .login-layout:has(.kbw-story) .login-card form{gap:14px}
}
@media (max-width:760px){
  .login-page:has(.kbw-story)>header,.login-page .login-layout:has(.kbw-story){
    width:min(calc(100% - 32px),540px);
  }
  .login-page:has(.kbw-story)>header{flex-wrap:wrap;gap:8px}
  .login-page .login-layout:has(.kbw-story){padding:16px 0 34px}
  .kbw-preview{transform:none}
}
