.alert {
    margin-top: 10px;
}

.alert-error {
    color: #E5221C;
}

.alert-warning {
    color: #E49208;
}

.alert-info {
    color: #EEA802;
}

.alert-success {
    color: #1FB01C;
}

@font-face {
    font-family: "Rising Sun";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/RisingSun-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Rising Sun";
    font-style: normal;
    font-weight: 700;
    src: local("Rising Sun Bold"), local("Rising Sun");
}

:root {
    --rsl-color-text: #121212;
    --rsl-color-primary: #636C4D;
    --rsl-color-bg: #F4F5F6;
    --rsl-color-border: #E1E1E1;
    --rsl-color-muted: #898989;
    --rsl-color-error: #FF3C3C;
    --rsl-color-white: #FFFFFF;
    --rsl-color-neutral-60: rgba(34, 34, 34, 0.6);
    --rsl-color-white-50: rgba(255, 255, 255, 0.5);
    --rsl-color-primary-pressed: #596145;
    --rsl-font: "Rising Sun", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    display: block;
    background: var(--rsl-color-bg);
    color: var(--rsl-color-text);
    font-family: var(--rsl-font);
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: var(--rsl-color-primary);
}

a:hover {
    opacity: 0.6;
}

.rsl-language-switch {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    color: var(--rsl-color-text);
    font-family: var(--rsl-font);
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
}

.rsl-language-switch:hover,
.rsl-language-switch:focus {
    opacity: 1;
    color: var(--rsl-color-primary);
}

.rsl-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 632px;
    background: var(--rsl-color-bg);
}

@media (max-width: 1280px) {
    .sign-in {
        position: relative;
    }

    .rsl-language-switch {
        top: 32px;
        right: 32px;
        left: auto;
    }
}

@media (max-width: 600px) {
    .rsl-language-switch {
        top: 0;
        right: 0;
    }
}

.rsl-auth-main {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
}

.rsl-auth-card,
.sign-in {
    width: 632px;
    max-width: 100%;
    margin: 0;
    padding: 32px;
    box-sizing: border-box;
    background: var(--rsl-color-white);
    color: var(--rsl-color-text);
    font-family: var(--rsl-font);
    font-size: 16px;
    line-height: 24px;
}

.rsl-auth-header,
.sign-in__header,
.first-step-registration__header,
.second-step-registration__header {
    align-items: baseline;
    gap: 24px;
}

.sign-in__header-text,
.first-step-registration__header-text,
.second-step-registration__header-text {
    color: var(--rsl-color-text);
    font-family: var(--rsl-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

.sign-in__header-link,
.first-step-registration__header-link,
.second-step-registration__header-link,
.first-step-registration__navigate-to-auth,
.first-step-registration__login,
.second-step-registration__login,
.sign-in__forgot-password,
.login-sms__back-password {
    color: var(--rsl-color-primary);
    font-size: 18px;
    line-height: 24px;
    text-decoration: none;
}

.sign-in__forgot-password {
    font-size: 16px;
}

.sign-in__form {
    margin-top: 24px;
}

.first-step-registration__form,
.second-step-registration__form {
    margin-top: 32px;
}

.sign-in__form-esia-separator {
    height: 1px;
    background-color: var(--rsl-color-border);
    margin-top: 32px;
    margin-right: -32px;
    margin-left: -32px;
}

@media (max-width: 600px) {
    .sign-in__form-esia-separator {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }
}

.first-step-registration__form.rsl-registration-email-form {
    margin-right: -32px;
    margin-left: -32px;
    padding: 24px 32px 0 32px;
    border-top: 1px solid var(--rsl-color-border);
}

.rsl-esia-card {
    margin-top: 24px;
    background: var(--rsl-color-bg);
}

.rsl-esia-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    color: var(--rsl-color-text);
    text-decoration: none;
}

.rsl-esia-card__link:hover {
    opacity: 1;
}

.rsl-esia-card__service {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rsl-esia-card__icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--rsl-color-border);
    border-radius: 100px;
    box-sizing: border-box;
}

.rsl-esia-card__text {
    color: var(--rsl-color-text);
    font-size: 18px;
    line-height: 24px;
}

.rsl-esia-card__button {
    padding: 10px 20px;
    background: var(--rsl-color-primary);
    color: var(--rsl-color-white);
    font-size: 20px;
    line-height: 28px;
    white-space: nowrap;
}

.rsl-esia-card__link:hover .rsl-esia-card__button,
.rsl-esia-card__link:focus-visible .rsl-esia-card__button {
    background-color: var(--rsl-color-primary);
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.rsl-esia-card__link:active .rsl-esia-card__button {
    background-color: var(--rsl-color-primary-pressed);
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.sign-in__form-field,
.first-step-registration__form-field,
.second-step-registration__form-field {
    margin-bottom: 16px;
}

.sign-in__form-label,
.first-step-registration__label-field,
.second-step-registration__label-field {
    margin-bottom: 8px;
    color: var(--rsl-color-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

input[type='text']:-webkit-autofill,
input[type='text']:-webkit-autofill:hover,
input[type='text']:-webkit-autofill:focus,
input[type='password']:-webkit-autofill,
input[type='password']:-webkit-autofill:hover,
input[type='password']:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--rsl-color-bg) inset;
  -webkit-text-fill-color: #111;
  caret-color: #111;
}

.sign-in__form-input,
.first-step-registration__input-field,
.second-step-registration__input-field,
select.first-step-registration__input-field {
    width: 100%;
    height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--rsl-color-border);
    border-radius: 0;
    box-sizing: border-box;
    background: var(--rsl-color-bg);
    color: var(--rsl-color-text);
    font-family: var(--rsl-font);
    font-size: 16px;
    line-height: 24px;
    text-indent: 0;
}

.sign-in__form-input:focus,
.first-step-registration__input-field:focus,
.second-step-registration__input-field:focus {
    border-color: var(--rsl-color-muted);
    outline: none;
}

.sign-in__password-input {
    position: relative;
}

.sign-in__password-input .sign-in__form-input,
.sign-in__password-input .second-step-registration__input-field {
    padding-right: 56px;
}

.sign-in__password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rsl-color-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.sign-in__password-toggle:focus {
    outline: 1px solid var(--rsl-color-muted);
    outline-offset: 2px;
}

.sign-in__password-toggle-icon {
    display: none;
    fill: currentColor;
}

.sign-in__password-input:focus-within .sign-in__password-toggle-icon_hidden {
    display: block;
}

.sign-in__password-input:focus-within .sign-in__password-toggle-icon_visible,
.sign-in__password-input:focus-within .sign-in__password-toggle_visible .sign-in__password-toggle-icon_hidden {
    display: none;
}

.sign-in__password-input:focus-within .sign-in__password-toggle_visible .sign-in__password-toggle-icon_visible {
    display: block;
}

.input_is_failed {
    border-color: var(--rsl-color-error) !important;
    background: var(--rsl-color-bg);
}

.sign-in__exception,
.first-step-registration__exception,
.second-step-registration__exception,
.alert-error {
    color: var(--rsl-color-error);
    padding-top: 8px;
}

.alert {
    margin: 0 0 24px;
    margin-top: 15px;
    padding: 16px 24px;
    border-left: 8px solid var(--rsl-color-primary);
    background: var(--rsl-color-bg);
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.sign-in__info {
    margin-top: 16px;
    padding: 16px 16px;
    border-left: 8px solid var(--rsl-color-primary);
    background: var(--rsl-color-bg);
    gap: 16px;
}

.sign-in__info-text {
    margin: 0;
    color: var(--rsl-color-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.sign-in__info-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.sign-in__info-icon img {
    display: block;
    width: 32px;
    height: 32px;
}

.sign-in__options {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}

#kc-form-options label {
    display: flex;
    align-items: center;
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.sign-in__action,
.first-step-registration__action,
.second-step-registration__action {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    align-items: stretch;
}

.first-step-registration__action {
    margin-top: 0;
}

.sign-in__entry-button,
.first-step-registration__to-next-step,
.second-step-registration__register,
input.sign-in__entry-button,
.rsl-verify-email__cabinet-link {
    width: 100%;
    height: 48px;
    border: 1px solid var(--rsl-color-text);
    border-radius: 0;
    background: transparent;
    color: var(--rsl-color-text);
    cursor: pointer;
    font-family: var(--rsl-font);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.rsl-verify-email__cabinet-link {
    color: #fff !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    text-align: center;
    text-decoration: none;
}

.sign-in__entry-button:hover:not(:disabled),
.sign-in__entry-button:focus-visible:not(:disabled),
.first-step-registration__to-next-step:hover:not(:disabled),
.first-step-registration__to-next-step:focus-visible:not(:disabled),
.second-step-registration__register:hover:not(:disabled),
.second-step-registration__register:focus-visible:not(:disabled),
input.sign-in__entry-button:hover:not(:disabled),
input.sign-in__entry-button:focus-visible:not(:disabled),
.rsl-verify-email__cabinet-link:hover,
.rsl-verify-email__cabinet-link:focus,
.rsl-verify-email__cabinet-link:focus-visible,
.rsl-reset-password-form__back:hover,
.rsl-reset-password-form__back:focus-visible {
    border-color: var(--rsl-color-text);
    background: var(--rsl-color-bg);
    color: var(--rsl-color-text);
    opacity: 1;
}

.sign-in__entry-button:active:not(:disabled),
.first-step-registration__to-next-step:active:not(:disabled),
.second-step-registration__register:active:not(:disabled),
input.sign-in__entry-button:active:not(:disabled),
.rsl-verify-email__cabinet-link:active,
.rsl-reset-password-form__back:active {
    border-color: var(--rsl-color-text);
    background: var(--rsl-color-text);
    color: var(--rsl-color-white);
    opacity: 1;
}

.sign-in__entry-button:disabled,
.first-step-registration__to-next-step:disabled,
.second-step-registration__register:disabled {
    border-color: var(--rsl-color-neutral-60);
    color: var(--rsl-color-neutral-60);
    cursor: default;
    opacity: 0.5;
}

.rsl-registration-submit,
.sign-in__entry-button.rsl-reset-password-form__submit,
input.sign-in__entry-button.rsl-reset-password-form__submit,
.rsl-verify-email__cabinet-link {
    border-color: var(--rsl-color-primary);
    background-color: var(--rsl-color-primary);
    background-image: none;
    color: var(--rsl-color-white);
}

.rsl-registration-submit:hover:not(:disabled),
.rsl-registration-submit:focus-visible:not(:disabled),
.sign-in__entry-button.rsl-reset-password-form__submit:hover:not(:disabled),
.sign-in__entry-button.rsl-reset-password-form__submit:focus-visible:not(:disabled),
input.sign-in__entry-button.rsl-reset-password-form__submit:hover:not(:disabled),
input.sign-in__entry-button.rsl-reset-password-form__submit:focus-visible:not(:disabled),
.rsl-verify-email__cabinet-link:hover,
.rsl-verify-email__cabinet-link:focus,
.rsl-verify-email__cabinet-link:focus-visible {
    border-color: var(--rsl-color-primary);
    background-color: var(--rsl-color-primary);
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    color: var(--rsl-color-white);
}

.rsl-registration-submit:active:not(:disabled),
.sign-in__entry-button.rsl-reset-password-form__submit:active:not(:disabled),
input.sign-in__entry-button.rsl-reset-password-form__submit:active:not(:disabled),
.rsl-verify-email__cabinet-link:active {
    border-color: var(--rsl-color-primary-pressed);
    background-color: var(--rsl-color-primary-pressed);
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    color: var(--rsl-color-white);
}

.rsl-registration-submit:disabled,
.sign-in__entry-button.rsl-reset-password-form__submit:disabled,
input.sign-in__entry-button.rsl-reset-password-form__submit:disabled {
    border-color: var(--rsl-color-primary);
    background-color: var(--rsl-color-primary);
    background-image: none;
    color: var(--rsl-color-white-50);
    opacity: 0.7;
}

.rsl-reset-password-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rsl-reset-password-form__description {
    margin: 0;
    color: var(--rsl-color-text);
    font-size: 18px;
    line-height: 24px;
}

.rsl-reset-password-form .sign-in__form-field,
.rsl-reset-password-form .sign-in__action {
    margin: 0;
}

.rsl-reset-password-form__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 1px solid var(--rsl-color-text);
    color: var(--rsl-color-text);
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
}

.sign-in__forgot-password,
.login-sms__back-password,
.first-step-registration__login,
.second-step-registration__login {
    margin: 0;
    text-align: center;
}

.sign-in__alternative-entrance,
.first-step-registration__alternative-enterence {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px -32px -32px;
    padding: 24px 32px 32px;
    border-top: 1px solid var(--rsl-color-border);
    color: var(--rsl-color-text);
}

.sign-in__alternative-entrance-text,
.first-step-registration__alternative-enterence-text {
    margin: 0;
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.sign-in__services,
.first-step-registration__services {
    width: auto;
    justify-content: flex-start;
    gap: 24px;
}

.sign-in__service-type,
.first-step-registration__service-type {
    width: 40px;
    height: 40px;
    border: 1px solid var(--rsl-color-border);
    border-radius: 100px;
    box-sizing: border-box;
}

.first-step-registration,
.second-step-registration {
    width: 100%;
}

.first-step-registration__content,
.second-step-registration__content {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--rsl-color-text);
    font-family: var(--rsl-font);
    font-size: 16px;
}

.first-step-registration__notification,
.first-step-registration__mobile-notification {
    margin-top: 24px;
    padding: 16px 24px;
    border-left: 8px solid var(--rsl-color-primary);
    border-radius: 0;
    background: var(--rsl-color-bg);
    line-height: 24px;
}

.first-step-registration__notification-text {
    margin: 16px 0;
}

.first-step-registration__step-block,
.second-step-registration__step-block {
    margin-top: 24px;
}

.first-step-registration__step,
.second-step-registration__step {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.first-step-registration__mandatory-fields,
.second-step-registration__mandatory-fields {
    color: var(--rsl-color-muted);
    font-size: 14px;
    line-height: 20px;
}

.second-step-registration__rules {
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.second-step-registration__rules-link {
    color: var(--rsl-color-text);
    text-decoration: underline;
}

.second-step-registration__rules input,
.checkbox input,
#kc-form-options input,
.first-step-registration input[type="checkbox"],
.rsl-auth-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 8px 0 0;
    accent-color: var(--rsl-color-primary);
}

.second-step-registration__rules input {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.rsl-checkbox,
.rsl-checkbox-row {
    display: flex;
    gap: 8px;
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.rsl-checkbox {
    align-items: center;
}

.rsl-checkbox-row {
    align-items: flex-start;
}

.rsl-checkbox input[type="checkbox"],
.rsl-checkbox-row input[type="checkbox"] {
    position: relative;
    flex: 0 0 24px;
    inline-size: 24px;
    block-size: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
}

#kc-form-options .rsl-checkbox input[type="checkbox"] {
    flex: 0 0 24px;
    inline-size: 24px;
    block-size: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    margin: 0;
}

.rsl-checkbox input[type="checkbox"]::before,
.rsl-checkbox-row input[type="checkbox"]::before {
    position: absolute;
    inset: 1.25px;
    border: 1.5px solid var(--rsl-color-text);
    border-radius: 7px;
    background: var(--rsl-color-white);
    box-sizing: border-box;
    content: "";
    pointer-events: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rsl-checkbox input[type="checkbox"]::after,
.rsl-checkbox-row input[type="checkbox"]::after {
    position: absolute;
    box-sizing: border-box;
    content: "";
    opacity: 0;
    pointer-events: none;
}

.rsl-checkbox input[type="checkbox"]:checked::before,
.rsl-checkbox-row input[type="checkbox"]:checked::before {
    border-color: var(--rsl-color-primary);
    background: var(--rsl-color-primary);
}

.rsl-checkbox input[type="checkbox"]:checked::after,
.rsl-checkbox-row input[type="checkbox"]:checked::after {
    top: 8px;
    left: 7px;
    width: 10px;
    height: 6px;
    border: solid var(--rsl-color-white);
    border-width: 0 0 1.5px 1.5px;
    opacity: 1;
    transform: rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .rsl-checkbox:hover input[type="checkbox"]:not(:checked):not(:disabled)::before,
    .rsl-checkbox-row:hover input[type="checkbox"]:not(:checked):not(:disabled)::before,
    .rsl-checkbox input[type="checkbox"]:not(:checked):hover::before,
    .rsl-checkbox-row input[type="checkbox"]:not(:checked):hover::before {
        border-color: var(--rsl-color-primary);
    }

    .rsl-checkbox:hover input[type="checkbox"]:not(:checked):not(:disabled)::after,
    .rsl-checkbox-row:hover input[type="checkbox"]:not(:checked):not(:disabled)::after,
    .rsl-checkbox input[type="checkbox"]:not(:checked):hover::after,
    .rsl-checkbox-row input[type="checkbox"]:not(:checked):hover::after {
        top: 8px;
        left: 7px;
        width: 10px;
        height: 6px;
        border: solid var(--rsl-color-primary);
        border-width: 0 0 1.5px 1.5px;
        opacity: 1;
        transform: rotate(-45deg);
    }

    .rsl-checkbox:hover input[type="checkbox"]:checked:not(:disabled)::after,
    .rsl-checkbox-row:hover input[type="checkbox"]:checked:not(:disabled)::after,
    .rsl-checkbox input[type="checkbox"]:checked:hover::after,
    .rsl-checkbox-row input[type="checkbox"]:checked:hover::after {
        top: 11.25px;
        left: 8.75px;
        width: 6.75px;
        height: 0;
        border: 0;
        border-top: 1.5px solid var(--rsl-color-white);
        opacity: 1;
        transform: none;
    }
}

.rsl-checkbox input[type="checkbox"]:focus-visible,
.rsl-checkbox-row input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--rsl-color-primary);
    outline-offset: 2px;
}

.rsl-checkbox input[type="checkbox"]:disabled,
.rsl-checkbox-row input[type="checkbox"]:disabled {
    cursor: default;
    opacity: 0.6;
}

.rsl-checkbox input[type="checkbox"]:disabled::before,
.rsl-checkbox-row input[type="checkbox"]:disabled::before,
.rsl-checkbox input[type="checkbox"]:disabled:checked::before,
.rsl-checkbox-row input[type="checkbox"]:disabled:checked::before {
    border-color: var(--rsl-color-muted);
    background: var(--rsl-color-white);
}

.rsl-checkbox input[type="checkbox"]:disabled:checked::after,
.rsl-checkbox-row input[type="checkbox"]:disabled:checked::after {
    border-color: var(--rsl-color-muted);
}

.rsl-checkbox input[type="checkbox"],
.rsl-checkbox-row input[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display:block' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' stroke='%23121212' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.rsl-checkbox input[type="checkbox"]::before,
.rsl-checkbox-row input[type="checkbox"]::before,
.rsl-checkbox input[type="checkbox"]::after,
.rsl-checkbox-row input[type="checkbox"]::after {
    display: none;
}

.rsl-checkbox input[type="checkbox"]:checked,
.rsl-checkbox-row input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display:block' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' fill='%23636C4D' stroke='%23636C4D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.75 12L10.58 14.83L16.25 9.17' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (hover: hover) and (pointer: fine) {
    .rsl-checkbox:hover input[type="checkbox"]:not(:checked):not(:disabled),
    .rsl-checkbox-row:hover input[type="checkbox"]:not(:checked):not(:disabled),
    .rsl-checkbox input[type="checkbox"]:not(:checked):hover,
    .rsl-checkbox-row input[type="checkbox"]:not(:checked):hover {
        background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display:block' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' stroke='%23636C4D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 11.83L10.83 14.66L16.5 9' stroke='%23636C4D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath opacity='0' d='M23.5 0.5V23.5H0.5V0.5H23.5Z' stroke='%23636C4D'/%3E%3C/svg%3E");
    }

    .rsl-checkbox:hover input[type="checkbox"]:checked:not(:disabled),
    .rsl-checkbox-row:hover input[type="checkbox"]:checked:not(:disabled),
    .rsl-checkbox input[type="checkbox"]:checked:hover,
    .rsl-checkbox-row input[type="checkbox"]:checked:hover {
        background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display:block' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' fill='%23636C4D' stroke='%23636C4D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.6667 12H9' stroke='white' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
}

.rsl-checkbox input[type="checkbox"]:disabled,
.rsl-checkbox-row input[type="checkbox"]:disabled {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display:block' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' stroke='%23898989' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath opacity='0' d='M23.5 0.5V23.5H0.5V0.5H23.5Z' stroke='%23898989'/%3E%3C/svg%3E");
}

.rsl-checkbox input[type="checkbox"]:disabled:checked,
.rsl-checkbox-row input[type="checkbox"]:disabled:checked {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='100%25' height='100%25' overflow='visible' style='display:block' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' stroke='%23898989' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 11.83L10.83 14.66L16.5 9' stroke='%23898989' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath opacity='0' d='M23.5 0.5V23.5H0.5V0.5H23.5Z' stroke='%23898989'/%3E%3C/svg%3E");
}

.rsl-checkbox input[type="checkbox"]:disabled + .rsl-checkbox__label,
.rsl-checkbox-row input[type="checkbox"]:disabled + .rsl-checkbox__label {
    color: var(--rsl-color-muted);
}

.rsl-checkbox__label {
    min-height: 24px;
    font-weight: 400;
}

.rsl-checkbox input[type="checkbox"]:checked + .rsl-checkbox__label,
.rsl-checkbox-row input[type="checkbox"]:checked + .rsl-checkbox__label {
    font-weight: 700;
}

.rsl-result {
    margin-top: 24px;
    color: var(--rsl-color-text);
    font-size: 18px;
    line-height: 24px;
}

.rsl-result .instruction {
    margin: 0 0 16px;
}

.rsl-result a {
    color: var(--rsl-color-primary);
}

.rsl-result_error {
    padding: 16px 24px;
    border-left: 8px solid var(--rsl-color-error);
    background: var(--rsl-color-bg);
}

.rsl-readonly-value {
    margin: 0;
    color: var(--rsl-color-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.rsl-authenticator-list {
    margin-top: 24px;
}

.rsl-authenticator-list__item {
    margin-bottom: 16px;
    padding: 16px 24px;
    background: var(--rsl-color-bg);
    color: var(--rsl-color-primary);
    cursor: pointer;
    font-size: 18px;
    line-height: 24px;
}

.rsl-authenticator-list__help {
    padding-top: 4px;
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.rsl-consent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.rsl-consent-list .checkbox label {
    display: flex;
    align-items: flex-start;
    color: var(--rsl-color-text);
    font-size: 16px;
    line-height: 24px;
}

.rsl-link-button {
    border: 0;
    background: transparent;
    font-family: var(--rsl-font);
    font-size: 16px;
    line-height: 24px;
}

.rsl-auth-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: url("../img/rsl-bg.jpg") center / cover no-repeat;
}

.rsl-auth-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 294px;
    height: 100px;
    transform: translate(-50%, -50%);
}

.rsl-auth-mobile-logo {
    display: none;
}

@media (max-width: 1280px) {
    .rsl-auth-page {
        display: block;
        min-height: 100vh;
        background: url("../img/rsl-bg.jpg") center / cover no-repeat;
    }

    .rsl-auth-main {
        min-height: 100vh;
        padding: 50px 68px;
        align-items: center;
    }

    .rsl-auth-card,
    .sign-in {
        width: 632px;
    }

    .rsl-auth-mobile-logo {
        display: block;
        width: 147px;
        height: 50px;
        margin-bottom: 32px;
        filter: brightness(0);
    }

    .rsl-auth-visual {
        display: none;
    }

    .rsl-auth-header,
    .sign-in__header {
        flex-direction: column;
        gap: 0;
    }

    .sign-in__header-link {
        padding-top: 10px;
    }

    .sign-in__header-text,
    .first-step-registration__header-text,
    .second-step-registration__header-text {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .rsl-auth-page {
        background: var(--rsl-color-white);
    }

    .rsl-auth-main {
        min-height: 100vh;
        width: 100%;
        padding: 16px 16px 16px;
        align-items: flex-start;
        background: var(--rsl-color-white);
    }

    .rsl-auth-card,
    .sign-in {
        padding: 0;
        font-size: 16px;
    }

    .rsl-auth-mobile-logo {
        width: 147px;
        height: 50px;
        margin-bottom: 14px;
    }

    .rsl-auth-header,
    .sign-in__header {
        flex-direction: column;
        gap: 0;
    }

    .first-step-registration__header,
    .second-step-registration__header {
        flex-direction: row;
        align-items: flex-start;
    }

    .sign-in__header-text,
    .first-step-registration__header-text,
    .second-step-registration__header-text {
        font-size: 24px;
        line-height: 36px;
        white-space: normal;
    }

    .sign-in__form-input,
    .first-step-registration__input-field,
    .second-step-registration__input-field,
    select.first-step-registration__input-field {
        font-size: 16px;
    }

    .sign-in__alternative-entrance,
    .first-step-registration__alternative-enterence {
        margin: 32px 0 0;
        padding: 24px 0 0;
    }

  .first-step-registration__form.rsl-registration-email-form {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .sign-in__services,
    .first-step-registration__services {
        gap: 16px;
        flex-wrap: wrap;
    }

    .sign-in__services, .first-step-registration__services {
        justify-content: space-between;
    }

    .rsl-esia-card__link {
        align-items: flex-start;
        flex-direction: column;
    }

    .rsl-esia-card__button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .sign-in__options {
        flex-direction: column;
        gap: 12px;
    }

    .sign-in__forgot-password {
        text-align: left;
    }
}
