/* Login Section - Design minimal avec background nuageux */
.login-section {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
        url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%232ca246' fill-opacity='0.03' d='M40,80 C50,60 70,60 80,80 C90,60 110,60 120,80 C130,60 150,60 160,80 L160,120 C160,140 140,160 120,160 C100,160 80,140 80,120 C60,140 40,120 40,100 Z'/%3E%3Cpath fill='%232ca246' fill-opacity='0.02' d='M60,40 C80,20 100,20 120,40 C140,20 160,20 180,40 L180,80 C180,100 160,120 140,120 C120,120 100,100 100,80 C80,100 60,80 60,60 Z'/%3E%3Cpath fill='%232ca246' fill-opacity='0.04' d='M20,120 C30,100 50,100 60,120 C70,100 90,100 100,120 C110,100 130,100 140,120 L140,160 C140,180 120,200 100,200 C80,200 60,180 60,160 C40,180 20,160 20,140 Z'/%3E%3C/svg%3E");
    min-height: 60vh;
    margin-top: 100px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Carte de login */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(44, 162, 70, 0.1);
    border: 1px solid rgba(44, 162, 70, 0.15);
    position: relative;
    width: 100%;
    overflow: hidden; /* Ajouté pour contenir l'animation */
}

/* Animation de la ligne en haut */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--secondary), 
        var(--primary), 
        transparent);
    animation: slideLine 3s ease-in-out infinite;
}

@keyframes slideLine {
    0% {
        left: -100%;
    }
    50% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(44, 162, 70, 0.25);
}

.card-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Formulaire */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 162, 70, 0.1);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -10px;
    left: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    background: white;
    padding: 0 8px;
}

.form-label {
    position: absolute;
    top: 16px;
    left: 50px;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-input:focus ~ .input-icon {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 162, 70, 0.4);
}

.btn-text {
    position: relative;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}