body {
    background-color: var(--color-bg-auth-page);
    background: linear-gradient(
        to right,
        var(--color-bg-gradient-1),
        var(--color-bg-gradient-2)
    );
}

.auth-container {
    background-color: var(--color-pitch-white);
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 800px;
    /* height: auto; */
}
.auth-container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
    color: var(--color-white);
}

.auth-container span {
    font-size: 13px;
}

.auth-container a {
    color: var(--color-dark);
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.auth-container button {
    background-color: transparent;
    color: var(--color-dark);
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid #212121;
    border-radius: 60px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-container button:active {
    background-color: transparent;
}
.auth-container button:hover {
    background-color: var(--color-dark);
    color: var(--color-pitch-white);
    border: 1px solid var(--color-white);
}

.auth-container button.hidden {
    background-color: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-white);
}
.auth-container button.hidden:hover {
    background-color: var(--color-pitch-black);
}

.auth-container form {
    background-color: var(--color-pitch-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    height: 100%;
}

.auth-container input:not([type="checkbox"]) {
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 60px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.auth-container input:focus {
    border: 1px solid #512da8;
}
.auth-container input.input-err {
    border: 1px solid red;
}

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

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

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

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

.auth-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 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: space-between;
    padding: 0.5rem;
    margin: 20px 0;
    gap: 5px;
}
.social-icons .icon {
    transition: all 0.2s ease;
}
.social-icons .icon:hover {
    border: none;
    background-color: #512da8;
    color: var(--color-white);
}

.social-icons a {
    border: 1px solid #ccc;
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
}

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

.auth-container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle {
    background-color: #512da8;
    height: 100%;
    background: linear-gradient(to right, #5c6bc0, #512da8);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}
.toggle-container a {
    color: var(--color-white);
}
.toggle-container h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.auth-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%);
}

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

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

.auth-container.active .toggle-right {
    transform: translateX(200%);
}
.logo {
    width: 4rem;
    height: 4rem;
}
.password-checklist {
    list-style-type: none;
    margin-top: 10px;
    padding-left: 0;
    font-size: 14px;
}
.password-checklist li {
    color: rgb(171, 166, 166);
    margin-bottom: 5px;
}
.password-checklist li.valid {
    color: green;
}
.password-checklist li::before {
    content: "✖ ";
    color: rgb(114, 98, 98);
}
.password-checklist li.valid::before {
    content: "✔ ";
    color: green;
}
/* ===========MEDIA QUERIES====== */

@media screen and (max-width: 576px) {
    .container {
        flex-grow: 1;
        width: 100%;
        min-height: 100%;
        padding-bottom: 2rem;
    }
    .toggle-container h1 {
        font-size: 1.5rem;
        letter-spacing: 0px;
    }
    .logo {
        width: 3rem;
        height: 3rem;
    }

    .auth-container {
        flex-grow: 1;
        /* min-height: 100%; */
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        position: absolute;
        top: 12%;
    }
    .auth-container form {
        padding: 12px;
    }
    .auth-container input {
        border-radius: 60px;
    }

    .auth-container button {
        font-size: 0.8rem;
        padding: 0.5rem 2rem;
    }
}
@media screen and (max-width: 400px) {
    .toggle-container h1 {
        font-size: 1.2rem;
    }
}
