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

.registration__form.hidden {
  display: none;
}

.registration {
  font-family: "Roboto";
  font-style: normal;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  height: 100%;
  container-type: inline-size;
}
.registration__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.registration__error-message {
  color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
  font-size: 13px;
  display: block;
  justify-content: center;
  text-align: center;
}
.registration__form {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  justify-items: stretch;
  align-content: flex-start;
  overflow: auto;
  width: 100%;
  height: 100%;
}
.registration__buttons-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: relative;
}
.registration__button {
  border-radius: 5px;
  background: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
  border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
  color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));
  text-transform: uppercase;
  font-size: 20px;
  height: 44px;
  width: 100%;
  margin: 0px auto;
  padding: 10px 20px;
  font-weight: normal;
  box-shadow: none;
  cursor: pointer;
}
.registration__button--disabled {
  background: var(--emfe-w-color-gray-100, #E6E6E6);
  border: 1px solid var(--emfe-w-color-gray-150, #828282);
  pointer-events: none;
  box-shadow: none;
}
.registration__button--first-step {
  display: none;
}

@container (min-width: 450px) {
  .registration__form {
    grid-template-columns: repeat(2, 1fr);
  }

  .registration__buttons-wrapper {
    flex-direction: row-reverse;
    gap: 15px;
  }
}
.spinner {
  animation: rotate 2s linear infinite;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  width: 50px;
  height: 50px;
}
.spinner .path {
  stroke: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}