/* ============================================================
   IntAct Conseil Ã¢â‚¬â€ Espace Consultant Ã¢â‚¬â€ Login Style
   Palette : Navy #06337c | Teal #0B8A8E | White | Whitesmoke
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:       #06337c;
    --navy-dark:  #042558;
    --navy-light: #0d4aa3;
    --teal:       #0B8A8E;
    --teal-light: #0fa8ad;
    --white:      #ffffff;
    --off-white:  #f7f8fc;
    --smoke:      #f0f2f7;
    --border:     #dce3f0;
    --text-dark:  #1a2340;
    --text-mid:   #4a5578;
    --text-light: #8a96b0;
    --shadow-sm:  0 2px 12px rgba(6, 51, 124, 0.08);
    --shadow-md:  0 8px 32px rgba(6, 51, 124, 0.14);
    --shadow-lg:  0 24px 64px rgba(6, 51, 124, 0.18);
    --radius:     16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    font-family: "Roboto", sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT : deux panneaux cÃƒÂ´te Ãƒ  cÃƒÂ´te
   ============================================================ */

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ============================================================
   PANNEAU GAUCHE Ã¢â‚¬â€ Branding navy
   ============================================================ */

.panel-brand {
    position: relative;
    background: linear-gradient(160deg, #0a3f8f 0%, #06337c 45%, #042558 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    overflow: hidden;
}

/* Halo teal en haut Ãƒ  droite */
.brand-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% -5%, rgba(11, 138, 142, 0.30) 0%, transparent 55%),
        radial-gradient(circle at 15% 95%, rgba(11, 138, 142, 0.14) 0%, transparent 45%);
    pointer-events: none;
}

/* Pas de pseudo-ÃƒÂ©lÃƒÂ©ments dÃƒÂ©coratifs Ã¢â‚¬â€ le gradient suffit */
.panel-brand::after,
.panel-brand::before {
    display: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 20%;
}

.brand-logo img {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
}

.brand-divider {
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), transparent);
    border-radius: 2px;
}

.brand-title {
    font-family: "Roboto", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 1.10rem;
    color: white;
    line-height: 1.7;
    font-weight: 400;

}

.feature-intro {
    font-size: 1.10rem;
    color: white;
    line-height: 1.7;
    font-weight: 400;
}

.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    font-weight: 400;
}

.feature-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(11, 138, 142, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-footer {
    position: relative;
    z-index: 1;
}

.back-link {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.back-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   PANNEAU DROIT Ã¢â‚¬â€ Formulaire
   ============================================================ */

.panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--off-white);
}

.form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeSlideIn 0.5s ease both;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* En-tÃƒÂªte du formulaire */
.form-header {
    margin-bottom: 2.5rem;
}

.form-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.7rem;
}

.form-title {
    font-family: "Roboto", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.form-desc {
    font-size: 1.10rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* Alerte erreur */
.alert-error {
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    color: #b91c1c;
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   ZONE SSO â€” bouton unique Microsoft 365
   ============================================================ */

.login-sso {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================================
   BOUTON CONNEXION
   ============================================================ */

.btn-connexion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-family: "Roboto", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 8px 24px rgba(6, 51, 124, 0.28);
}

.btn-connexion:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(6, 51, 124, 0.34);
}

.btn-connexion:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(6, 51, 124, 0.2);
}


/* Mention lÃƒÂ©gale bas de page */
.form-legal {
    margin-top: 2rem;
    font-size: 0.86rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.7;
}
.form-legal a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}
.form-legal a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE Ã¢â‚¬â€ Mobile (max 768px)
   ============================================================ */

@media screen and (max-width: 768px) {

    .login-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    /* Panneau gauche rÃƒÂ©duit en bandeau en haut */
    .panel-brand {
        padding: 2rem;
        min-height: unset;
    }

    .brand-content {
        margin-top: 0;
        gap: 1.2rem;
    }

    .brand-logo img {
        height: 44px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-features,
    .brand-subtitle {
        display: none;
    }

    .brand-footer {
        margin-top: 1.5rem;
    }

    /* Panneau formulaire pleine largeur */
    .panel-form {
        padding: 2.5rem 1.5rem;
        align-items: flex-start;
    }

    .form-container {
        max-width: 100%;
    }

    .form-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .panel-form {
        padding: 2rem 1.25rem;
    }
}