/**
 * Aside auth MyviOO — pitch écosystème (fond page auth inchangé)
 * Homogène avec la carte login : même top, bloc compact, proche de la box.
 */

.auth-aside-ecosystem {
    background: transparent;
}

.auth-aside-ecosystem,
.auth-aside-ecosystem .auth-aside-headline,
.auth-aside-ecosystem .auth-aside-lead,
.auth-aside-ecosystem .auth-aside-feature-title,
.auth-aside-ecosystem .auth-aside-feature-sub {
    font-family: 'Montserrat', sans-serif;
}

/* Desktop : bloc aside collé à la carte, centré verticalement avec elle */
@media (min-width: 992px) {
    #kt_app_root:has(#kt_sign_in_form):not(.signin-brand-theme) > .d-flex.flex-lg-row {
        align-items: center;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-aside-ecosystem {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        align-self: stretch;
    }

    .auth-aside-inner {
        width: 100%;
        max-width: 56rem;
        margin-left: auto;
        margin-right: 0;
        padding: 1.75rem 1.25rem 1.75rem 2.75rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
    }

    #kt_app_root:has(#kt_sign_in_form):not(.signin-brand-theme) .signin-brand-auth-body {
        align-self: stretch;
        display: flex;
        align-items: center !important;
        padding-left: 0.75rem !important;
        padding-right: 2.5rem !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #kt_app_root:has(#kt_sign_in_form):not(.signin-brand-theme) .signin-brand-auth-box {
        align-self: center !important;
    }
}

@media (max-width: 991.98px) {
    .auth-aside-inner {
        padding: 1.75rem 1.5rem 1.25rem;
        max-width: none;
        margin-left: 0;
    }
}

.auth-aside-pitch {
    width: 100%;
    max-width: 54rem;
}

.auth-aside-brand {
    line-height: 0;
    margin-bottom: 1.75rem !important;
}

.auth-aside-logo {
    display: block;
    height: 80px;
    width: auto;
    max-width: 100%;
}

.auth-aside-headline {
    color: #0b4268;
    font-size: clamp(2.05rem, 3vw, 2.9rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem !important;
}

.auth-aside-headline-strong {
    font-weight: 700;
}

.auth-aside-headline-rest {
    font-weight: 500;
    margin-top: 0.2rem;
}

.auth-aside-lead {
    color: #5b6b7c;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.65;
    max-width: 44rem;
    margin: 0 0 2.75rem !important;
}

.auth-aside-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    width: 100%;
    max-width: 44rem; /* aligné au lead / titre */
    align-self: flex-start;
}

.auth-aside-feature {
    position: relative;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

/* Au milieu de l’espace entre deux pastilles (icônes alignées à gauche) */
.auth-aside-feature:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    right: calc((100% - 3.75rem) / 2);
    width: 1px;
    height: 2.85rem;
    background: linear-gradient(
        180deg,
        rgba(3, 65, 103, 0) 0%,
        rgba(3, 65, 103, 0.11) 30%,
        rgba(3, 65, 103, 0.11) 70%,
        rgba(3, 65, 103, 0) 100%
    );
}

/* Pastille #0fb27e faible opacity + pictos outline navy */
.auth-aside-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.85rem;
    margin-bottom: 0.95rem;
    background: rgba(15, 178, 126, 0.12);
    color: #0a3d5c;
    box-shadow: none;
}

.auth-aside-feature-icon svg {
    display: block;
    width: 1.65rem;
    height: 1.65rem;
}

.auth-aside-feature-title {
    color: #0b4268;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.auth-aside-feature-sub {
    color: #6b8fa8;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .auth-aside-inner {
        max-width: 42rem;
        padding-right: 0.75rem;
        padding-left: 1.75rem;
    }

    .auth-aside-pitch {
        max-width: none;
    }

    .auth-aside-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
        max-width: 32rem;
    }

    .auth-aside-feature:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .auth-aside-pitch {
        max-width: none;
    }

    .auth-aside-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.35rem;
        max-width: none;
    }

    .auth-aside-feature:nth-child(2n)::after {
        display: none;
    }

    .auth-aside-feature-sub {
        white-space: normal;
    }

    .auth-aside-headline {
        font-size: 1.85rem;
    }

    .auth-aside-logo {
        height: 68px;
    }
}

@media (max-width: 575.98px) {
    .auth-aside-headline {
        font-size: 1.5rem;
    }

    .auth-aside-lead {
        font-size: 0.98rem;
        margin-bottom: 1.65rem !important;
    }

    .auth-aside-logo {
        height: 58px;
    }

    .auth-aside-brand {
        margin-bottom: 1.2rem !important;
    }

    .auth-aside-feature-icon {
        width: 3.15rem;
        height: 3.15rem;
        border-radius: 0.75rem;
    }

    .auth-aside-feature-icon svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    .auth-aside-feature:not(:last-child)::after {
        right: calc((100% - 3.15rem) / 2);
        height: 2.4rem;
    }

    .auth-aside-feature-title {
        font-size: 0.92rem;
    }
}

[data-bs-theme="dark"] .auth-aside-headline,
[data-bs-theme="dark"] .auth-aside-feature-title {
    color: #e8eef5;
}

[data-bs-theme="dark"] .auth-aside-lead,
[data-bs-theme="dark"] .auth-aside-feature-sub {
    color: #9aa8b6;
}

[data-bs-theme="dark"] .auth-aside-feature-icon {
    background: rgba(15, 178, 126, 0.22);
    color: #c5dced;
    box-shadow: none;
}

[data-bs-theme="dark"] .auth-aside-feature:not(:last-child)::after {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 18%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.08) 82%,
        rgba(255, 255, 255, 0) 100%
    );
}
