:root {
    --primary-color: #f97316; /* Orange */
    --secondary-color: #22c55e; /* Green */
    --light-color: #f8f9fa; /* Light Gray */
    --dark-color: #2d3748; /* Dark Gray */
    --accent-color: #ffffff; /* White */
}

body {
    background: linear-gradient(135deg, var(--light-color) 0%, #e4e7eb 100%);
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
}

.main-content {
    margin-left: 0; /* Réinitialise la marge pour la page de connexion */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 540px; /* Largeur augmentée */
    margin: 20px auto; /* Centrage horizontal */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.login-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
    max-width: 80%;
}

.login-form {
    padding: 30px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: var(--accent-color);
}

.form-control::placeholder {
    color: #a0aec0;
}

.btn-login {
    background: var(--primary-color);
    border: none;
    color: var(--accent-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #ea580c; /* Orange plus sombre */
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.input-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--dark-color);
}

.additional-links {
    text-align: center;
    margin-top: 16px;
}

.additional-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.additional-links a:hover {
    color: #16a34a; /* Vert plus sombre */
    text-decoration: underline;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .login-container {
        margin: 16px;
        max-width: 90%;
    }

    .login-header {
        padding: 25px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-form {
        padding: 25px 20px;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .btn-login {
        font-size: 0.95rem;
    }
}