.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 1fr);
    background: var(--erp-bg-main);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    color: var(--erp-text);
    background: var(--erp-sidebar-bg);
    border-right: 1px solid color-mix(in srgb, var(--erp-border) 28%, transparent);
}

.auth-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--erp-sidebar-bg) 86%, transparent), color-mix(in srgb, var(--erp-primary-700) 28%, var(--erp-sidebar-bg))),
        url('/auth-hero.svg') center/cover no-repeat;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-accent));
    color: var(--erp-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.auth-brand-logo {
    width: 128px;
    height: 72px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--erp-surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--erp-border) 72%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    box-shadow: var(--erp-shadow-sm);
}

.auth-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-form-brand {
    display: none;
    justify-content: center;
}

.auth-form-brand-logo {
    width: 168px;
    height: 92px;
    border-radius: 18px;
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    box-shadow: var(--erp-shadow-sm);
}

.auth-form-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-form-brand-mark {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-accent));
    color: var(--erp-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.auth-brand-title {
    color: var(--erp-text);
}

.auth-brand-subtitle {
    color: var(--erp-muted);
}

.auth-headline {
    max-width: 560px;
}

.auth-headline h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.3rem);
    font-weight: 800;
    color: var(--erp-text);
}

.auth-headline p {
    color: var(--erp-muted);
    margin-bottom: 0;
}

.auth-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.auth-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--erp-text);
}

.auth-trust-list .bi {
    color: var(--erp-accent);
}

.auth-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-kpi-card {
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--erp-surface) 78%, transparent);
    backdrop-filter: blur(4px);
    padding: 12px;
}

.auth-kpi-card small {
    color: var(--erp-primary-700);
    display: block;
    margin-bottom: 4px;
}

.auth-kpi-card strong {
    color: var(--erp-text);
    font-size: 1.1rem;
}

.auth-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(circle at 18% 10%, var(--erp-selected-bg) 0%, transparent 26%),
        linear-gradient(160deg, var(--erp-bg-main) 0%, var(--erp-hover-bg) 100%);
}

.auth-form-card {
    width: 100%;
    max-width: 500px;
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-lg);
    box-shadow: var(--erp-shadow-md);
}

.auth-form-card .card-body {
    padding: 30px;
}

.auth-card-top {
    border-bottom: 1px solid var(--erp-border);
    margin: -30px -30px 20px;
    padding: 18px 30px;
    background: var(--erp-bg-soft);
    border-radius: var(--erp-radius-lg) var(--erp-radius-lg) 0 0;
}

.auth-meta {
    color: var(--erp-muted);
    font-size: .82rem;
}

@media (max-width: 1199.98px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-hero {
        min-height: 360px;
        border-right: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--erp-border) 28%, transparent);
    }
}

@media (max-width: 767.98px) {
    .auth-shell {
        min-height: 100vh;
        display: flex;
    }

    .auth-hero {
        display: none;
    }

    .auth-form-brand {
        display: flex;
    }

    .auth-hero-content {
        padding: 22px;
    }

    .auth-kpis {
        grid-template-columns: 1fr;
    }

    .auth-form-pane {
        width: 100%;
        min-height: 100vh;
        padding: 16px;
    }

    .auth-form-card .card-body {
        padding: 22px;
    }

    .auth-card-top {
        margin: -22px -22px 18px;
        padding: 14px 22px;
    }
}
