/* =========================================================
   OSME — Page de connexion
   Cette feuille complète mystyle.css sans modifier AdminLTE.
   ========================================================= */

:root {
    --osme-purple: #6f2dbd;
    --osme-purple-dark: #51207f;
    --osme-purple-soft: #f5effc;
    --osme-navy: #111827;
    --osme-text: #202637;
    --osme-muted: #667085;
    --osme-border: #dfe3eb;
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(145, 77, 211, .26), transparent 32%),
        linear-gradient(135deg, #111827, #2f1744);
    color: var(--osme-text);
}

.login-wrapper {
    width: 100%;
    max-width: 1120px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 80px rgba(7, 10, 22, .38);
}

.login-left {
    position: relative;
    isolation: isolate;
    padding: 42px 40px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, .97), rgba(64, 28, 91, .94));
}

.login-left::after {
    position: absolute;
    z-index: -1;
    right: -150px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 70px solid rgba(153, 86, 219, .12);
    border-radius: 50%;
    content: '';
}

.brand-top {
    gap: 15px;
    margin-bottom: 24px;
}

.brand-top img.brand-mark {
    width: 72px;
    height: 72px;
    padding: 7px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(6, 8, 18, .22);
}

.brand-title {
    font-size: 1.65rem;
    letter-spacing: .04em;
    color: #ffffff;
}

.brand-subtitle {
    max-width: 330px;
    margin-top: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    line-height: 1.45;
}

.intro-title {
    max-width: 520px;
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 2.5vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
}

.intro-text {
    max-width: 520px;
    margin-bottom: 21px;
    color: rgba(255, 255, 255, .78);
    font-size: .98rem;
    line-height: 1.65;
}

.intro-points {
    gap: 9px;
    margin-bottom: 0;
}

.intro-points li {
    line-height: 1.45;
}

.intro-points i {
    color: #c49aef;
}

.login-partners-pro {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    text-align: center;
    backdrop-filter: blur(10px);
}

.partners-header .partners-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .84);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.partner-card {
    min-height: 90px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    transition: transform .2s ease, box-shadow .2s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
}

.partner-card img {
    width: 64px;
    height: 42px;
    margin-bottom: 7px;
    object-fit: contain;
}

.partner-card span {
    color: #303647;
    font-size: .75rem;
    font-weight: 700;
}

.btn-home-login {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--osme-purple-dark);
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.btn-home-login:hover,
.btn-home-login:focus {
    transform: translateY(-1px);
    background: var(--osme-purple);
    color: #fff;
    text-decoration: none;
}

.login-right {
    padding: 42px 38px;
    background: #fff;
}

.login-box-custom {
    max-width: 410px;
}

.login-logo-wrap {
    margin: 0 auto 8px;
    text-align: center;
}

.login-logo-full {
    width: min(100%, 285px);
    height: auto;
    max-height: 154px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.login-card-title {
    margin-bottom: 7px;
    color: var(--osme-text);
    font-size: 1.72rem;
    font-weight: 800;
}

.login-card-subtitle {
    margin-bottom: 12px;
    color: var(--osme-muted);
    line-height: 1.5;
}

.secure-access-note {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 22px;
    padding: 7px 11px;
    border: 1px solid #e9dcf7;
    border-radius: 999px;
    background: var(--osme-purple-soft);
    color: var(--osme-purple-dark);
    font-size: .78rem;
    font-weight: 700;
}

.login-box-custom .form-group {
    margin-bottom: 17px;
}

.login-box-custom label {
    margin-bottom: 7px;
    color: #343a4a;
    font-size: .9rem;
    font-weight: 700;
}

.login-box-custom .input-group-text,
.login-box-custom .form-control {
    height: 49px;
    border-color: var(--osme-border);
}

.login-box-custom .input-group-text {
    min-width: 46px;
    justify-content: center;
    border-right: 0;
    border-radius: 11px 0 0 11px;
    background: #f7f8fb;
    color: var(--osme-purple);
}

.login-box-custom .form-control {
    border-left: 0;
    border-radius: 0 11px 11px 0;
    box-shadow: none;
}

.login-box-custom .form-control:focus {
    border-color: #a978d8;
    box-shadow: 0 0 0 .18rem rgba(111, 45, 189, .12);
}

.login-box-custom .input-group:focus-within .input-group-text {
    border-color: #a978d8;
    background: var(--osme-purple-soft);
}

.login-box-custom .icheck-primary label {
    margin-bottom: 0;
    color: #4f5667;
    font-size: .82rem;
    font-weight: 600;
}

.login-help {
    color: var(--osme-muted);
    font-size: .78rem;
    text-align: right;
}

.btn-login,
.btn-login.btn-primary {
    height: 49px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--osme-purple), var(--osme-purple-dark));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(111, 45, 189, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-login:hover,
.btn-login:focus {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 15px 30px rgba(81, 32, 127, .3);
}

.footer-note {
    margin-top: 23px;
    color: #7b8190;
    font-size: .78rem;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .login-wrapper {
        max-width: 1000px;
    }

    .login-left {
        padding: 36px 32px;
    }
}

@media (max-width: 991.98px) {
    body.login-page {
        align-items: center !important;
    }

    .login-wrapper {
        min-height: auto;
        max-width: 520px;
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 38px 34px;
    }
}

@media (max-width: 575.98px) {
    body.login-page {
        padding: 12px !important;
    }

    .login-wrapper {
        border-radius: 20px;
    }

    .login-right {
        padding: 30px 20px 25px;
    }

    .login-logo-full {
        width: min(100%, 245px);
        max-height: 132px;
    }

    .login-card-title {
        font-size: 1.5rem;
    }

    .secure-access-note {
        border-radius: 12px;
        text-align: center;
    }

    .login-box-custom .d-flex.justify-content-between {
        gap: 9px;
        align-items: flex-start !important;
        flex-direction: column;
    }

    .login-help {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-card,
    .btn-home-login,
    .btn-login {
        transition: none;
    }
}
