@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

* 
{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

/*:root {
    --linear-grad: linear-gradient(to right, #141E30, #243B55);
    --grad-clr1: #141E30;
    --grad-clr2: #243B55;
}*/

body 
{
    height: 100vh;
    background: coral;
    display: grid;
    place-content: center;
    font-family: 'Nunito', sans-serif;
}

form
{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 50px;
}

h1
{
    color:black;
}

span
{
    font-size: 12px;
}
.back
{
    position: relative;
    display: flex;
}
.btn-back
{
    padding: 1rem 3rem;
    outline: none;
    border: none;
    font-size: 1rem;
    background-color: wheat;
    border-radius: 1000px;
    cursor: pointer;
    transition: all 0.5s ease-in 0.3s;
    color: black;
}
.btn-back:hover
{
    background-color: aquamarine;
}
.container
{
    position: relative;
    width: 850px;
    height: 500px;
    background-color: #fff;
    box-shadow: 25px 30px 55px #5557;
    border-radius: 13px;
    overflow: hidden;
}
.form-container
{
    position: absolute;
    width: 60%;
    height: 100%;
    padding: 0px 40px;
    transition: all 0.6s ease-in-out;
}

.sign-up-container
{
    opacity: 0;
    z-index: 1;
}

.sign-in-container
{
    z-index: 2;
}
.social-container
{
    margin: 20px 0px;
}

.social-container a
{
    border: 1px solid black;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0px 5px;
    height: 40px;
    width: 40px;
}

.infield
{
    position: relative;
    margin: 8px 0px;
    width: 100%;
}

input
{
    width: 100%;
    padding: 12px 15px;
    background-color: whitesmoke;
    border: none;
    outline: none;
}

label
{
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: burlywood;
    transition: 0.3s;
}
input:focus ~ label
{
    width: 100%;
}
a
{
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0px;
}
a.forgot
{
    padding-bottom: 3px;
    border-bottom: 2px solid #EEE;
}
button,
input[type="submit"]
{
    border-radius: 20px;
    border: 1px solid blanchedalmond;
    background: burlywood;
    color: black;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.form-container input[type="submit"]
{
    margin-top: 17px;
    transition: 80ms ease-in;
}
.form-container input[type="submit"]:hover
{
    background: black;
    color: wheat;
}
.overlay-container
{
    position: absolute;
    top: 0;
    left: 60%;
    width: 40%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 9;
}
#overlayBtn
{
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 304px;
    transform: translateX(-50%);
    width: 143.67px;
    height: 40px;
    border: 1px solid #FFF;
    background: transparent;
    border-radius: 20px;
}
#overlayBtn:hover
{
    border: 1px solid black;
}
.overlay
{
    position: relative;
    background:cornflowerblue;
    color: white;
    left: -150%;
    height: 100%;
    width: 250%;
    transition: transform 0.6s ease-in-out;
}
.overlay-panel
{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    height: 100%;
    width: 340px;
    transition: 0.6s ease-in-out;
}
.overlay-left
{
    right: 60%;
    transform: translateX(-12%);
}
.overlay-right
{
    right: 0;
    transform: translateX(0%);
}
.overlay-panel h1
{
    color: white;
}
p
{
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 25px 0px 35px;
}

.overlay-panel button
{
    border: none;
    background-color: transparent;
}

.right-panel-active .overlay-container
{
    transform: translateX(-150%);
}
.right-panel-active .overlay
{
    transform: translateX(50%);
}
.right-panel-active .overlay-left
{
    transform: translateX(25%);
}
.right-panel-active .overlay-right
{
    transform: translateX(35%);
}
.right-panel-active .sign-in-container
{
    transform: translateX(20%);
    opacity: 0;
}
.right-panel-active .sign-up-container
{
    transform: translateX(66.7%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}
@keyframes show
{
    0%, 50%
    {
        opacity: 0;
        z-index: 1;
    }
    50.1%, 50%
    {
        opacity: 0;
        z-index: 5;
    }
}

.btnScaled
{
    animation: scaleBtn 0.6s;
}
@keyframes scaleBtn
{
    0%
    {
        width: 143.67px;
    }
    50%
    {
        width: 250px;
    }
    100%
    {
        width: 143.67px;
    }
}
footer 
{
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
}
footer mark 
{
    padding: 8px 30px;
    border-radius: 7px;
}
footer a 
{
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #003;
}