@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 100vh;
    font-family: 'Raleway', sans-serif;
    background-color: #121212;
}

h1 {
    color: #fff;
    font-size: 36px;
    transform: translate(90%, -720%);
}

.container {
    width: 400px;
    height: 480px;
    transform: translate(-25%);
    overflow: hidden;
    background-color: #1f1f1f;
    box-shadow: 5px 20px 50px #000;
    border-radius: 16px;
}

#check {
    display: none;
}

.login {
    position: relative;
    width: 100%;
    height: 100%;
}

label {
    color: #ffffff;
    font-size: 40px;
    justify-content: center;
    display: flex;
    margin: 55px;
    font-weight: bold;
    cursor: pointer;
    transition: .5s ease-in-out;
}

input {
    width: 65%;
    height: 25px;
    background: #e0dede;
    font-size: 15px;
    display: flex;
    margin: 20px auto;
    padding: 11px;
    border-bottom: 1px solid black;
    border-top: none;
    border-right: none;
    border-left: none;
    outline: none;
}

.login input {
    border-top: none;
    border-bottom: solid rgb(143, 143, 143) 1.5px;
    border-left: none;
    border-right: none;
    background-color: #1f1f1f;
    color: white;
}

.signup input {
    padding: 6px;
}

button {
    width: 45%;
    height: 40px;
    margin: 10px auto;
    display: block;
    color: #fff;
    background: #1d9bf0;
    font-size: 18px;
    font-weight: bold;
    margin-top: 40px;
    outline: none;
    border: none;
    border-radius: 16px;
    transition: .2s ease-in;
    cursor: pointer;
}

button:hover {
    background: #118ebb;
}

@keyframes blink {
    0% {
        background: rgb(197, 0, 0);
    }

    50% {
        background: rgb(255, 93, 93);
    }
    
    100%{
        background: rgb(197, 0, 0);
    }
}

@keyframes blink2 {
    0% {
        color: rgb(197, 0, 0);
    }

    50% {
        color: rgb(255, 93, 93);
    }

    100% {
        color: rgb(197, 0, 0);
    }
}

#error-message {
    animation: blink2 1.5s infinite;
}

#submit-btn:disabled {
    animation: blink 1.5s infinite;
}

.signup {
    height: 460px;
    background: #1d9bf0;
    border-radius: 60% / 10%;
    transform: translateY(-180px);
    transition: .8s ease-in-out;
}

.signup label {
    transform: scale(.7);
}

#showpw,
#showpw1,
#showpw2 {
    width: 17px;
    height: 17px;
    margin-left: 315px;
    margin-top: -12%;
    cursor: pointer;
}

#pw2 {
    margin-top: 10%;
}

#check:checked~.signup {
    transform: translateY(-500px);
    background-color: #e0dede;
}

#check:checked~.signup label {
    transform: scale(1) translateY(30%);
    color: #383838;
}

#check:checked~.signup input {
    transform: translateY(-25%);
}

#check:checked~.login label {
    transform: translateY(-30%) scale(.6);
}