* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f9ff;
    overflow: hidden;
    position: relative;
}

/* Animation de fond thématique */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.health-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(52, 152, 219, 0.15);
    animation: float 20s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Forme organique animée */
.organic-shape {
    position: absolute;
    background: rgba(46, 204, 113, 0.08);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.5) translate(50px, 30px);
    }
}

/* Conteneur principal */
.login-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: 10;
    margin: 20px;
    overflow: hidden;
}

/* Effet de bordure animé */


@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo et titre */


@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.logo i {
    font-size: 50px;
    color: #2980b9;
    margin-bottom: 10px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.logo p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Formulaire */
.form-container {
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    transition: color 0.3s;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fbff;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.input-group input:focus + i {
    color: #2ecc71;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    margin-right: 8px;
    accent-color: #3498db;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(41, 128, 185, 0.4);
}

.signup-link {
    text-align: center;
    font-size: 15px;
    color: #7f8c8d;
}

.signup-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animation de particules */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}