body {
    height: 90vh;
    background-color: #523B54;
    font-family: "Love Ya Like A Sister", cursive;
    font-weight: 400;
    font-size: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


button {
    background-color: #958297;
    font-size: clamp(0.6em, 2vw, 1em);
    color: white;
    border: 0;
    border-radius: 20px;
    padding: 10px 25px;
    transition: 0.25s;
    margin: 20px 30%;
}

button:active {
    transform: scale(0.95);
}

label {
    font-size: 0.8em;
}


span {
    color: blue;
    cursor: pointer;
}


.card {
    width: clamp(600px, 80%, 800px);
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    margin-top: 50px;
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

.form-overlay {
    position: absolute;
    height: 100%;
    width: 50%;
    background-color: #958297;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 0;
}

.form-overlay.slide-left {
    animation: slide-left 1s forwards;
}

.form-overlay.slide-right {
    animation: slide-right 1s forwards;
}

.form-overlay h1 {
    font-size: 2em;
    color: white;
}

.form-overlay h1 + p {
    font-size: 0.75em;
    color: white;
}

.sign-in-form {
    width: 50%;
    padding: 20px;
}

.password {
    font-size: 1em;
}

.sign-up-form {
    width: 50%;
    padding: 20px;
}

@media (hover: hover) and (pointer: fine) {
    button:hover {
        background-color: #B2A9B0;
    }
}


@media screen and (max-width: 600px) {
    button {
        margin: 20px 40%;
    }

    .card {
        width: 400px;
        flex-direction: column;
    }

    @keyframes slide-left {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(100%);
        }
    }

    @keyframes slide-right {
        0% {
            transform: translateY(100%);
        }
        100% {
            transform: translateY(0);
        }
    }

    .form-overlay {
        width: 100%;
        height: 50%;
    }

    .sign-in-form {
        width: 100%;
    }

    .sign-up-form {
        width: 100%;
    }
}
