/* Variables */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
    gap: 2rem;
}

/* Container principal */
.login-container {
    max-width: 400px;
    margin: 6rem auto;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-out;
    flex: 1;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre */
.login-container h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Checkbox "Se souvenir de moi" */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Footer du formulaire */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Bouton de connexion */
button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Messages d'erreur */
.error {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Message de statut */
.session-status {
    background-color: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 2rem 0;
        gap: 1rem;
    }

    .login-container {
        margin: 3rem 1rem;
        padding: 2rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .form-footer a {
        margin-bottom: 1rem;
    }

    button[type="submit"] {
        width: 100%;
    }
} 