body{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Jost', sans-serif;
    background: url("coast.mp4" ) ;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



.main{
    display: flexbox;
    justify-content: center;
    align-items: center;
    
    width: 350px;
    height: 500px;
    background: red;
    overflow: hidden;
    background: url("2.jpg") no-repeat center / cover;
    border-radius: 10px;
    box-shadow: 5px 20px 50px #000;
}


#chk{
    display: none;
}

.signup{
    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;

}

input{
    width: 60%;
    height: 18px;
    background: #e0dede;
    justify-content: center;
    display: flex;
    margin: 20px auto;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 50px;
}

button{
    width: 40%;
    height: 40px;;
    margin: 10px auto;
    justify-content: center;
    display: block;
    color: #fff;
    background: #003669;
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    outline: none;
    border: none;
    border-radius: 50px;
    transition: .2s ease-in-out;
    cursor: pointer;
}

button:hover{
    background: #6d44b8;
}

.login{
    height: 460px;
    background: #eee;
    border-radius: 60%/10%;
    transform: translateY(-189px);
    transition: .4s ease-in-out;
}

.login label{
    color: #003669;
    transform: scale(.6);
}

#chk:checked ~ .login{
    transform: translateY(-500px);
}

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

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

