.ks-auth-landing {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    background: #f5f7fb;
    min-height: 100vh;
    box-sizing: border-box;
}

.ks-auth-landing__inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: var(--ks-auth-max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    gap: 0;
    padding: var(--ks-auth-container-padding, 24px);
    box-sizing: border-box;
}

.ks-auth-landing--fullwidth .ks-auth-landing__inner {
    max-width: none;
}

.ks-auth-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2b46, #1c4b75);
    background-size: cover;
    background-position: center;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: block;
    min-height: var(--ks-auth-hero-min-height, 360px);
    color: #fff;
    padding: clamp(24px, 5vw, 64px);
}

.ks-auth-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--ks-auth-overlay, 0.35));
    pointer-events: none;
}

.ks-auth-hero__content {
    position: absolute;
    left: clamp(24px, 5vw, 64px);
    bottom: clamp(24px, 5vw, 64px);
    z-index: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ks-auth-hero__content h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0;
}

.ks-auth-hero__content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.ks-auth-hero__cta {
    align-self: flex-start;
    background: #fff;
    color: #0f2b46;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.ks-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-auth-card--landing {
    width: 100%;
    padding: 24px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    margin-top: 0;
}

.ks-auth-landing .ks-auth-form--inline {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.ks-auth-landing .ks-auth-form--inline label {
    margin: 0;
}

.ks-auth-landing .ks-auth-form--inline .ks-auth-submit {
    width: auto;
    height: 46px;
    font-size: 15px;
    padding: 0 20px;
}

.ks-auth-password--icon {
    position: relative;
}

.ks-auth-password--icon input {
    padding-right: 42px;
}

.ks-auth-toggle--icon,
.ks-pass-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #4a4a4a;
    cursor: pointer;
    width: 24px;
    height: 24px;
    z-index: 10;
    pointer-events: auto;
}

.ks-auth-toggle--icon .ks-auth-toggle__icon,
.ks-pass-toggle .ks-auth-toggle__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ks-auth-toggle--icon.is-active,
.ks-pass-toggle.is-active {
    color: #0073aa;
}

.ks-auth-landing .ks-auth-form input,
.ks-auth-landing .ks-auth-form select {
    width: 100%;
    box-sizing: border-box;
}

.ks-auth-links--stack {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 960px) {
    .ks-auth-hero {
        border-radius: 20px 20px 0 0;
        min-height: 300px;
    }

    .ks-auth-landing .ks-auth-form--inline {
        grid-template-columns: 1fr;
    }

    .ks-auth-landing .ks-auth-form--inline .ks-auth-submit {
        width: 100%;
    }
}

/* ── Desktop layout: 2-column card ── */
@media (min-width: 1024px) {
    /* Centre the landing vertically & horizontally */
    .ks-auth-landing {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding-left: 0;
        padding-right: 0;
    }

    /* Switch to 2-column grid (hero larger than form) */
    .ks-auth-landing__inner {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 0;
        max-width: 1200px;
        min-height: auto;
        padding: 48px 40px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Constrain fullwidth mode to same max on desktop */
    .ks-auth-landing--fullwidth .ks-auth-landing__inner {
        max-width: 1200px;
    }

    /* Hero: round left side only, taller */
    .ks-auth-hero {
        border-radius: 24px 0 0 24px;
        min-height: 520px;
    }

    /* Form wrapper stretches to match hero height */
    .ks-auth-form-wrap {
        display: flex;
        align-items: stretch;
    }

    /* Card: round right side, generous padding, vertically centred */
    .ks-auth-card--landing {
        border-radius: 0 20px 20px 0;
        padding: 48px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Stack form fields vertically inside the narrower column */
    .ks-auth-landing .ks-auth-form--inline {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Full-width submit button */
    .ks-auth-landing .ks-auth-form--inline .ks-auth-submit {
        width: 100%;
        height: 48px;
        font-size: 16px;
        padding: 0 24px;
    }

    /* More breathing room for links below the form */
    .ks-auth-landing .ks-auth-links--stack {
        margin-top: 24px;
        gap: 10px;
    }
}
