.authentication {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    gap: 20px;
}

.authentication__side {
    background: var(--color-white);
    padding: 0;
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.authentication__side--left {
    background: var(--color-black);
    color: var(--color-white);
    padding: 25px;
    border-radius: 14px;
}

.authentication__side--right {
    position: relative;
}

.authentication__side-background {
    background: url("../../images/authentication-background-W3Sfbzl.png") no-repeat center center;
    background-size: 220%;
}

.authentication__side-background--successful {
    background: url("../../images/authentication-successful-background-IpPKkhk.png") no-repeat center center;
    background-size: 220%;
    color: var(--color-white);
}

.authentication__side-background--error {
    background: url("../../images/authentication-error-background-v36eqCg.png") no-repeat center center;
    background-size: 220%;
    color: var(--color-white);
}

.authentication__title,
.authentication__subtitle,
.authentication__text {
    text-align: center;
}

.authentication__title {
    font-size: 28px;
    margin: 0 0 10px;
}

.authentication__subtitle {
    font-size: 16px;
    margin: 0 0 8px;
}

.authentication__text {
    font-size: 14px;
    margin: 0;
}

.authentication__side--left .authentication__title,
.authentication__side--left .authentication__subtitle {
    color: var(--color-white);
}

.authentication__side--left .authentication__title {
    display: none;
}

.authentication__side--left .authentication__subtitle {
    font-size: 18px;
}

.authentication__side--right .authentication__title {
    color: var(--color-black);
}

.authentication__subtitle--margin-bottom {
    margin: 0 0 20px;
}

.authentication__side--right .authentication__subtitle {
    color: var(--color-light-black);
}

.authentication__error {
    color: var(--color-red);
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 14px;
    text-align: center;
}

.authentication__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;

    img {
        width: 90px;
    }
}

.authentication__forgot {
    font-size: 16px;
    color: var(--color-light-black);
    transition: all 0.3s ease;
    margin: 12px 0 0;
    display: flex;
    gap: 3px;
    justify-content: center;

    p {
        margin: 0;
    }

    a {
        color: var(--color-gray);
        text-decoration-color: var(--color-black-hover);
        display: flex;
        align-items: center;
        font-weight: 500;

        svg {
            font-size: 17px;
        }
    }

    a:hover {
        color: var(--color-black-hover);
    }
}

.authentication__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    font-size: 13px;
    font-weight: 300;
    color: var(--color-gray);

    svg {
        font-size: 13px;
    }
}

.authentication__footer--mobile {
    display: none;
}

.form__errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form__errors ul li {
    margin: 3px 0 5px;
    padding: 0;
    color: var(--color-red);
    font-size: 13px;
    font-weight: 300;
}

@media (min-width: 992px) {
    .authentication {
        display: flex;
        width: 850px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: unset;
        gap: 0;
    }

    .authentication__side--left {
        flex: 1;
        padding: 50px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: unset;
        min-height: 100%;
    }

    .authentication__side--right {
        flex: 1;
        padding: 50px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: unset;
    }

    .authentication__side-background {
        background-size: cover;
    }

    .authentication__side--left .authentication__title {
        display: block;
    }

    .authentication__title {
        font-size: 28px;
    }

    .authentication__subtitle {
        font-size: 15px;
    }

    .authentication__text {
        font-size: 14px;
    }

    .authentication__forgot {
        font-size: 15px;

        a {
            svg {
                font-size: 16px;
            }
        }
    }

    .authentication__footer {
        font-size: 14px;

        svg {
            font-size: 16px;
        }
    }

    .authentication__forgot {
        margin-bottom: 6px;
    }

    .authentication__logo {
        img {
            width: 70px;
        }
    }

    .authentication__side--left .authentication__title {
        font-size: 36px;
    }

    .authentication__side--left .authentication__subtitle {
        font-size: 17px;
    }

    .authentication .button--secondary {
        padding: 10px 60px;
    }

    .authentication__side--left .authentication__subtitle--success {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .authentication__side--left .authentication__text {
        font-size: 17px;
    }

    .authentication__footer--mobile {
        display: block;
    }
}

@media (min-width: 1200px) {
    .authentication {
        width: 950px;
    }
}
