.split-layout {
    --split-ink: #0f0f0f;
    --split-ink-text: #ffffff;
    --split-ink-muted: rgba(255, 255, 255, 0.6);
    position: relative;
    min-height: calc(var(--dvh) * 100);
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

[data-theme="dark"] .split-layout {
    --split-ink: var(--field);
}

.split-dark {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(50% - 250px);
    min-width: 300px;
    background: var(--split-ink);
}

@media (min-width: 861px) {
    .split-layout .auth-visual,
    .split-layout .wizard-rail {
        margin-left: calc(-1 * max(0px, (100vw - 1100px) / 2));
        padding: 28px 40px;
        background: transparent;
        border-radius: 0;
    }

    .split-layout .auth-visual .brand-logo-svg,
    .split-layout .wizard-rail .brand-logo-svg {
        filter: brightness(0) invert(1);
    }

    .split-layout .auth-visual .brand-tagline,
    .split-layout .wizard-rail .brand-tagline {
        color: #ffffff;
    }

    .split-layout .wizard-rail .rail-steps {
        align-self: flex-end;
        width: 236px;
        margin-block: auto;
    }
}

.auth-visual-body {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.auth-visual-body h2 {
    font-size: clamp(24px, 2.4vw, 33.5px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--split-ink-text);
}

.auth-visual-body p {
    margin-top: 12px;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--split-ink-muted);
}

.split-topbar {
    position: absolute;
    top: 18px;
    right: calc(max((100% - 1100px) / 2, 0px) + 28px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-page {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.split-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    width: 100%;
    max-width: 1100px;
    background: transparent;
}

@media (max-width: 860px) {
    .split-dark,
    .split-topbar {
        display: none;
    }

    .split-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.auth-footer {
    padding: 20px 0 6px;
    text-align: center;
}

.auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
}

.auth-footer-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    transition: color 0.15s ease;
}

.auth-footer-links a:hover {
    color: var(--text);
}

.auth-footer p {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-3);
}

.auth-header {
    display: none;
}

@media (max-width: 860px) {
    .auth-header {
        position: relative;
        z-index: 6;
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 10px 12px 10px 6px;
    }

    body:has(.auth-header) .a11y-fab {
        display: none;
    }

    body:has(.auth-header) .a11y-panel {
        top: 58px;
        right: 12px;
        bottom: auto;
        left: auto;
        max-height: calc(calc(var(--dvh) * 100) - 76px);
    }

    .auth-header-back {
        flex-shrink: 0;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--text-2);
        cursor: pointer;
    }

    .auth-header-back:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .auth-header .brand {
        font-size: 16px;
    }

    .auth-header .brand {
        --logo-cap: 104px;
    }

    .auth-header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .auth-header-actions .locale-trigger {
        padding: 0 6px;
    }

    .auth-header-actions .locale-panel {
        right: 0;
        left: auto;
    }

    .split-layout .auth-top,
    .split-layout .rail-head {
        display: none;
    }

    .auth-footer {
        padding-inline: 4px;
    }

    .auth-footer-links {
        gap: 10px 14px;
    }
}

@media (max-width: 640px) {
    .auth-header {
        gap: var(--hdr-gap-mobile);
        padding-left: var(--gutter-mobile);
    }

    .auth-header .brand {
        --logo-cap: var(--logo-cap-mobile);
    }
}
