body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
}

.wrapper {
    display: flex;
    height: 100vh;
}

/* Côté gauche : carousel */
.left-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
    position: relative;
}

.carousel-img {
    position: absolute;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

/* Côté droit : login */
.right-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

/* Logo Instagram */
.logo-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 50px;
    margin: 0 auto;
}

/* Texte */
.subtitle {
    color: #8e8e8e;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Inputs */
input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Bouton login Instagram-like */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #4B5AAC;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:hover {
    opacity: 0.9;
}

/* Bouton Facebook */
.oauth-btn {
    width: 100%;
    padding: 12px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.oauth-btn i {
    margin-right: 8px;
}

/* Divider */
.divider {
    margin: 15px 0;
    font-size: 12px;
    color: gray;
}

/* Mot de passe oublié */
.forgot {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #4B5AAC;
    text-decoration: none;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .left-side {
        height: 200px;
    }

    .carousel-img {
        width: 200px;
    }

    .card {
        width: 90%;
        padding: 30px 20px;
    }
}
