@import url('https://fonts.cdnfonts.com/css/neris');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --linear-grad: linear-gradient(-45deg, #48479e, #4a49a7, #8180de, #C657E5);
    /* --linear-grad: linear-gradient(-45deg, #4158d0, #e560dc, #ffb374, #ef5f5f, #d840b6); */
    --grid-clr1: #48479e;
    --grid-clr2: #4a49a7;
    --grid-clr3: #8180de;
}

body {
    height: 100vh;
    background: transparent;
    display: grid;
    place-items: center;
    font-family: 'Neris', sans-serif;
}


.container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
    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;
}

form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 50px;
}

.logo {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    top: 20px;
    left: 50px;
    margin: 20px;
}

h1 {
    font-size: 20px;
    text-align: left;
    font-weight: lighter;
}

#white {
    color: #fff;
}

h2 {
    color: var(--grid-clr1);
    font-size: 50px;
    text-align: center;
    font-weight: bold;
    margin: 0;
}

.social-container {
    margin: 20px 0px;
}

.social-container a {
    border: 1px solid #606060;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0px 5px;
    height: 48px;
    width: 48px;
}

span {
    font-size: 16px;
    opacity: 0.5;
}

.infield {
    background: #f7f7ff;
    border-radius: 0.4em;
    position: relative;
    margin: 10px 0px;
    width: 70%;
    display: flex;
    align-items: center;
}

.infield i {
    margin-left: 4%;
}

.input {
    background-color: transparent;
    font-family: 'Neris', sans-serif;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 17px 20px;
    width: 100%;
}

label {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: var(--linear-grad);
    transition: 0.3s;
}

.infield small {
    font-family: 'Neris', sans-serif;
    font-size: 12px;
    color: red;
    position: absolute;
    left: 10%;
    top: 100%;
    width: 100%;
}

.input:focus ~ label {
    width: 100%;
}

a {
    color: #333;
    font-size: 18px;
    text-decoration: none;    
    margin: 20px 0;
}

a.forgot {
    font-size: 16px;
    padding-bottom: 3px;
    border-bottom: 2px solid #eee;
}

button {
    font-family: 'Neris', sans-serif;
    border-radius: 2em;
    border: none;
    background: var(--grid-clr1);
    color: #fff;
    font-size: 18px;
    padding: 1em 6em;
    text-transform: uppercase;
}

.button {
    font-family: 'Neris', sans-serif;
    border-radius: 2em;
    border: none;
    background: var(--grid-clr1);
    color: #fff;
    font-size: 18px;
    padding: 1em 6em;
    text-transform: uppercase;
    margin-top: 1em;
}

.form-container button {
    margin-top: 17px;
    transition: 80ms ease-in;
}

.form-container button:hover {
    background: var(--grid-clr2);
}

.form-container button:active {
    transform: scale(0.95);
}

.form-container .button:hover {
    background: var(--grid-clr2);
}

.form-container .button:active {
    transform: scale(0.95);
}

.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: 59.5%;
    transform: translate(-50%, -40%);
    width: 45%;
    height: 3em;
    border: 1px solid #fff;
    background: transparent;
    margin-top: 2em;
    padding: 0em 0em;
}

.overlay {
    background: var(--linear-grad);
    background-size: 400% 400%;
    animation: bg 17s ease infinite;
    margin: 0;
    position: relative;
    color: #fff;
    left: -150%;
    height: 100%;
    width: 250%;
    transition: transform 0.6s ease-in-out;
}

@keyframes bg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.overlay img {
    position: relative;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px 40px;
    text-align: center;
    height: 100%;
    width: 40%;
    transition: 0.6s ease-in-out;
}

.overlay-left {
    right: 60%;
    transform: translateX(-12%);
}

.overlay-right {
    right: 0;
    transform: translateX(0%);
}

.overlay-panel h2 {
    color: #fff;
}

p {
    font-size: 23px;
    font-weight: 100;
    margin: 20px 0;
}

.overlay-panel button {
    margin-top: 17px;
    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%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.btnScaled {
    animation: scaleBtn 0.6s;
}

@keyframes scaleBtn {
    0% {
        height: 3em;
        width: 45%;
    }
    50% {
        height: 3.2em;
        width: 70%;
    }
    100% {
        height: 3em;
        width: 45%;
    }

}