/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Structure de base */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #332c2c;
}

.login-container {
    display: flex;
    width: 900px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Section image */
.login-image {
    flex: 1;
    background-color: #4a341e;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.login-image img {
    max-width: 70%;
    margin-bottom: 20px;
}

.login-image p {
    font-size: 20px;
    margin-top: 15px;
}

/* Formulaire */
.login-form {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.login-form h2 {
    color: #4a341e;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #e57300;
    outline: none;
}

.form-group small {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Options de formulaire */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.forgot-password {
    font-size: 14px;
    color: #e57300;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Bouton de soumission */
button {
    width: 100%;
    padding: 14px;
    background-color: #e57300;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

button:hover {
    background-color: #cc6500;
}

/* Liens de redirection */
.signup-link, .login-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-link a, .login-link a {
    color: #e57300;
    text-decoration: none;
}

.signup-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* Connexion sociale */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.social-button:hover {
    opacity: 0.9;
}

.social-button i {
    margin-right: 10px;
}

.google {
    background-color: #DB4437;
    color: white;
}

.facebook {
    background-color: #4267B2;
    color: white;
}

/* Messages d'erreur */
.error-message {
    background-color: #ffe0e0;
    color: #d63031;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-message p {
    margin: 5px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95%;
        margin: 20px;
    }

    .login-image {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .social-buttons {
        flex-direction: column;
    }
}