*{
    font-family: "Merriweather", sans-serif;
    font-style: normal;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Jost', sans-serif;
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
}

.main {
    width: 350px;
    height: 530px; /* Hauteur du contenue login rt signup */
    background: red;
    overflow: hidden;
    background: url("https://doc-08-2c-docs.googleusercontent.com/docs/securesc/68c90smiglihng9534mvqmq1946dmis5/fo0picsp1nhiucmc0l25s29respgpr4j/1631524275000/03522360960922298374/03522360960922298374/1Sx0jhdpEpnNIydS4rnN4kHSJtU1EyWka?e=view&authuser=0&nonce=gcrocepgbb17m&user=03522360960922298374&hash=tfhgbs86ka6divo3llbvp93mg4csvb38") no-repeat center/ cover;
    border-radius: 10px;
    box-shadow: 5px 20px 50px #000;
}

#chk {
    display: none;
}

.login {
    position: relative;
    width: 100%;
    height: 100%;
}

label {
    color: #fff;
    font-size: 2.3em;
    justify-content: center;
    display: flex;
    margin: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: .5s ease-in-out;
/*     margin-top: 85px; /* vers le haut ou vers le bas  */ 
}

input {
    width: 80%; /* Largeur des input  */
    height: 15px; /* hauteur des inputs */
    margin-top: 65px;
    background: #e0dede;
    justify-content: center;
    display: flex;
    margin: 10px auto; /* distance entre les inputs */
    padding: 10px; /* Prerimetre des inputs */
    border: none;
    outline: none;
    border-radius: 10px; /* border pas carré */
}

button ,a{
    width: 85%;
    height: 35px;
    margin: 20px auto;
    justify-content: center;
    display: block;
    color: #fff;
    background: #3B3CA5;
    font-size: 1em;
    font-weight: bold;
    font-family: "Merriweather", sans-serif;
    margin-top: 20px;
    outline: none;
    border: none;
    border-radius: 10px;
    transition: .2s ease-in;
    cursor: pointer;
}

button:hover {
    background: #3B3CA5;
}

.signup {
    height: 600px; /* largeur occupation s'inscrire */
    background: #eee;
    border-radius: 90% / 10%;
    transform: translateY(-180px);
    transition: .8s ease-in-out;
}


.signup label {
    color: #3B3CA5;
    transform: scale(.6);
}

#chk:checked ~ .signup {
    transform: translateY(-550px);
}

#chk:checked ~ .signup label {
    transform: scale(1);
}

#chk:checked ~ .login label {
    transform: scale(.6);
}