section {
    margin: 15rem 0 5rem;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

section .container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(119, 118, 118, 0.281);
    position: relative;
    overflow: hidden;
    width: 800px;
    max-width: 90%;
    min-height: 580px;
}

section .container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

section .container span {
    font-size: 12px;
}

section .container a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

section .container button {
    background: var(--main-color);
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

section .container button:hover{
    background: var(--btn-hover-color);
}

section .container button.hidden {
    background-color: transparent;
    border-color: #fff;
}
section .container button.hidden:hover{
    background: #fff;
    color: var(--main-color);
}

section .container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

section .container input {
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

section .container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

section .container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}


.social-icons a {
    border: 1px solid var(--main-color);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    transition: 0.3s;
}
.social-icons a i{
    font-size: 1.2rem;
}
.social-icons a:first-child{
    color: #d35236;
}
.social-icons a:nth-child(2){
    color: #2382f9;
}
.social-icons a:nth-child(3){
    color: #4a4a4a;
}
.social-icons a:last-child{
    color:  #0a78b5;
}
.social-icons a:hover{
    color: #fff;
    background-color: var(--main-color);
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 20px;
    z-index: 980;
}

section .container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 20px;
}

.toggle {
    background: var(--main-color);
    height: 100%;
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

section .container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

section .container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}
section .container.active .toggle-right {
    transform: translateX(200%);
}