#modalAuth .modal-title, #modalAuth .title {
    color: #fff;
    font-family: "Roboto Slab", sans-serif;
    text-align: center;
}

#modalAuth .modal-title {
    padding-left: 24px;
    font-size: 24px;
}

#modalAuth .title {
    margin: 10px 0 10px 0;
    font-size: 12px;
}

#modalAuth a.dashed-gray {
    color: #888888;
    border-bottom: 0;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

#modalAuth a.dashed-gray:hover,
#modalAuth a.dashed-gray:focus {
    text-decoration-line: underline;
    text-decoration-style: dashed;
}

#modalAuth p { margin: 10px 0 0 0; }

#userAuth {
    width: 100%;
    max-width: 300px;
    margin: auto;
    color: #b6b6b6;
}

#userAuth a { color: #f37031; }

#userAuth input { margin-top: 10px; }

#userAuth .check { margin: 10px 0 0 0; }

#userAuth .buttons {
    margin: 10px 0 0 0;
    text-align: center;
}

#userAuth .others {
    margin: 10px 0 0 0;
    text-align: center;
}

#userAuth .social {
    margin: 11px 0 0 0;
    border-top: 1px solid #4f4f4f;
    text-align: center;
}

#userAuth .social a {
    display: inline-block;
    margin-right: 7px;
    width: 31px;
    height: 31px;
    outline: none;
}

#userAuth .social .user-auth__legal-link {
    display: inline;
    margin-right: 1px;
    white-space: normal;
}

#userAuth label {
    font-weight: normal;
    font-size: 12px;
}

#userAuth .alert-danger a {
    color: #9a100f;
    text-decoration: underline;
}

#userAuth .alert-danger a:hover { text-decoration: underline; }

#userAuth .text-center { padding: 25px 0; }

.content-auth { padding: 5px 20px 20px 20px; }

.content-auth a { text-decoration: underline; }

.content-auth a:hover { text-decoration: underline; }

.userAuthRegisterManualPassword {
    border-bottom: 0;
    outline: none;
}

.userAuthRegisterManualPassword:hover { border-bottom: 0; }

/* Адаптируем модальные формы авторизации для экранов мобильных устройств */
@media (max-width: 479px) {
    #modalAuth .modal-dialog {
        width: auto;
        min-width: 0;
        margin: 10px;
        padding: 8px;
    }

    #modalAuth .modal-content {
        min-width: 0;
    }

    #modalAuth .modal-body {
        /* Первое значение высоты служит запасным для браузеров без поддержки динамической области просмотра */
        max-height: calc(100vh - 36px);
        max-height: calc(100dvh - 36px);
        padding: 5px 8px 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #modalAuth .close-modal {
        width: 44px;
        height: 44px;
        margin-top: -8px;
        line-height: 36px;
    }

    #modalAuth .modal-title {
        padding: 0 44px;
        font-size: 22px;
        line-height: 1.25;
    }

    #userAuth input.form-control {
        font-size: 16px;
        min-height: 44px;
    }

    #userAuth .buttons .btn {
        width: 100%;
        min-height: 44px;
        white-space: normal;
    }

    #userAuth .others {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    #userAuth .social > a {
        width: 44px;
        height: 44px;
        margin: 0 2px;
        line-height: 44px;
    }

    #userAuth .social .title {
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .content-auth {
        padding: 5px 12px 15px;
    }
}
