/* Auth form checkbox presentation. Keeps existing PremiumBox checkbox behavior and field names. */
body .standart_window_content_ins .checkpersdata_line,
body .standart_window_content_ins .reg_line {
  margin: 0 0 16px;
}

body .standart_window_content_ins .checkpersdata_line .checkbox label,
body .standart_window_content_ins .reg_line .checkbox label {
  position: relative;
  display: block;
  min-height: 26px;
  margin: 0;
  padding: 1px 0 1px 36px !important;
  color: var(--fm-neutral-500);
  cursor: pointer;
  font: var(--fm-type-body-s-regular);
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
  text-align: left;
  align-content: end;
}

body .standart_window_content_ins .checkpersdata_line .checkbox label::before,
body .standart_window_content_ins .reg_line .checkbox label::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid #cbd0de;
  border-radius: 5px;
  background: var(--fm-neutral-0);
  content: '';
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label:hover::before,
body .standart_window_content_ins .reg_line .checkbox label:hover::before {
  border-color: #cbd0de;
}

body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox.checked
  label::before,
body .standart_window_content_ins .reg_line .checkbox.checked label::before,
body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label:has(input:checked)::before,
body
  .standart_window_content_ins
  .reg_line
  .checkbox
  label:has(input:checked)::before {
  border-color: #cbd0de;
  background-color: #fff;
  background-image: url('../images/icons/exfmpro-input-checkbox.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 9px;
}

body .standart_window_content_ins .checkpersdata_line .checkbox label a,
body .standart_window_content_ins .reg_line .checkbox label a {
  color: var(--fm-primary-500);
  text-decoration: none;
}

body .standart_window_content_ins .checkpersdata_line .checkbox label a:hover,
body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label
  a:focus-visible,
body .standart_window_content_ins .reg_line .checkbox label a:hover,
body .standart_window_content_ins .reg_line .checkbox label a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  body .standart_window_content_ins .checkpersdata_line,
  body .standart_window_content_ins .reg_line {
    margin-bottom: 12px;
  }

  body .standart_window_content_ins .checkpersdata_line .checkbox label,
  body .standart_window_content_ins .reg_line .checkbox label {
    font: var(--fm-type-caption-regular);
    letter-spacing: var(--fm-type-caption-regular-letter-spacing);
  }
}

/* Registration and login field presentation.
 * Form type is assigned by fm-auth.js from the existing PremiumBox fields:
 * registration has .field_name_pass2; the two-field form is login.
 */
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title {
  margin: 0 0 16px !important;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  .form_field_label {
  position: static !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  .form_field_label_ins {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline !important;
  color: var(--fm-neutral-900);
  font: var(--fm-type-body-s-regular);
  line-height: 150%;
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  .req,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  .req {
  color: var(--fm-primary-500);
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  .form_field_ins,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  .form_field_ins {
  width: 100%;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_input,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_password {
  width: 100% !important;
  margin: 0 !important;
  border: var(--fm-input-border-width) solid var(--fm-input-border-default) !important;
  border-radius: 12px !important;
  background: var(--fm-neutral-0) !important;
  color: var(--fm-neutral-900) !important;
  box-sizing: border-box;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    padding 160ms ease;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password {
  height: var(--fm-input-height) !important;
  padding: var(--fm-input-padding-block) var(--fm-input-padding-inline) !important;
  font: var(--fm-type-body-l-regular) !important;
  letter-spacing: var(--fm-type-body-l-regular-letter-spacing);
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input::placeholder,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password::placeholder {
  color: var(--fm-neutral-500);
  opacity: 1;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:focus::placeholder,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:focus::placeholder {
  color: transparent;
  opacity: 0;
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title {
  min-height: 44px;
  margin: 0 0 16px !important;
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  .form_field_label {
  display: none !important;
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_input,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_password {
  height: 44px !important;
  padding: var(--fm-input-padding-block) var(--fm-input-padding-inline) !important;
  font: var(--fm-type-body-s-regular) !important;
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_input::placeholder,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_password::placeholder {
  color: var(--fm-neutral-500);
  opacity: 1;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:focus,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:focus,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_input:focus,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_password:focus {
  border-color: var(--fm-input-border-focus) !important;
  border-radius: var(--fm-input-radius-state) !important;
  outline: none;
  box-shadow: var(--fm-input-focus-shadow);
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:-webkit-autofill,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:-webkit-autofill,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:-webkit-autofill:hover,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:-webkit-autofill:hover,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:-webkit-autofill:focus,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fm-neutral-900) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--fm-neutral-0) inset !important;
  box-shadow: 0 0 0 1000px var(--fm-neutral-0) inset !important;
}

@media (max-width: 767px) {
  body
    .standart_window_content_ins[data-fm-auth-type='registration']
    .form_field_line.rb_line.has_title
    input.rb_input,
  body
    .standart_window_content_ins[data-fm-auth-type='registration']
    .form_field_line.rb_line.has_title
    input.rb_password {
    height: var(--fm-input-height) !important;
  }

  body
    .standart_window_content_ins[data-fm-auth-type='login']
    .form_field_line.rb_line.has_title,
  body
    .standart_window_content_ins[data-fm-auth-type='login']
    .form_field_line.rb_line.has_title
    input.rb_input,
  body
    .standart_window_content_ins[data-fm-auth-type='login']
    .form_field_line.rb_line.has_title
    input.rb_password {
    min-height: 44px;
    height: 44px !important;
  }
}
/* Password visibility control injected into PremiumBox auth fields. */
body .standart_window_content_ins .fm-auth-password-field {
  position: relative !important;
}

body.fm-auth-page-template .auth-page-wrap .fm-auth-password-field {
  position: relative !important;
  margin-bottom: 20px !important;
}

body .standart_window_content_ins .fm-auth-password-field input.rb_password {
  padding-right: 52px !important;
}

body.fm-auth-page-template
  .auth-page-wrap
  .fm-auth-password-field
  input.rb_password {
  padding-right: 52px !important;
}

body .standart_window_content_ins .fm-auth-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

body.fm-auth-page-template .auth-page-wrap .fm-auth-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

body .standart_window_content_ins .fm-auth-password-toggle img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.fm-auth-page-template .auth-page-wrap .fm-auth-password-toggle img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body .standart_window_content_ins .fm-auth-password-toggle:hover,
body .standart_window_content_ins .fm-auth-password-toggle:focus-visible {
  opacity: 0.78;
}

body.fm-auth-page-template .auth-page-wrap .fm-auth-password-toggle:hover,
body.fm-auth-page-template
  .auth-page-wrap
  .fm-auth-password-toggle:focus-visible {
  opacity: 0.78;
}

body .standart_window_content_ins .fm-auth-password-toggle:focus-visible {
  outline: 2px solid var(--fm-primary-500);
  outline-offset: 3px;
}

body.fm-auth-page-template
  .auth-page-wrap
  .fm-auth-password-toggle:focus-visible {
  outline: 2px solid var(--fm-primary-500);
  outline-offset: 3px;
}

/* Dynamic PremiumBox auth responses: preserve backend messages, improve frontend hierarchy. */
body .standart_window_content_ins[data-fm-auth-type='registration'] .resultgo,
body .standart_window_content_ins[data-fm-auth-type='login'] .resultgo {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  color: inherit;
  text-align: left;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultfalse,
body .standart_window_content_ins[data-fm-auth-type='login'] .resultfalse {
  display: flex;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  overflow-wrap: anywhere;
  border-radius: var(--fm-radius-md);
  background: rgba(255, 10, 54, 0.08);
  color: var(--fm-status-error);
  font: var(--fm-type-body-s-regular);
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
  line-height: 150%;
  text-align: left;
  order: initial;
}

body .standart_window_content_ins[data-fm-auth-type='registration'] .resulttrue,
body .standart_window_content_ins[data-fm-auth-type='login'] .resulttrue {
  display: flex;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 16px;
  overflow-wrap: anywhere;
  border-radius: var(--fm-radius-md);
  background: rgba(38, 161, 123, 0.1);
  color: var(--fm-neutral-800);
  font: var(--fm-type-body-s-regular);
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
  line-height: 150%;
  text-align: left;
  order: initial;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultfalse
  a,
body .standart_window_content_ins[data-fm-auth-type='login'] .resultfalse a,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resulttrue
  a,
body .standart_window_content_ins[data-fm-auth-type='login'] .resulttrue a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultfalse:empty,
body .standart_window_content_ins[data-fm-auth-type='login'] .resultfalse:empty,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resulttrue:empty,
body .standart_window_content_ins[data-fm-auth-type='login'] .resulttrue:empty {
  display: none;
}

@media (max-width: 767px) {
  body
    .standart_window_content_ins[data-fm-auth-type='registration']
    .resultfalse,
  body .standart_window_content_ins[data-fm-auth-type='login'] .resultfalse,
  body
    .standart_window_content_ins[data-fm-auth-type='registration']
    .resulttrue,
  body .standart_window_content_ins[data-fm-auth-type='login'] .resulttrue {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--fm-radius-md);
    font: var(--fm-type-body-s-regular);
  }
}
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultgo
  > .resultfalse,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .resultgo
  > .resultfalse,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultgo
  > .resulttrue,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .resultgo
  > .resulttrue {
  margin-top: 0;
}
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultfalse,
body .standart_window_content_ins[data-fm-auth-type='login'] .resultfalse {
  margin-top: 12px;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultgo
  > .resultfalse,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .resultgo
  > .resultfalse {
  margin-top: 0;
}
/* Field-level validation presentation for backend-generated auth messages. */
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.fm-auth-field--error
  input.rb_input,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.fm-auth-field--error
  input.rb_password,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.fm-auth-field--error
  input.rb_input,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.fm-auth-field--error
  input.rb_password {
  border: var(--fm-input-border-width) solid var(--fm-input-border-error) !important;
  border-radius: var(--fm-input-radius-state) !important;
  box-shadow: none !important;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .fm-auth-field-error,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .fm-auth-field-error {
  display: block;
  margin-top: 4px;
  color: var(--fm-status-error);
  font: var(--fm-type-caption-regular);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
  line-height: 150%;
  overflow-wrap: anywhere;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .fm-auth-field-error
  a,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .fm-auth-field-error
  a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .resultfalse.fm-auth-message--field,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .resultfalse.fm-auth-message--field,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .fm-auth-resultgo--field,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .fm-auth-resultgo--field {
  display: none !important;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.fm-auth-field--error
  .fm-auth-password-toggle,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.fm-auth-field--error
  .fm-auth-password-toggle {
  color: var(--fm-status-error);
}

/* Figma input states for the modern authentication fields. */
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:hover,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:hover,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_input:hover,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_password:hover {
  border-color: var(--fm-input-border-hover) !important;
  border-radius: var(--fm-input-radius-state) !important;
}

body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_input:disabled,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .form_field_line.rb_line.has_title
  input.rb_password:disabled,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_input:disabled,
body
  .standart_window_content_ins[data-fm-auth-type='login']
  .form_field_line.rb_line.has_title
  input.rb_password:disabled {
  background: var(--fm-input-bg-disabled) !important;
  border-color: var(--fm-input-border-disabled) !important;
  color: var(--fm-input-text-disabled) !important;
  cursor: not-allowed;
}

/* Auth captcha inputs: use the shared Figma input states. */
body .standart_window_content_ins[data-fm-auth-type='login'] .captcha_divpole,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .captcha_divpole,
body .loginform_box .captcha_divpole,
body .registerform_box .captcha_divpole {
  box-sizing: border-box;
  min-height: var(--fm-input-height);
  height: var(--fm-input-height);
  padding: 2px;
  border: var(--fm-input-border-width) solid var(--fm-input-border-default);
  border-radius: var(--fm-input-radius-state);
  background: var(--fm-input-bg-default);
  color: var(--fm-input-text-default);
  font: var(--fm-type-body-s-regular);
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
  box-shadow: none;
  outline: none;
  transition:
    border-color 160ms ease,
    border-radius 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .captcha_divpole:hover,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .captcha_divpole:hover,
body .loginform_box .captcha_divpole:hover,
body .registerform_box .captcha_divpole:hover {
  border-color: var(--fm-input-border-hover);
  border-radius: var(--fm-input-radius-state);
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .captcha_divpole:focus,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .captcha_divpole:focus,
body .loginform_box .captcha_divpole:focus,
body .registerform_box .captcha_divpole:focus {
  border-color: var(--fm-input-border-focus);
  border-radius: var(--fm-input-radius-state);
  box-shadow: var(--fm-input-focus-shadow);
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .captcha_divpole:disabled,
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .captcha_divpole:disabled,
body .loginform_box .captcha_divpole:disabled,
body .registerform_box .captcha_divpole:disabled {
  background: var(--fm-input-bg-disabled);
  border-color: var(--fm-input-border-disabled);
  color: var(--fm-input-text-disabled);
  cursor: not-allowed;
}

body
  .standart_window_content_ins[data-fm-auth-type='login']
  .captcha_divpole:is(.error, [aria-invalid='true']),
body
  .standart_window_content_ins[data-fm-auth-type='registration']
  .captcha_divpole:is(.error, [aria-invalid='true']),
body .loginform_box .captcha_divpole:is(.error, [aria-invalid='true']),
body .registerform_box .captcha_divpole:is(.error, [aria-invalid='true']) {
  border-color: var(--fm-input-border-error);
  border-radius: var(--fm-input-radius-state);
  box-shadow: none;
}

/* Auth checkboxes: mirror input hover, focus, and active states. */
body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label:hover::before,
body .standart_window_content_ins .reg_line .checkbox label:hover::before,
body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label:active::before,
body .standart_window_content_ins .reg_line .checkbox label:active::before,
body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label:has(input:focus-visible)::before,
body
  .standart_window_content_ins
  .reg_line
  .checkbox
  label:has(input:focus-visible)::before {
  border-color: var(--fm-input-border-hover);
  border-radius: 5px;
}

body
  .standart_window_content_ins
  .checkpersdata_line
  .checkbox
  label:has(input:focus-visible)::before,
body
  .standart_window_content_ins
  .reg_line
  .checkbox
  label:has(input:focus-visible)::before {
  box-shadow: var(--fm-input-focus-shadow);
  outline: none;
}

/* Auth page shell redesign for /login and /register. */
body.fm-auth-page-template {
  background: var(--fm-neutral-0);
}

body.fm-auth-page-template .fm-header,
body.fm-auth-page-template .mobile-header,
body.fm-auth-page-template .footer,
body.fm-auth-page-template .banner-swiper,
body.fm-auth-page-template #topped,
body.fm-auth-page-template .lang_constants,
body.fm-auth-page-template .breadcrumb,
body.fm-auth-page-template .main-title,
body.fm-auth-page-template .aside {
  display: none !important;
}

body.fm-auth-page-template .main {
  min-height: 100vh;
  background: var(--fm-neutral-0);
}

body.fm-auth-page-template .page-block.container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.fm-auth-page-template .auth-page-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: stretch;
  padding: 104px 16px 56px;
  box-sizing: border-box;
}

body.fm-auth-page-template .auth-page-wrap .fm-auth-logo {
  position: absolute;
  top: 26px;
  left: 50%;
  display: block;
  width: 72px;
  height: 28px;
  transform: translateX(-50%);
  z-index: 1;
}

body.fm-auth-page-template .auth-page-wrap .fm-auth-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.fm-auth-page-template .auth-page-wrap .text {
  width: 100%;
}

body.fm-auth-page-template .auth-page-wrap .text > p,
body.fm-auth-page-template .auth-page-wrap .text > ul,
body.fm-auth-page-template .auth-page-wrap .text > h1 {
  display: none !important;
}

body.fm-auth-page-template .auth-page-wrap .log_div_wrap,
body.fm-auth-page-template .auth-page-wrap .reg_div_wrap {
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px;
  border: 0;
  border-radius: var(--fm-radius-xl);
  background: var(--fm-neutral-100) !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

body.fm-login-page-template .auth-page-wrap .log_div_wrap {
  max-width: 470px;
}

body.fm-register-page-template .auth-page-wrap .reg_div_wrap {
  max-width: 470px;
    padding: 32px;
}

body.fm-auth-page-template .log_div_wrap,
body.fm-auth-page-template .reg_div_wrap {
  color: var(--fm-neutral-900);
}

body.fm-auth-page-template .log_div_ins,
body.fm-auth-page-template .reg_div_ins {
  width: 100%;
  margin: 0;
}

body.fm-login-page-template .log_div_ins {
  display: block;
}

body.fm-auth-page-template .log_div_title,
body.fm-auth-page-template .reg_div_title {
  display: block !important;
  margin: 0 0 28px;
  text-align: center;
}

body.fm-auth-page-template .log_div_title_ins,
body.fm-auth-page-template .reg_div_title_ins {
  font: var(--fm-type-heading-h3);
  color: var(--fm-neutral-900);
  letter-spacing: var(--fm-type-heading-h3-letter-spacing);
}

body.fm-auth-page-template .log_div,
body.fm-auth-page-template .reg_div {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.fm-auth-page-template .log_div_wrap .form_field_line.rb_line.has_title,
body.fm-auth-page-template .reg_div_wrap .form_field_line.rb_line.has_title {
  margin: 0 0 16px !important;
}

/* disabled */
body.fm-auth-page-template .log_div_wrap .form_field_label,
body.fm-auth-page-template .reg_div_wrap .form_field_label {
  position: static !important;
  display: none !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

body.fm-register-page-template .reg_div_wrap .form_field_label {
  position: static !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.fm-auth-page-template .log_div_wrap .form_field_label_ins,
body.fm-auth-page-template .reg_div_wrap .form_field_label_ins {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline !important;
  color: var(--fm-neutral-900);
  font: var(--fm-type-caption-regular);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
}

body.fm-register-page-template .reg_div_wrap .form_field_label_ins {
  color: var(--fm-neutral-900);
  font: var(--fm-type-caption-regular);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
}

body.fm-auth-page-template .log_div_wrap .req,
body.fm-auth-page-template .reg_div_wrap .req {
  color: var(--fm-primary-500);
}

body.fm-auth-page-template .log_div_wrap .form_field_ins,
body.fm-auth-page-template .reg_div_wrap .form_field_ins {
  width: 100%;
  margin-bottom: 12px;
}

body.fm-register-page-template
  .reg_div_wrap
  .form_field_line.reg_line.has_title {
  margin: 0 0 12px !important;
}

body.fm-register-page-template
  .reg_div_wrap
  .form_field_line.reg_line.type_password.field_name_pass2.has_title {
  margin-bottom: 20px !important;
}

body.fm-register-page-template .reg_div_wrap .form_field_ins {
  width: 100%;
  margin-bottom: 0;
}

body.fm-register-page-template .reg_div_wrap input.reg_input,
body.fm-register-page-template .reg_div_wrap input.reg_password {
  width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--fm-neutral-900) !important;
  font: var(--fm-type-body-m-regular) !important;
  box-sizing: border-box;
  box-shadow: none !important;
}

body.fm-register-page-template .reg_div_wrap input.reg_input::placeholder,
body.fm-register-page-template .reg_div_wrap input.reg_password::placeholder {
  color: #8a94a6;
  opacity: 1;
}

body.fm-register-page-template .reg_div_wrap input.reg_input:focus,
body.fm-register-page-template .reg_div_wrap input.reg_password:focus {
  border-color: var(--fm-primary-500) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(116, 36, 209, 0.12) !important;
}

body.fm-register-page-template .reg_div_wrap .fm-auth-password-field {
  margin-bottom: 0 !important;
}

body.fm-register-page-template
  .reg_div_wrap
  .fm-auth-password-field
  input.reg_password {
  padding-right: 52px !important;
}

body.fm-register-page-template .reg_div_ins {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body.fm-register-page-template .reg_div_ins > .form_field_line.reg_line {
  order: 10;
}

body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left)) {
  order: 20;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line {
  order: 30;
}

body.fm-register-page-template .reg_div_ins > .captcha_div,
body.fm-register-page-template .reg_div_ins > .captcha_sci_div {
  order: 40;
}

body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):has(.reg_line_subm_left) {
  order: 50;
  gap: 0;
}

body.fm-register-page-template .reg_div_ins > .resultgo {
  order: 100;
}

body.fm-register-page-template .reg_div_ins > .resultgo:empty {
  display: none;
}

body.fm-register-page-template .reg_div_ins > .captcha_div,
body.fm-register-page-template .reg_div_ins > .captcha_sci_div {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.fm-register-page-template .reg_div_ins > .captcha_div .captcha_body,
body.fm-register-page-template .reg_div_ins > .captcha_sci_div {
  display: flex;
  justify-content: center;
  margin: 6px 0 0;
  padding: 0;
}

body.fm-register-page-template
  .reg_div_ins
  > .reg_line:has(.reg_line_subm_left)
  .reg_line_subm_left {
  display: block;
  float: none;
  clear: both;
  width: 100%;
  margin-top: 20px;
}

body.fm-register-page-template
  .reg_div_ins
  > .reg_line:has(.reg_line_subm_left) {
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.fm-register-page-template
  .reg_div_ins
  > .reg_line:has(.reg_line_subm_left)
  .reg_line_subm_left
  input.reg_submit {
  width: 100%;
  min-height: 60px;
}

body.fm-register-page-template
  .reg_div_ins
  > .reg_line:has(.reg_line_subm_left)
  .reg_line_subm_right {
  display: flex;
  float: none;
  clear: both;
  width: 100%;
  margin-top: 28px;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left)) {
  margin: 0 0 14px;
}

body.fm-register-page-template
  .reg_div_ins
  > .checkpersdata_line:not(
    :has(
      ~ .checkpersdata_line,
      ~ .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
    )
  ),
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left)):not(
    :has(
      ~ .checkpersdata_line,
      ~ .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
    )
  ) {
  margin-bottom: 0;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line label,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
  label {
  position: relative;
  display: block;
  min-height: 24px;
  margin: 0;
  padding: 3px 0 0 34px;
  color: var(--fm-neutral-900);
  font: var(--fm-type-caption-regular);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
  box-sizing: border-box;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line label::before,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
  label::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #cbd0de;
  border-radius: 5px;
  background: #ffffff;
  content: '';
  box-sizing: border-box;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line label::after,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
  label::after {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 24px;
  height: 24px;
  background: center / 12px 9px no-repeat
    url('../images/icons/exfmpro-input-checkbox.svg');
  content: '';
  opacity: 0;
}

body.fm-register-page-template
  .reg_div_ins
  > .checkpersdata_line
  label:has(input:checked)::after,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
  label:has(input:checked)::after {
  opacity: 1;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line input,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
  input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.fm-register-page-template .reg_div_ins > .checkpersdata_line label a,
body.fm-register-page-template
  .reg_div_ins
  > .reg_line:not(.form_field_line):not(:has(.reg_line_subm_left))
  label
  a {
  color: var(--fm-primary-500);
  text-decoration: none;
}

body.fm-auth-page-template .log_div_wrap input.rb_input,
body.fm-auth-page-template .log_div_wrap input.rb_password,
body.fm-auth-page-template .reg_div_wrap input.rb_input,
body.fm-auth-page-template .reg_div_wrap input.rb_password {
  width: 100% !important;
  margin: 0 !important;
  height: 48px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--fm-neutral-900) !important;
  font: var(--fm-type-body-m-regular) !important;
  box-sizing: border-box;
  box-shadow: none !important;
}

body.fm-auth-page-template .log_div_wrap input.rb_input::placeholder,
body.fm-auth-page-template .log_div_wrap input.rb_password::placeholder,
body.fm-auth-page-template .reg_div_wrap input.rb_input::placeholder,
body.fm-auth-page-template .reg_div_wrap input.rb_password::placeholder {
  color: #8a94a6;
  opacity: 1;
}

body.fm-auth-page-template .log_div_wrap input.rb_input:focus,
body.fm-auth-page-template .log_div_wrap input.rb_password:focus,
body.fm-auth-page-template .reg_div_wrap input.rb_input:focus,
body.fm-auth-page-template .reg_div_wrap input.rb_password:focus {
  border-color: var(--fm-primary-500) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(116, 36, 209, 0.12) !important;
}

body.fm-auth-page-template .log_div_ins .captcha_body,
body.fm-auth-page-template .reg_div_ins .captcha_body {
  display: flex;
  justify-content: center;
  margin: 20px 0 0 0;
  padding: 0;
}

body.fm-auth-page-template .log_div_ins .captcha_sci_div,
body.fm-auth-page-template .reg_div_ins .captcha_sci_div {
  display: flex;
  justify-content: center;
  padding: 0;
}

body.fm-auth-page-template .log_line,
body.fm-auth-page-template .reg_line {
  margin-bottom: 0;
}

body.fm-auth-page-template .log_line_subm_left,
body.fm-auth-page-template .reg_line_subm_left {
  width: 100%;
  margin-top: 20px;
}

body.fm-auth-page-template .log_line_subm_left input.log_submit,
body.fm-auth-page-template .reg_line_subm_left input.reg_submit {
  width: 100%;
  min-height: 60px;
  margin: 0;
  border: 0;
  border-radius: var(--fm-button-cta-l-radius);
  background: var(--fm-primary-500);
  color: #ffffff;
  font: var(--fm-type-body-l-medium);
  letter-spacing: var(--fm-type-body-l-medium-letter-spacing);
  box-shadow: none;
}

body.fm-auth-page-template
  .log_line_subm_left
  input.log_submit:hover:not(:disabled),
body.fm-auth-page-template
  .reg_line_subm_left
  input.reg_submit:hover:not(:disabled) {
  filter: brightness(0.95);
}

body.fm-auth-page-template
  .log_line_subm_left
  input.log_submit:active:not(:disabled),
body.fm-auth-page-template
  .reg_line_subm_left
  input.reg_submit:active:not(:disabled) {
  filter: brightness(0.9);
}

body.fm-auth-page-template .log_line_subm_right,
body.fm-auth-page-template .reg_line_subm_right {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font: var(--fm-type-caption-regular);
  letter-spacing: var(--fm-type-caption-regular-letter-spacing);
}

body.fm-login-page-template .log_div_ins > .log_line_subm_left {
  display: block;
  float: none;
  clear: both;
}

body.fm-login-page-template .log_div_ins > .log_line_subm_right {
  display: flex;
  float: none;
  clear: both;
  width: 100%;
}

body.fm-auth-page-template .log_line_subm_right::after,
body.fm-auth-page-template .reg_line_subm_right::after {
  color: var(--fm-neutral-600);
}

body.fm-auth-page-template .log_line_subm_right a,
body.fm-auth-page-template .reg_line_subm_right a {
  color: var(--fm-neutral-600);
}

body.fm-auth-page-template .log_line_subm_right p,
body.fm-auth-page-template .reg_line_subm_right p {
  margin: 0;
}

body.fm-auth-page-template .reg_line:not(.form_field_line) {
  gap: 0;
}

body.fm-auth-page-template .reg_line:not(.form_field_line) .checkbox {
  /* margin: 0 0 22px; */
  margin: 0;
}

body.fm-auth-page-template .reg_line:not(.form_field_line) .checkbox label {
  font:
    400 1.4rem/1.45 'Golos Text',
    sans-serif;
  color: #111827;
}

body.fm-auth-page-template .reg_line:not(.form_field_line) .checkbox label a {
  color: var(--fm-primary-500);
}

@media (max-width: 767px) {
  body.fm-auth-page-template .auth-page-wrap {
    min-height: 100svh;
    padding: 92px 16px 40px;
  }

  body.fm-auth-page-template .auth-page-wrap .fm-auth-logo {
    top: 22px;
    width: 68px;
    height: 26px;
  }

  body.fm-auth-page-template .auth-page-wrap .log_div_wrap,
  body.fm-auth-page-template .auth-page-wrap .reg_div_wrap {
    padding: 28px 20px 24px;
  }

  body.fm-auth-page-template .log_div_wrap input.rb_input,
  body.fm-auth-page-template .log_div_wrap input.rb_password,
  body.fm-auth-page-template .reg_div_wrap input.rb_input,
  body.fm-auth-page-template .reg_div_wrap input.rb_password {
    height: 46px !important;
  }

  body.fm-auth-page-template .log_line_subm_right,
  body.fm-auth-page-template .reg_line_subm_right {
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 16px;
    text-align: center;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  body.fm-register-page-template .auth-page-wrap .reg_div_wrap {
    padding: 28px 40px;
  }
}
