/**
 * Client login v4 — centered hero + card (matches client-logi.html mock).
 * Scoped under body.client-login-v4 / .cl4 so it does not affect other auth pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700;800&display=swap');

body.client-login-v4 {
    --cl4-bg: #F6F7FB;
    --cl4-panel: #FFFFFF;
    --cl4-line: #E5E7F0;
    --cl4-primary: #2F6FEB;
    --cl4-primary-soft: #EAF1FE;
    --cl4-primary-ink: #1D4ED8;
    --cl4-purple: #8B5CF6;
    --cl4-amber: #2F6FEB;
    --cl4-amber-soft: #EAF1FE;
    --cl4-amber-ink: #1D4ED8;
    --cl4-good: #1F9D6B;
    --cl4-good-soft: #E4F7EE;
    --cl4-need: #E0473C;
    --cl4-need-soft: #FDEAE8;
    --cl4-text: #151C2C;
    --cl4-text-muted: #68708A;
    --cl4-text-faint: #9BA1B5;
    --cl4-nav-h: 66px;
    background: var(--cl4-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--cl4-text);
    -webkit-font-smoothing: antialiased;
}

body.client-login-v4 .bk-pub-header {
    display: none !important;
}

body.client-login-v4::before {
    content: "";
    position: fixed;
    top: -10%;
    left: 18%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 111, 235, 0.10), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

body.client-login-v4::after {
    content: "";
    position: fixed;
    top: -4%;
    right: 14%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 111, 235, 0.09), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.cl4 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cl4 a {
    color: inherit;
    text-decoration: none;
}

/* ---------- fixed header ---------- */
.cl4-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--cl4-nav-h);
    background: rgba(246, 247, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cl4-line);
}

.cl4-nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
}

.cl4-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl4-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: none;
    background: linear-gradient(135deg, var(--cl4-purple), var(--cl4-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl4-logo-mark svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4-logo-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--cl4-text);
}

.cl4-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cl4-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--cl4-text-muted);
}

.cl4-nav-link:hover {
    color: var(--cl4-text);
}

.cl4-nav-link--signup {
    color: #fff !important;
    background: var(--cl4-primary);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    transition: background 0.15s;
}

.cl4-nav-link--signup:hover {
    background: var(--cl4-primary-ink);
    color: #fff !important;
}

/* ---------- main ---------- */
.cl4-main {
    flex: 1;
    padding-top: calc(var(--cl4-nav-h) + 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cl4-hero {
    text-align: center;
    padding: 0 20px;
}

.cl4-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cl4-amber);
    background: var(--cl4-amber-soft);
    border: 1px solid rgba(47, 111, 235, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

.cl4-eyebrow svg {
    width: 12px;
    height: 12px;
    stroke: var(--cl4-amber);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--cl4-text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.cl4-hero p {
    font-size: 14px;
    color: var(--cl4-text-muted);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---------- step strip ---------- */
.cl4-step-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    width: 100%;
    margin: 34px auto 0;
    padding: 0 20px;
}

.cl4-strip-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.cl4-strip-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--cl4-line) 0 4px, transparent 4px 8px);
}

.cl4-strip-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--cl4-line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 1;
}

.cl4-strip-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--cl4-text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4-strip-step.is-active .cl4-strip-icon {
    background: var(--cl4-amber);
    border-color: var(--cl4-amber);
}

.cl4-strip-step.is-active .cl4-strip-icon svg {
    stroke: #fff;
}

.cl4-strip-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cl4-text);
}

.cl4-strip-sub {
    font-size: 10.5px;
    color: var(--cl4-text-faint);
    margin-top: 2px;
    line-height: 1.4;
    max-width: 110px;
}

/* ---------- card ---------- */
.cl4-card-zone {
    display: flex;
    justify-content: center;
    padding: 44px 20px 0;
    width: 100%;
}

.cl4-card {
    background: var(--cl4-panel);
    border: 1px solid var(--cl4-line);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 34px 36px;
    box-shadow: 0 28px 64px -18px rgba(47, 60, 120, 0.14);
}

.cl4-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.cl4-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cl4-amber-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.cl4-card-icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--cl4-amber);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4-card-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--cl4-text);
}

.cl4-card-sub {
    font-size: 12px;
    color: var(--cl4-text-faint);
    margin-top: 1px;
}

.cl4-field {
    margin-bottom: 15px;
}

.cl4-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--cl4-text);
    margin-bottom: 6px;
}

.cl4-input-wrap {
    position: relative;
}

.cl4-input-wrap input.form-control,
.cl4-input-wrap input {
    width: 100%;
    border: 1.5px solid var(--cl4-line);
    border-radius: 10px;
    padding: 11px 40px 11px 13px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--cl4-text);
    background: var(--cl4-bg);
    height: auto;
    box-shadow: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.cl4-input-wrap input:focus {
    outline: none;
    border-color: var(--cl4-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 235, 0.11);
}

.cl4-input-wrap input::placeholder {
    color: var(--cl4-text-faint);
}

.cl4-input-wrap #password {
    padding-right: 42px;
}

.cl4-eye-btn,
.cl4-input-wrap #togglePassword {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--cl4-text-faint);
    font-size: 15px;
    line-height: 1;
}

.cl4-eye-btn:hover,
.cl4-input-wrap #togglePassword:hover {
    color: var(--cl4-text-muted);
}

.cl4-field-err {
    font-size: 11px;
    color: var(--cl4-need);
    margin-top: 6px;
}

.cl4-field.is-error .cl4-input-wrap input,
.cl4-field .cl4-input-wrap input.is-invalid {
    border-color: var(--cl4-need);
    background: var(--cl4-need-soft);
}

.cl4-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.cl4-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--cl4-text-muted);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.cl4-remember input {
    accent-color: var(--cl4-primary);
    width: 14px;
    height: 14px;
    margin: 0;
}

.cl4-forgot {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cl4-primary-ink);
    white-space: nowrap;
}

.cl4-forgot:hover {
    text-decoration: underline;
}

.cl4-signin-btn {
    width: 100%;
    background: var(--cl4-primary);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(47, 111, 235, 0.28);
    transition: background 0.15s, box-shadow 0.15s;
}

.cl4-signin-btn:hover {
    background: var(--cl4-primary-ink);
    color: #fff;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}

.cl4-signin-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.cl4-divider .cl4-line {
    flex: 1;
    height: 1px;
    background: var(--cl4-line);
}

.cl4-divider span {
    font-size: 11.5px;
    color: var(--cl4-text-faint);
}


.cl4-help-row {
    margin-top: 22px;
    line-height: 1.7;
}
.cl4-create-row {
    text-align: center;
    font-size: 13px;
    color: var(--cl4-text-muted);
}

.cl4-create-row a {
    color: var(--cl4-primary-ink);
    font-weight: 700;
}

.cl4-create-row a:hover {
    text-decoration: underline;
}

.cl4-compat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.cl4-compat-label {
    font-size: 11px;
    color: var(--cl4-text-faint);
}

.cl4-compat-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--cl4-text-muted);
    background: var(--cl4-bg);
    border: 1px solid var(--cl4-line);
    border-radius: 5px;
    padding: 3px 9px;
}


.cl4-support-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cl4-text-muted);
    text-align: center;
    line-height: 1.6;
}

.cl4-support-line svg {
    width: 13px;
    height: 13px;
    stroke: var(--cl4-text-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.cl4-support-line a {
    color: var(--cl4-primary-ink);
    font-weight: 700;
}

.cl4-support-line a:hover {
    text-decoration: underline;
}

.cl4-branded-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.cl4-branded-logos img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}
.cl4-foot {
    text-align: center;
    font-size: 11.5px;
    color: var(--cl4-text-faint);
    padding: 32px 20px 28px;
}

.cl4-foot .bk-site-footer-legal {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

body.client-login-v4 .cl4 .alert,
body.client-login-v4 > .alert,
body.client-login-v4 .system_messages {
    position: relative;
    z-index: 2;
    max-width: 440px;
    margin: calc(var(--cl4-nav-h) + 12px) auto 0;
}

@media (max-width: 600px) {
    .cl4-step-strip {
        display: none;
    }

    .cl4-nav-inner {
        padding: 0 20px;
    }

    .cl4-logo-text {
        display: none;
    }

    .cl4-nav-link:not(.cl4-nav-link--signup) {
        display: none;
    }

    .cl4-card {
        padding: 28px 22px;
    }

    .cl4-hero h1 {
        font-size: 26px;
    }
}

/* Compact hero so the login form stays on the first screen.
   New wrapper class only — existing .cl4-* rules stay unchanged. */
.cl4--form-first .cl4-main {
    padding-top: calc(var(--cl4-nav-h) + 14px);
}

.cl4--form-first .cl4-eyebrow {
    padding: 4px 10px;
    margin-bottom: 8px;
}

.cl4--form-first .cl4-hero h1 {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cl4--form-first .cl4-hero p {
    font-size: 13px;
    line-height: 1.45;
    max-width: 520px;
}

.cl4--form-first .cl4-step-strip {
    margin-top: 14px;
}

.cl4--form-first .cl4-strip-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
}

.cl4--form-first .cl4-strip-icon svg {
    width: 14px;
    height: 14px;
}

.cl4--form-first .cl4-strip-step:not(:last-child)::after {
    top: 15px;
}

.cl4--form-first .cl4-card-zone {
    padding-top: 16px;
}

.cl4--form-first .cl4-card {
    padding: 24px 28px 28px;
}

.cl4--form-first .cl4-card-top {
    margin-bottom: 16px;
}

.cl4--form-first .cl4-field .form-control.error {
    border-color: var(--cl4-need);
    background: var(--cl4-need-soft);
}

.cl4--form-first .cl4-field .cl4-field-err,
.cl4--form-first .cl4-field label.error,
.cl4--form-first .cl4-field p.error,
.cl4--form-first #client_login_form .cl4-field-err {
    display: block;
    width: 100%;
    margin: 2px 0 0;
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
}

.cl4--form-first .cl4-field + .cl4-field-err,
.cl4--form-first .cl4-field + label.error {
    margin: -8px 0 8px;
}

@media (max-width: 600px) {
    .cl4--form-first .cl4-hero h1 {
        font-size: 20px;
    }

    .cl4--form-first .cl4-card {
        padding: 20px 16px 24px;
    }
}

/* MatterVanta logo image in topnav */
.cl4-logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(220px, 55vw);
    object-fit: contain;
}

/* ---------- Split marketing + card layout (new classes / modifiers only) ---------- */
.cl4.cl4--split,
.cl4--split {
    --cl4-navy: #0b1f3f;
    --cl4-shell-max: 1200px;
    --cl4-nav-h: 74px;
}

body.client-login-v4:has(.cl4--split) {
    background:
        radial-gradient(circle at 12% 20%, rgba(90, 169, 255, 0.16), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(47, 111, 235, 0.10), transparent 32%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 55%, #f8fbff 100%);
    scroll-padding-top: var(--cl4-nav-h);
}

body.client-login-v4:has(.cl4--split)::before,
body.client-login-v4:has(.cl4--split)::after {
    display: none;
}

.cl4.cl4--split .cl4-topnav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 220, 247, 0.7);
    box-shadow: 0 8px 24px rgba(25, 82, 170, 0.04);
    height: var(--cl4-nav-h);
}

.cl4.cl4--split .cl4-nav-inner {
    max-width: var(--cl4-shell-max);
    width: min(var(--cl4-shell-max), calc(100% - 56px));
    margin: 0 auto;
    padding: 0;
    gap: 24px;
}

.cl4.cl4--split .bk-auth-brand {
    gap: 12px;
}

.cl4.cl4--split .bk-auth-brand-mark {
    width: 42px;
    height: 42px;
}

.cl4.cl4--split .bk-auth-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cl4.cl4--split .bk-auth-brand-name-matter {
    color: #0b1f3f;
}

.cl4.cl4--split .bk-auth-brand-name-vanta {
    color: #2f6feb;
}

.cl4.cl4--split .bk-auth-brand-tagline {
    font-size: 11px;
    font-weight: 500;
    color: #6b7ea8;
    margin-top: 1px;
}

.cl4.cl4--split .cl4-nav-right {
    gap: 10px;
}

.cl4.cl4--split .cl4-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #0b1f3f;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.15s, color 0.15s;
}

.cl4.cl4--split .cl4-nav-link:hover {
    color: #2f6feb;
    background: #edf4ff;
}

.cl4.cl4--split .cl4-nav-link--signup {
    color: #fff !important;
    background: linear-gradient(90deg, #1e6ef2 0%, #4aa3ff 100%);
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(47, 111, 235, 0.22);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cl4.cl4--split .cl4-nav-link--signup:hover {
    background: linear-gradient(90deg, #1760db 0%, #3b94f5 100%);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(47, 111, 235, 0.28);
    transform: translateY(-1px);
}

.cl4.cl4--split .cl4-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding-top: calc(var(--cl4-nav-h));
    padding-bottom: 28px;
    min-height: 100vh;
}

.cl4.cl4--split .cl4-shell {
    width: min(var(--cl4-shell-max), calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
    gap: 36px 48px;
    align-items: start;
    padding-top: 0;
    min-height: 0;
}

.cl4.cl4--split .cl4-panel--marketing {
    padding: 4px 8px 0 4px;
}

.cl4.cl4--split .cl4-hero {
    text-align: left;
    padding: 0;
}

.cl4.cl4--split .cl4-hero h1 {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.4rem, 4.2vw, 3.55rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.04;
    color: var(--cl4-navy);
    margin: 0 0 12px;
}

.cl4.cl4--split .cl4-hero-accent {
    color: #1d6cff;
}

.cl4.cl4--split .cl4-hero p {
    max-width: 28rem;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #6b7ea8;
}

.cl4.cl4--split .cl4-hero-art {
    margin: 6px 0 2px;
    max-width: 580px;
    line-height: 0;
}

.cl4.cl4--split .cl4-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: normal;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(20, 40, 90, 0.14);
}

/* Lifestyle hero — more room after feature chips are removed from login */
.cl4.cl4--split .cl4-hero-art--lifestyle {
    margin: 18px 0 0;
    max-width: min(100%, 640px);
}

.cl4.cl4--split .cl4-hero-art--lifestyle img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(20, 40, 90, 0.16);
}

.cl4.cl4--split .cl4-feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 540px;
    margin-top: 14px;
    gap: 0;
}

.cl4.cl4--split .cl4-feature-chip {
    position: relative;
    text-align: center;
    padding: 4px 18px;
    border-right: 0;
}

.cl4.cl4--split .cl4-feature-chip:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14%;
    right: 0;
    width: 1px;
    height: 72%;
    background: linear-gradient(180deg, transparent, #c5d6f2 18%, #c5d6f2 82%, transparent);
}

.cl4.cl4--split .cl4-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    color: #2f6feb;
    background: #eaf2ff;
    border: 1px solid #d7e6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.cl4.cl4--split .cl4-feature-icon--secure,
.cl4.cl4--split .cl4-feature-icon--fast,
.cl4.cl4--split .cl4-feature-icon--support {
    background: #eaf2ff;
    color: #2f6feb;
    box-shadow: none;
}

.cl4.cl4--split .cl4-feature-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.cl4.cl4--split .cl4-feature-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--cl4-navy);
}

.cl4.cl4--split .cl4-panel--form {
    display: flex;
    justify-content: flex-end;
}

.cl4.cl4--split .cl4-card-zone {
    padding: 0;
    width: 100%;
}

.cl4.cl4--split .cl4-card {
    max-width: 480px;
    margin-left: auto;
    padding: 38px 42px 34px;
    border-radius: 28px;
    border: 1px solid rgba(201, 220, 247, 0.7);
    box-shadow: 0 24px 64px rgba(25, 82, 170, 0.13);
    background: #fff;
}

.cl4.cl4--split .cl4-card-top {
    margin-bottom: 6px;
}

.cl4.cl4--split .cl4-card-title {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--cl4-navy);
}

.cl4.cl4--split .cl4-card-sub {
    max-width: 22rem;
    font-size: 14.5px;
    line-height: 1.5;
    color: #7588b2;
    margin-top: 8px;
}

.cl4.cl4--split .cl4-card-accent {
    width: 48px;
    height: 4px;
    border-radius: 99px;
    background: #2f6feb;
    margin: 16px 0 24px;
}

.cl4.cl4--split .cl4-field {
    margin-bottom: 16px;
}

.cl4.cl4--split .cl4-field label {
    font-size: 13px;
    font-weight: 800;
    color: var(--cl4-navy);
    margin-bottom: 8px;
}

.cl4.cl4--split .cl4-input-wrap--icon .cl4-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b9bbf;
    pointer-events: none;
    line-height: 0;
    z-index: 1;
}

.cl4.cl4--split .cl4-input-wrap--icon .cl4-input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cl4.cl4--split .cl4-input-wrap input.form-control,
.cl4.cl4--split .cl4-input-wrap input,
.cl4.cl4--split .cl4-input-wrap--icon input.form-control,
.cl4.cl4--split .cl4-input-wrap--icon input {
    padding: 0 44px 0 46px;
    min-height: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #d5e3f7;
    font-size: 14.5px;
}

.cl4.cl4--split .cl4-input-wrap input:focus {
    border-color: #5b9cf9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 113, 245, 0.09);
}

.cl4.cl4--split .cl4-row-between {
    margin-bottom: 18px;
}

.cl4.cl4--split .cl4-remember {
    font-size: 13.5px;
    color: #687eab;
    font-weight: 600;
}

.cl4.cl4--split .cl4-remember input {
    width: 16px;
    height: 16px;
}

.cl4.cl4--split .cl4-forgot {
    font-size: 13.5px;
    color: #1d4ed8;
}

.cl4.cl4--split .cl4-signin-btn {
    min-height: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(90deg, #1e6ef2 0%, #4aa3ff 100%);
    box-shadow: 0 12px 24px rgba(47, 111, 235, 0.28);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    gap: 10px;
    padding: 0 22px;
    color: #fff;
}

.cl4.cl4--split .cl4-signin-btn:hover {
    background: linear-gradient(90deg, #1760db 0%, #3b94f5 100%);
    box-shadow: 0 14px 28px rgba(47, 111, 235, 0.34);
    transform: translateY(-1px);
    color: #fff;
}

.cl4.cl4--split .cl4-signin-btn:active {
    transform: translateY(0);
}

.cl4.cl4--split .cl4-signin-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4.cl4--split .cl4-help-row {
    margin-top: 18px;
}

.cl4.cl4--split .cl4-create-row {
    font-size: 13.5px;
    color: #7588b2;
}

.cl4.cl4--split .cl4-corner-waves {
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: min(42vw, 520px);
    height: auto;
    pointer-events: none;
    line-height: 0;
    background: none;
    transform: none;
    opacity: 1;
    overflow: hidden;
}

.cl4.cl4--split .cl4-corner-waves::after {
    display: none;
}

.cl4.cl4--split .cl4-corner-waves img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
}

.cl4.cl4--split .cl4-foot {
    position: relative;
    z-index: 1;
    padding: 0 20px 18px;
    color: #9ba8c4;
}

.cl4--branded .cl4-panel--marketing,
.cl4--branded .cl4-corner-waves {
    display: none;
}

.cl4--branded .cl4-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: calc(100vh - var(--cl4-nav-h) - 100px);
}

.cl4--branded .cl4-panel--form,
.cl4--branded .cl4-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .cl4.cl4--split .cl4-main {
        display: flex;
        justify-content: flex-start;
        min-height: 0;
        padding-top: calc(var(--cl4-nav-h) + 28px);
        padding-bottom: 36px;
    }

    .cl4.cl4--split .cl4-shell {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        width: min(520px, calc(100% - 32px));
        justify-items: center;
        padding-top: 0;
    }

    .cl4.cl4--split .cl4-panel--marketing {
        display: none;
    }

    .cl4.cl4--split .cl4-panel--form {
        justify-content: center;
        width: 100%;
    }

    .cl4.cl4--split .cl4-card {
        margin: 0 auto;
    }

    .cl4.cl4--split .cl4-corner-waves {
        width: min(70vw, 420px);
        height: auto;
    }
}

@media (max-width: 600px) {
    .cl4.cl4--split .cl4-nav-inner {
        width: calc(100% - 28px);
    }

    .cl4.cl4--split .cl4-nav-link:not(.cl4-nav-link--signup) {
        display: none;
    }

    .cl4.cl4--split .cl4-nav-link--signup {
        padding: 9px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .cl4.cl4--split .cl4-card,
    .cl4.cl4--split .cl4-field #email {
        scroll-margin-top: calc(var(--cl4-nav-h) + 12px);
    }

    .cl4.cl4--split .cl4-main {
        padding-top: calc(var(--cl4-nav-h) + 20px);
        padding-bottom: 28px;
    }

    .cl4.cl4--split .cl4-card {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .cl4.cl4--split .cl4-card-title {
        font-size: 1.65rem;
    }
}

@media (min-width: 1025px) and (max-height: 900px) {
    .cl4.cl4--split .cl4-main {
        justify-content: flex-start;
        padding-top: calc(var(--cl4-nav-h) + 16px);
    }

    .cl4.cl4--split .cl4-shell {
        align-items: start;
        min-height: 0;
        padding-top: 0;
        gap: 24px 40px;
    }

    .cl4.cl4--split .cl4-hero-art {
        max-width: 420px;
    }

    .cl4.cl4--split .cl4-hero-art--lifestyle {
        max-width: min(100%, 520px);
    }

    .cl4.cl4--split .cl4-hero h1 {
        font-size: clamp(1.9rem, 3vw, 2.6rem);
    }

    .cl4.cl4--split .cl4-feature-row {
        margin-top: 8px;
    }
}

@media (min-width: 1400px) {
    .cl4--split {
        --cl4-shell-max: 1280px;
    }
}

/* ---------- Case progress illustration (CSS only, replaces lifestyle hero image) ---------- */
.cl4.cl4--split .cl4-journey {
    position: relative;
    max-width: 560px;
    margin: 28px 0 0;
    padding: 26px 34px 30px 0;
}

.cl4.cl4--split .cl4-journey::before {
    content: "";
    position: absolute;
    inset: 0 0 0 -28px;
    z-index: 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 18% 22%, rgba(74, 163, 255, 0.22), transparent 42%),
        radial-gradient(circle at 86% 82%, rgba(139, 92, 246, 0.14), transparent 40%),
        radial-gradient(rgba(47, 111, 235, 0.16) 1.2px, transparent 1.3px) 0 0 / 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
    pointer-events: none;
}

.cl4.cl4--split .cl4-journey-card {
    position: relative;
    z-index: 1;
    padding: 24px 26px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 220, 247, 0.8);
    box-shadow: 0 24px 56px rgba(25, 82, 170, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cl4.cl4--split .cl4-journey-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.cl4.cl4--split .cl4-journey-kicker {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7ea8;
}

.cl4.cl4--split .cl4-journey-title {
    display: block;
    margin-top: 4px;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--cl4-navy);
}

.cl4.cl4--split .cl4-journey-pct {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1d6cff;
}

.cl4.cl4--split .cl4-journey-bar {
    height: 8px;
    margin: 14px 0 18px;
    border-radius: 99px;
    background: #e8f0fd;
    overflow: hidden;
}

.cl4.cl4--split .cl4-journey-bar span {
    display: block;
    width: 75%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1e6ef2 0%, #4aa3ff 100%);
}

.cl4.cl4--split .cl4-journey-steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cl4.cl4--split .cl4-journey-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.cl4.cl4--split .cl4-journey-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 48px;
    bottom: -10px;
    width: 2px;
    border-radius: 2px;
    background: #dde7f7;
}

.cl4.cl4--split .cl4-journey-step.is-done:not(:last-child)::after {
    background: #9fd9bf;
}

.cl4.cl4--split .cl4-journey-dot {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b9bbf;
    background: #f1f5fc;
    border: 1.5px solid #dde7f7;
}

.cl4.cl4--split .cl4-journey-dot svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl4.cl4--split .cl4-journey-step.is-done .cl4-journey-dot {
    color: #fff;
    background: var(--cl4-good);
    border-color: var(--cl4-good);
}

.cl4.cl4--split .cl4-journey-step.is-active .cl4-journey-dot {
    color: #1d6cff;
    background: #eaf2ff;
    border-color: #1d6cff;
    box-shadow: 0 0 0 5px rgba(29, 108, 255, 0.12);
}

.cl4.cl4--split .cl4-journey-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--cl4-navy);
    line-height: 1.3;
}

.cl4.cl4--split .cl4-journey-text small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: #7588b2;
    line-height: 1.35;
}

.cl4.cl4--split .cl4-journey-status {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    color: #7588b2;
    background: #f1f5fc;
}

.cl4.cl4--split .cl4-journey-step.is-done .cl4-journey-status {
    color: var(--cl4-good);
    background: var(--cl4-good-soft);
}

.cl4.cl4--split .cl4-journey-step.is-active .cl4-journey-status {
    color: #1d4ed8;
    background: #eaf2ff;
}

.cl4.cl4--split .cl4-journey-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(201, 220, 247, 0.9);
    box-shadow: 0 14px 30px rgba(25, 82, 170, 0.14);
    font-size: 13px;
    font-weight: 700;
    color: var(--cl4-navy);
    white-space: nowrap;
    animation: cl4JourneyFloat 6s ease-in-out infinite;
}

.cl4.cl4--split .cl4-journey-badge--secure {
    top: -10px;
    right: 0;
}

.cl4.cl4--split .cl4-journey-badge--phone {
    left: 28px;
    bottom: 0;
    animation-delay: -3s;
}

.cl4.cl4--split .cl4-journey-badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1e6ef2 0%, #4aa3ff 100%);
}

.cl4.cl4--split .cl4-journey-badge--secure .cl4-journey-badge-icon {
    background: linear-gradient(135deg, #1f9d6b 0%, #3cc48f 100%);
}

.cl4.cl4--split .cl4-journey-badge-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes cl4JourneyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .cl4.cl4--split .cl4-journey-badge {
        animation: none;
    }
}

@media (min-width: 1025px) and (max-height: 900px) {
    .cl4.cl4--split .cl4-journey {
        margin-top: 16px;
        max-width: 500px;
        padding-top: 26px;
        padding-bottom: 24px;
    }

    .cl4.cl4--split .cl4-journey-card {
        padding: 18px 22px 12px;
    }

    .cl4.cl4--split .cl4-journey-bar {
        margin: 10px 0 10px;
    }

    .cl4.cl4--split .cl4-journey-step {
        padding: 7px 0;
    }

    .cl4.cl4--split .cl4-journey-step:not(:last-child)::after {
        top: 45px;
        bottom: -7px;
    }
}

/* iOS Safari zooms focused inputs when font-size is under 16px. */
@media (max-width: 768px) {
    .cl4 .cl4-input-wrap input.form-control,
    .cl4 .cl4-input-wrap input,
    .cl4 .cl4-input-wrap--icon input.form-control,
    .cl4 .cl4-input-wrap--icon input,
    .cl4 select.form-control,
    .cl4 textarea.form-control {
        font-size: 16px !important;
    }
}

/* ---------- Family photo hero (replaces case progress illustration) ---------- */
.cl4.cl4--split .cl4-family {
    position: relative;
    max-width: 580px;
    margin: 30px 0 0;
    padding: 18px 26px 22px 0;
}

.cl4.cl4--split .cl4-family::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 62%;
    z-index: 0;
    border-radius: 28px;
    background: radial-gradient(rgba(47, 111, 235, 0.22) 1.3px, transparent 1.4px) 0 0 / 16px 16px;
    pointer-events: none;
}

.cl4.cl4--split .cl4-family::after {
    content: "";
    position: absolute;
    left: -34px;
    bottom: -6px;
    width: 220px;
    height: 220px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 163, 255, 0.28), transparent 70%);
    pointer-events: none;
}

.cl4.cl4--split .cl4-family-photo {
    position: relative;
    z-index: 1;
    margin: 0;
    border-radius: 26px;
    overflow: hidden;
    border: 6px solid #fff;
    background: #e8f1ff;
    box-shadow: 0 26px 60px rgba(20, 40, 90, 0.18);
}

.cl4.cl4--split .cl4-family-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 40%;
}

.cl4.cl4--split .cl4-family-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 42% 18px 22px;
    color: #fff;
    background: linear-gradient(180deg, rgba(11, 31, 63, 0) 0%, rgba(11, 31, 63, 0.78) 100%);
}

.cl4.cl4--split .cl4-family-caption strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cl4.cl4--split .cl4-family-caption span {
    display: block;
    margin-top: 3px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
}

.cl4.cl4--split .cl4-family .cl4-family-badge.cl4-journey-badge--secure {
    top: 0;
    right: 0;
}

.cl4.cl4--split .cl4-family .cl4-family-badge.cl4-journey-badge--phone {
    left: auto;
    right: 0;
    bottom: 2px;
}

@media (min-width: 1025px) and (max-height: 900px) {
    .cl4.cl4--split .cl4-family {
        margin-top: 16px;
        max-width: 500px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .cl4.cl4--split .cl4-family-caption {
        padding-right: 38%;
    }
}
