.crm-guest { color: #142344; }
.login-layout { position: relative; display: grid; grid-template-columns: minmax(0, 55%) minmax(0, 45%); min-height: 100vh; overflow: hidden; background: #fff; }
.login-brand { position: absolute; z-index: 4; top: 39px; left: clamp(32px, 3.6vw, 60px); font-size: 30px; }
.login-brand strong, .login-brand span { color: #fff; }
.login-story { position: relative; display: flex; align-items: center; grid-column: 1; grid-row: 1; width: calc(100% + 110px); min-height: 100vh; overflow: hidden; padding: 132px 150px 45px clamp(32px, 3.6vw, 60px); clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); color: #fff; background: #09276d; }
.login-stage-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.login-story-content { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: calc(100vh - 177px); width: 100%; }
.login-story h2 { max-width: 790px; color: #fff; font-size: clamp(44px, 4.4vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -3px; text-wrap: balance; }
.login-story h2 span { color: #45ecf3; }
.login-story-subtitle { margin-top: 17px; color: #e0ebff; font-size: clamp(18px, 1.45vw, 25px); line-height: 1.35; }
.login-preview { display: flex; flex-direction: column; gap: 17px; margin-top: clamp(32px, 5vh, 54px); padding-left: 45px; }
.login-preview .preview-row { display: flex; gap: 19px; align-items: center; width: min(420px, 100%); min-height: 115px; margin: 0; padding: 18px 23px; border: 1px solid #fff; border-radius: 16px; color: #142344; background: #f6faff; box-shadow: 0 16px 35px #03195536; transform: rotate(-2deg); }
.login-preview .preview-row-record { margin-left: 125px; background: #eaffff; transform: rotate(1deg); }
.login-preview .preview-row-continue { margin-left: 170px; background: #f6f2ff; transform: rotate(-1deg); }
.login-preview .preview-row .avatar { display: grid; flex: 0 0 70px; width: 70px; height: 70px; place-items: center; border-radius: 50%; font-size: 31px; }
.login-preview .preview-row .tone-orange { color: #e57239; background: #fff0e7; }
.login-preview .preview-row .tone-blue { color: #1d68df; background: #e1edff; }
.login-preview .preview-row .tone-sage { color: #087655; background: #dbf7e9; }
.login-preview .preview-row strong { color: #142344; font-size: 18px; font-weight: 700; }
.login-preview .preview-row p { margin-top: 3px; color: #435578; font-size: 16px; line-height: 1.28; }
.login-story-note { position: absolute; top: 33%; left: min(74%, 650px); width: 160px; color: #e9ffff; font-family: cursive; font-size: 25px; line-height: 1.08; transform: rotate(-8deg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.login-story-footer { max-width: 255px; margin-top: auto; padding-top: 34px; color: #f7fbff; font-size: 13px; font-weight: 650; letter-spacing: 3px; line-height: 1.8; text-transform: uppercase; }
.login-side { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: stretch; grid-column: 2; grid-row: 1; min-width: 0; padding: 38px clamp(38px, 3.4vw, 58px) 30px clamp(54px, 6.8vw, 110px); }
.login-content { max-width: 650px; margin: auto 0; padding: 100px 0 44px; }
.login-content .eyebrow { margin-bottom: 15px; color: #536784; font-size: 12px; font-weight: 750; letter-spacing: 2px; text-transform: uppercase; }
.login-content h1 { color: #132142; font-size: clamp(34px, 2.9vw, 51px); font-weight: 700; line-height: 1.1; letter-spacing: -1.7px; }
.login-content .login-subtitle { margin-top: 13px; color: #586985; font-size: clamp(16px, 1.45vw, 23px); }
.login-form { gap: 23px; margin-top: 36px; }
.login-types { display: flex; gap: 5px; padding: 4px; border: 1px solid #dbe5f3; border-radius: 11px; background: #f5f9fd; }
.login-types label { position: relative; flex: 1; }
.login-types input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.login-types span { display: block; padding: 11px 12px; border-radius: 8px; color: #566985; font-size: 16px; text-align: center; cursor: pointer; }
.login-types input:checked + span { color: #244675; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px #122c6b16; }
.login-types input:focus-visible + span { outline-color: #0c66cf; }
.login-form .field > label { color: #192943; font-size: 16px; font-weight: 650; }
.login-form input:not([type="radio"]) { min-height: 59px; padding: 14px 16px; border-color: #cddbf3; border-radius: 8px; background: #f0f5ff; color: #132142; font-size: 17px; }
.login-form .password-input input { padding-right: 54px; }
.login-form input:not([type="radio"]):focus-visible { outline-color: #246ee3; }
.login-form .password-input > .icon-button { color: #49648d; }
.login-form .button-primary, .login-module-activation .button-primary { width: 100%; min-height: 60px; margin-top: 2px; border: 0; border-radius: 9px; color: #102240; background: #d7ff6f; box-shadow: 0 5px 18px #a5dc4720; font-size: 17px; font-weight: 700; }
.login-form .button-primary:hover, .login-module-activation .button-primary:hover { color: #102240; background: #e6ffa3; }
.login-help { display: inline-block; margin: 27px 0 9px; color: #1a497e; font-size: 15px; }
.login-help:hover { color: #0a3580; }
.login-access-note { margin-top: 34px; color: #64738b; font-size: 14px; }
.login-footer { display: flex; flex-wrap: wrap; gap: 15px; border-top: 1px solid #dfe7f2; padding-top: 22px; color: #536681; font-size: 12px; }
.login-footer a:hover { color: #0b468f; }
.login-footer a:last-child { margin-left: auto; }
.login-module-activation { margin-top: 32px; }
@media (max-width: 1250px) {
  .login-story { padding-right: 120px; }
  .login-story h2 { font-size: clamp(40px, 4.2vw, 60px); }
  .login-preview { padding-left: 15px; }
  .login-preview .preview-row { width: min(350px, 100%); min-height: 96px; }
  .login-preview .preview-row-record { margin-left: 70px; }
  .login-preview .preview-row-continue { margin-left: 105px; }
  .login-preview .preview-row .avatar { flex-basis: 54px; width: 54px; height: 54px; font-size: 24px; }
  .login-story-note { display: none; }
  .login-side { padding-left: 55px; }
}
@media (max-width: 1450px) {
  .login-story-note { display: none; }
}
@media (max-width: 1180px) {
  .login-layout { display: flex; flex-direction: column; }
  .login-brand { top: 22px; left: 24px; font-size: 23px; }
  .login-story { order: 0; width: 100%; min-height: 204px; max-height: 204px; padding: 72px 24px 24px; clip-path: none; }
  .login-story-content { min-height: 0; }
  .login-story h2 { font-size: clamp(29px, 5vw, 39px); letter-spacing: -1.4px; }
  .login-story-subtitle { margin-top: 8px; font-size: 15px; }
  .login-preview, .login-story-note, .login-story-footer { display: none; }
  .login-side { order: 1; min-height: calc(100vh - 204px); padding: 0 24px 24px; }
  .login-content { width: min(560px, 100%); margin: 0 auto; padding: 34px 0 40px; }
  .login-content h1 { font-size: clamp(32px, 6vw, 42px); }
  .login-content .login-subtitle { font-size: 16px; }
  .login-form { margin-top: 25px; gap: 19px; }
  .login-form input:not([type="radio"]) { min-height: 54px; font-size: 16px; }
  .login-footer { width: min(560px, 100%); margin: auto auto 0; }
  .login-form .button-large { min-height: 56px; }
}
@media (max-width: 390px) {
  .login-story { min-height: 186px; max-height: 186px; }
  .login-story h2 { font-size: 28px; }
  .login-story-subtitle { font-size: 13px; }
  .login-side { min-height: calc(100vh - 186px); }
  .login-content { padding-top: 29px; }
  .login-types span { font-size: 14px; }
  .login-footer a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .login-form .button-primary, .login-module-activation .button-primary { transition: none; }
}
