/* Reset de base */
* {
    box-sizing: border-box;
}

body, html {
    background-color: #f0f6ff;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
}

/* Conteneur principal centré sur toute la hauteur et largeur */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Wrapper pour le contenu (formulaire + section gauche) */
.page-wrapper {
    display: flex;
    background: linear-gradient(to right, #e6f0ff, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    min-height: 500px;
}

/* Section gauche avec image et texte */
.left-section {
    flex: 1;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.left-section .content {
    text-align: center;
    max-width: 300px;
}

.welcome-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.left-section h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.left-section p {
    font-size: 1rem;
    color: #555;
}

/* Conteneur formulaire */
.form-container {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #222;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #007BFF;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #007BFF;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.link-register,
.link-forgot-password {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.link-register a,
.link-forgot-password a {
    color: #007BFF;
    text-decoration: none;
}

.link-register a:hover,
.link-forgot-password a:hover {
    text-decoration: underline;
}

.error-message {
    color: #d93025;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* Responsive */

/* Petits écrans (smartphones) */
@media (max-width: 600px) {
    .page-wrapper {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .left-section {
        padding: 20px;
    }

    .left-section .content {
        max-width: 100%;
    }

    .form-container {
        padding: 30px 20px;
    }

    .left-section, .form-container {
        width: 100%;
        flex: none;
    }

    .welcome-image {
        max-width: 70%;
        margin: 0 auto 15px;
        display: block;
    }
}

/* Moyens écrans (tablettes) */
@media (min-width: 601px) and (max-width: 900px) {
    .page-wrapper {
        max-width: 700px;
    }

    .left-section, .form-container {
        padding: 30px;
    }
}
