/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}
/* Global Styles */
body {
    color: rgb(255, 255, 255);
    margin: 0;
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
}

header {
    width: 100%;
    height: 12.5%;
    background: rgb(3, 47, 154);
    background: linear-gradient(
        45deg,
        rgba(3, 47, 154, 1) 0%,
        rgba(0, 48, 156, 1) 100%
    );
    transition: background 0.3s ease; /* Ajout d'une transition sur le fond */
}

footer {
    width: 100%;
    height: 12.5%;
    background: rgb(58, 52, 178);
    background: linear-gradient(
        45deg,
        rgba(58, 52, 178, 1) 0%,
        rgba(3, 49, 156, 1) 100%
    );
    transition: background 0.3s ease; /* Ajout d'une transition sur le fond */
}

main {
    width: 100%;
    height: 75%;
    background-color: rgba(91, 125, 222);
    display: flex;
}

#left {
    width: 50%;
    height: 100%;
    border-right: 0.5px solid white;
    display: flex;
    justify-content: center; /* Ajustement de l'alignement */
    align-items: center;
}

#right {
    width: 50%;
    height: 100%;
    border-left: 0.5px solid white;
    display: flex;
    justify-content: center; /* Ajustement de l'alignement */
    align-items: center;
}

.user {
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: linear-gradient(
        120deg,
        rgba(19, 63, 155, 255) 0%,
        rgba(91, 125, 222, 255) 90%,
        rgba(91, 125, 222, 255) 100%
    );
    padding: 10px;
    margin: 10px;
    transition: transform 0.3s ease; /* Ajout d'une animation sur hover */
}

.user:hover {
    transform: scale(1.05); /* Effet de zoom au survol */
}

.user img {
    max-height: 65px;
    margin: 5px;
    border-radius: 50%; /* Arrondir l'image */
}

.user h4 {
    color: white;
    margin-left: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Ajout d'une ombre portée */
}

h2 {
    margin-right: 100px;
    font-size: 3em;
}

#login {
    width: 40%;
}

form {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 0px;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form button {
    width: 80%;
    padding: 8px;
    border: none;
    background: none;
    outline: none;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    box-sizing: border-box;
    height: 100%;
    width: 90%;
}

form button {
    background-color: #4c8ef5;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid #357ae8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

form button:hover {
    background-color: #357ae8;
    transform: scale(1.05); /* Effet de zoom au survol */
}

.signup {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

.connected {
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.input {
    width: 70%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 4px;
    height: 4%;
    margin: 8px 0;
    border-radius: 3px;
    display: flex;
}

.input img {
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    main {
        flex-direction: column;
    }
    #left {
        width: 100%;
        height: 30%;
        border: 0;
        border-bottom: solid rgb(255, 255, 255) 0.5px;
        text-align: center;
    }
    #right {
        width: 100%;
        border: 0;
        border-top: solid rgb(255, 255, 255) 0.5px;
    }
    h2 {
        margin: 0;
    }
    .input {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 4px;
        height: 10%;
        margin: 8px 0;
        border-radius: 3px;
        display: flex;
    }
    #login {
        width: 70%;
    }
    form button {
        width: 100%;
        height: 12.5%;
    }
    #signup {
        width: 70%;
    }
}
