/* Colonne auth — fond photo aléatoire + logo coin haut gauche */

.auth-aside,
.ta-auth-aside {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 !important;
    text-align: center;
    background-color: #0f172a !important;
    background-image: none !important;
    border-right: 1px solid rgb(148 163 184 / 20%);
}

.auth-aside__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    margin: 0;
    line-height: 0;
}

.auth-aside__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

html.lpf-classic-light .auth-aside__bg--light {
    display: block;
}

html.dark .auth-aside__bg--dark {
    display: block;
}

.auth-aside__logo-link {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 3;
    display: block;
    line-height: 0;
    border-radius: 0.35rem;
    padding: 0.35rem 0.5rem;
    background: rgb(15 23 42 / 55%);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
    transition: background 0.2s ease;
}

html.lpf-classic-light .auth-aside__logo-link {
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 4px 14px rgb(15 23 42 / 12%);
}

.auth-aside__logo-link:hover {
    background: rgb(15 23 42 / 72%);
}

html.lpf-classic-light .auth-aside__logo-link:hover {
    background: rgb(255 255 255 / 95%);
}

.auth-aside__logo-link .lpf-brand-logo-wrap {
    width: auto;
}

.auth-aside__logo-link .lpf-brand-logo,
.auth-aside__logo-link .lpf-brand-logo-wrap picture img {
    display: block !important;
    width: auto !important;
    max-width: 112px;
    max-height: 74px;
    height: auto;
    object-fit: contain;
}

.auth-aside__quote {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 3;
    max-width: min(20rem, 48vw);
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.auth-aside__quote p {
    margin: 0;
}

/* Thème sombre : texte blanc */
html.dark .auth-aside__quote,
html.dark .auth-aside__quote p {
    color: #fff;
    text-shadow: 0 1px 12px rgb(0 0 0 / 55%);
}

/* Thème clair : texte noir */
html.lpf-classic-light .auth-aside__quote,
html.lpf-classic-light .auth-aside__quote p {
    color: #000;
    text-shadow: 0 1px 10px rgb(255 255 255 / 40%);
}

@media (max-width: 900px) {
    /*
     * Sur mobile le bandeau doit avoir une hauteur explicite : logo + citation + photo
     * sont en position absolute (aucun flux), sinon min-height: auto → 0 px visible.
     */
    .auth-aside,
    .ta-auth-aside {
        min-height: clamp(220px, 38vh, 340px) !important;
        max-height: 45vh;
        width: 100%;
        padding: 0 !important;
    }

    html.dark .auth-aside,
    html.dark .ta-auth-aside,
    html.lpf-classic-light .auth-aside,
    html.lpf-classic-light .ta-auth-aside {
        background-color: #0f172a !important;
        background-image: none !important;
    }

    .auth-aside__bg {
        display: block;
    }

    html.lpf-classic-light .auth-aside__bg--light {
        display: block;
    }

    html.dark .auth-aside__bg--dark {
        display: block;
    }

    .auth-aside__bg img {
        object-position: center 35%;
    }

    .auth-aside__logo-link {
        top: 1rem;
        left: 1rem;
        padding: 0.3rem 0.4rem;
    }

    .auth-aside__logo-link .lpf-brand-logo,
    .auth-aside__logo-link .lpf-brand-logo-wrap picture img {
        max-width: 88px;
        max-height: 58px;
    }

    .auth-aside__quote {
        right: 1rem;
        bottom: 1rem;
        max-width: min(16rem, 55vw);
        font-size: 0.88rem;
    }
}
