.register-modal {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #20242b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.register-modal::backdrop {
  background: rgba(13, 20, 30, .7);
}

.register-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: #dc3545;
  color: #fff;
}

.register-modal-header h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.register-modal-header p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.register-modal-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: -3px -6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.register-modal-close:hover,
.register-modal-close:focus-visible {
  color: #fff;
  opacity: .8;
}

.register-modal .register-form,
.register-modal .registration-success {
  padding: 26px 28px 28px;
  border: 0;
  border-radius: 0;
}

.register-modal .register-field {
  margin-bottom: 17px;
}

.register-modal .register-field input {
  margin: 0;
}

.register-modal .registration-success {
  padding-top: 35px;
}

@media (max-width: 600px) {
  .register-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .register-modal-header {
    padding: 20px 21px;
  }

  .register-modal .register-form,
  .register-modal .registration-success {
    padding: 22px 21px 24px;
  }
}
