/* Centers the title supplied by the standard Bitrix authorization component. */
.auth-tabs__title {
    display: block;
    text-align: center;
}

/* Shared presentation for Bitrix validation and success messages. */
.auth-form__message {
    border-radius: .3125rem;
    padding: .75rem 1rem;
    font-size: .8125rem;
    line-height: 1.4;
}

.auth-form__message_error {
    color: var(--text-error-color);
    background: rgba(205, 62, 62, .08);
}

.auth-form__message_success {
    color: var(--text-green-color);
    background: rgba(49, 157, 107, .08);
}

/* Secondary links such as password recovery and registration. */
.auth-form__secondary {
    display: block;
    margin-top: .75rem;
    text-align: center;
}

/* Authorized-user actions rendered by the Bitrix personal section. */
.auth-account__actions {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
}

/* Spacing needed when a standard component is embedded in the standalone auth page. */
.auth-page__component > .auth-page__form {
    margin-top: 1.5rem;
}

/* Explanatory text returned by auth components inside the drawer. */
.auth-page__component .auth-drawer__text {
    margin-top: 1rem;
    text-align: center;
}

/* Keeps component-generated agreement links consistent with the layout palette. */
.auth-page__component .auth-form__agreement a {
    color: var(--text-green-color);
}

/* Adapts bitrix:main.userconsent.request markup to the project form layout. */
.auth-form__user-consent .main-user-consent-request {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.auth-form__user-consent .main-user-consent-request input {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    margin: 0.1rem 0 0;
    accent-color: var(--bg-green-color);
}

.auth-form__user-consent .main-user-consent-request-announce,
.auth-form__user-consent .main-user-consent-request-announce-link {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--text-secondary-color);
    font-size: 0.8125rem;
    line-height: 1.46154;
}
