﻿/* ============================================================
   Layout « Vitrine » — volet de marque (gauche) + formulaire.
   Le dégradé du volet dérive de --brand (tenant).
   ============================================================ */
.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- Volet de marque ----------
   Largeur, visuel de fond et voile sont pilotés par le tenant :
   --auth-brand-width / --auth-brand-max-width dimensionnent le volet,
   --auth-brand-image pose une photo de marque par-dessus le dégradé et
   --auth-brand-scrim l'assombrit pour garder le texte lisible.
   Sans ces variables, le volet garde le dégradé dérivé de --brand. */
.auth-brand {
    flex: 0 0 var(--auth-brand-width, 42%);
    max-width: var(--auth-brand-max-width, 560px);
    min-width: 380px;
    display: flex;
    flex-direction: column;
    padding: 44px 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
    /* Fallback plein (navigateurs sans color-mix) : le panneau garde toujours une couleur lisible */
    background-color: var(--brand);
    background-image:
        var(--auth-brand-scrim, none),
        var(--auth-brand-image, none),
        radial-gradient(120% 90% at 85% -10%, color-mix(in srgb, var(--brand) 78%, #fff) 0%, transparent 55%),
        linear-gradient(180deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 55%, #000) 100%);
    background-size: cover;
    background-position: var(--auth-brand-position, center);
    background-repeat: no-repeat;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -200px;
    bottom: -240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .05), 0 0 0 130px rgba(255, 255, 255, .03);
    pointer-events: none;
}

.brand-logo {
    width: fit-content;
    background: #fff;
    border-radius: 14px;
    padding: 10px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    position: relative;
    z-index: 1;
}

.brand-logo i {
    display: block;
    width: 120px;
    height: 44px;
    background: var(--logo-url) no-repeat center;
    background-size: contain;
}

.brand-headline {
    margin: auto 0 22px;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    max-width: 16ch;
    position: relative;
    z-index: 1;
    text-wrap: balance;
}

.brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.brand-points li {
    display: flex;
    gap: 11px;
    align-items: center;
    font-size: 13.5px;
    opacity: .92;
}

.brand-points svg {
    width: 17px;
    height: 17px;
    flex: none;
}

/* ---------- Colonne formulaire ---------- */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 24px;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-brand {
        flex: none;
        max-width: none;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 18px 22px;
    }

    .auth-brand::after {
        display: none;
    }

    .brand-logo {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .brand-logo i {
        width: 90px;
        height: 32px;
    }

    .brand-headline {
        margin: 0;
        font-size: 15px;
        max-width: none;
    }

    .brand-points {
        display: none;
    }

    .auth-main {
        padding: 28px 20px 40px;
        align-items: flex-start;
    }
}
