:root {
    --primary-blue: #243771;
    --primary-pink: #b0005b;
    --light-pink: #f89494;
    --light-gray: #f2f2f2;
    --text-color-light: #fdfdfd;
    --text-color-dark: #333333;
    --font-poppins: 'Poppins', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-poppins);
    background-color: var(--light-gray);
    height: 100%;
}

.login-page-container {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--light-gray);
    padding: 2rem;
    position: relative;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-blue);
    color: var(--text-color-light);
    padding: 2rem;
    position: relative;
}

.departement-label {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 1.8rem;
    color: var(--primary-pink);
    font-family: var(--font-montserrat);
    font-weight: 700;
}

.left-panel .illustration {
    width: 80%;
    max-width: 300px;
    margin-bottom: 2rem;
}

.left-panel h1 {
    color: var(--primary-pink);
    font-size: 2.5rem;
    margin: 0;
}

.left-panel p {
    font-size: 1.2rem;
    color: var(--primary-pink);
    font-weight: 600;
}

.info-card {
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    max-width: 450px;
    margin-bottom: 2rem;
}

.info-card .icon {
    width: 80px;
    height: auto;
}

.info-card .text {
    font-size: 1rem;
    line-height: 1.4;
    color: white;
    font-family: var(--font-montserrat);
}

.login-form-container {
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    border-radius: 10px;
    justify-items: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.login-form-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.login-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-form-container input {
    width: 100%;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 6px;
    background-color: #4a5d91;
    color: var(--text-color-light);
    font-size: 2rem;
}

.login-form-container input::placeholder {
    color: #b3c2e1;
}

.cta-button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-pink);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-poppins);
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #8a0046;
    transform: translateY(-2px);
}

.assistance-button {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: var(--light-pink);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-poppins);
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.assistance-button:hover {
    background-color: #f17373;
    transform: translateY(-2px);
}

.alert {
    background-color: #b0005b;
    color: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

/* NOUVEAU STYLE POUR LE LIEN DE CONNEXION */
.login-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-link a {
    color: var(--light-pink); /* Utilisation d'une couleur existante pour la cohérence */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--text-color-light); /* Couleur au survol */
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .info-card {
        position: static;
        margin-bottom: 2rem;
    }

    .left-panel h1 { font-size: 2rem; }
    .left-panel p { font-size: 1rem; }
}

@media (max-width: 768px) {
    .login-page-container {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
    }

    .left-panel { order: 1; }
    .right-panel { order: 2; }

    .departement-label {
        position: static;
        text-align: center;
        margin-bottom: 1rem;
    }

    .left-panel .illustration {
        max-width: 200px;
        margin-bottom: 1rem;
    }

    .left-panel h1 {
        font-size: 1.8rem;
    }

    .info-card {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        width: 100%;
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
    }

    .info-card .icon {
        width: 60px;
    }

    .info-card .text {
        font-size: 0.9rem;
    }

    .login-form-container {
        padding: 1.5rem;
    }

    .login-form-container h2 {
        font-size: 1.5rem;
    }
}
