
:root {
    --primary-color: #80586D;
    --secondary-color: #C49D83;
    --background-gradient: linear-gradient(135deg, var(--primary-color), #9E8277);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-gradient);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: flex;
    backdrop-filter: blur(5px); /* Effet de flou global */
    -webkit-backdrop-filter: blur(5px);
}

.login-image {
    flex: 1;
    background-image: url('../../images/login/market.jpg');
    background-size: cover;
    background-position: center;
    display: none;
}

.login-form {
    flex: 1;
    padding: 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 70px;
}

.welcome {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    height: auto;
    border: 1px solid #e1e1e1;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.btn-login {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    padding: 12px;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #9E8277;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #9E8277;
    color: white;
}

@media (min-width: 768px) {
    .login-image {
        display: block;
    }
}

/* Animation de chargement */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message d'erreur */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}