:where(.reg-form) {
  display: grid;
  gap: 12px;
  position: relative;
  isolation: isolate;
}

:where(.reg-form label) {
  display: grid;
  gap: 6px;
}

:where(.reg-form .iti) {
  width: 100%;
}

:where(.reg-form input) {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: transparent;
}

:where(.reg-form .field),
:where(.reg-form .field_error) {
  display: block;
  min-height: 1em;
  font-size: 12px;
  color: #b00020;
}

:where(.reg-form .submit) {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

:where(.reg-form .submit:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

:where(.reg-form .form_loader) {
  position: absolute;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
  /* transform: translateY(4px); */
  will-change: opacity, transform;
}

:where(.reg-form.is_loading .form_loader) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

:where(.reg-form .form_loader .loader) {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  border-top: 4px solid #fff!important;
  border-right: 4px solid transparent!important;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

:where(.reg-form .form_loader .loader::after) {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-left: 4px solid #ff3d00;
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

