/* Shared auth split layout */

.auth-split-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
    width: 100%;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #f7f7fb;
}

.auth-image-panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #2f2a7c;
}

.auth-image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    z-index: 1;
}

.auth-image-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.75) brightness(0.65);
}

/* Make existing cards fit the left panel */
.auth-form-panel .login-container,
.auth-form-panel .register-container {
    min-height: auto;
    width: 100%;
    padding: 0;
}

.auth-form-panel .login-card,
.auth-form-panel .register-card {
    width: 100%;
}

@media (max-width: 992px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
    }

    .auth-image-panel {
        min-height: 280px;
        order: -1;
    }

    .auth-form-panel {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 12px;
    }

    .auth-image-panel {
        min-height: 220px;
    }
}
