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

body {
    background-color: #1a3a5f;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 650px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-color: #0a2a4a;
}

/* Partie gauche avec le logo et les informations (COMMUNE) */
.left-side {
    flex: 1;
    background-color: #0a2a4a;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.left-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -100px;
    left: -100px;
}

.left-side::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    bottom: -80px;
    right: -80px;
}

.logo-container {
    position: relative;
    z-index: 2;
}

.lab-title {
    font-size: 24px;
    font-weight: 600;
    color: #e6f2ff;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.lab-name {
    font-size: 42px;
    font-weight: 800;
    color: #5dade2;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-text {
    font-size: 32px;
    font-weight: 300;
    color: #fff;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.welcome-text::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #5dade2;
    bottom: -15px;
    left: 0;
}

.medical-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.medical-icon {
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
    transition: transform 0.3s, background-color 0.3s;
}

.medical-icon:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.12);
}

.medical-icon i {
    font-size: 28px;
    color: #5dade2;
    margin-bottom: 8px;
}

.medical-icon p {
    font-size: 12px;
    color: #b3d9ff;
}

/* Partie droite avec le formulaire (COMMUNE) */
.right-side {
    flex: 1;
    background-color: #fff;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a3a5f;
    margin-bottom: 15px;
    text-align: center;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Alert messages (COMMUNE) */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-danger i {
    color: #dc3545;
}

/* Input groups (COMMUNE) */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a5f;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.input-field:focus {
    outline: none;
    border-color: #5dade2;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.2);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8ca5;
    font-size: 18px;
    z-index: 2;
}

.password-container {
    position: relative;
}

.password-container .input-field {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7a8ca5;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
}

.toggle-password:hover {
    color: #333;
}

/* Bouton submit (COMMUNE) */
.submit-button {
    width: 100%;
    padding: 16px;
    background-color: #1a3a5f;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button:hover {
    background-color: #2a4a6f;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #7a8ca5;
    cursor: not-allowed;
    transform: none;
}

/* Liens (COMMUNE) */
.back-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 15px;
}

.back-link a {
    color: #1a3a5f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #5dade2;
    text-decoration: underline;
}



/* Responsive Design (COMMUNE) */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        max-width: 600px;
    }

    .left-side, .right-side {
        padding: 40px 30px;
    }

    .left-side {
        min-height: 300px;
    }

    .medical-icons {
        margin-top: 20px;
    }

    .welcome-text {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    .left-side, .right-side {
        padding: 30px 20px;
    }

    .lab-title {
        font-size: 20px;
    }

    .lab-name {
        font-size: 36px;
    }

    .welcome-text {
        font-size: 26px;
    }

    .medical-icons {
        flex-wrap: wrap;
    }

    .medical-icon {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }

    .form-title {
        font-size: 24px;
    }

    .input-field {
        padding: 12px 12px 12px 40px;
    }

    .input-icon {
        top: 50%;
    }
}

/* Animations (COMMUNE) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }