.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn.is-loading {
  position: relative;
  padding-left: 44px;
}

.btn.is-loading::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-secondary {
  color: #fff;
  background: var(--blue-btn);
}

.reg-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  margin-right: auto;
}

.reg-title {
  margin-bottom: 8px;
  text-align: center;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.reg-role {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 8px;
  border: 0;
}

.reg-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3e3e3e;
  font-size: 15px;
}

.reg-radio input {
  accent-color: var(--blue);
}

.reg-radio input:checked + span {
  color: var(--blue);
}

.reg-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 58px;
  padding: 0 14px;
  border: 1.5px solid #969696;
  border-radius: 10px;
}

.reg-field.is-locked {
  border-color: rgba(150, 150, 150, 0.5);
}

.reg-field.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
}

.reg-field.is-locked label {
  z-index: 2;
  color: rgba(19, 92, 169, 0.55);
}

.reg-field label {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 0 8px;
  line-height: 1;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

.reg-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  font-size: 15px;
  line-height: 1;
}

.reg-field input:disabled {
  background: transparent;
  color: rgba(35, 35, 35, 0.75);
  -webkit-text-fill-color: rgba(35, 35, 35, 0.75);
}

.reg-field.is-locked input {
  position: relative;
  z-index: 2;
}

.reg-submit {
  margin-top: 4px;
}

.reg-or {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  color: #8f8f8f;
}

.reg-or span {
  flex: 1 1 auto;
  height: 1px;
  background: #d8d8d8;
}

.reg-or p {
  font-size: 16px;
}

.reg-login {
  margin-top: 2px;
  text-align: center;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.reg-login-link {
  color: #367aff;
  font-weight: 700;
  text-decoration: underline;
}

.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.reg-terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.reg-terms span {
  font-size: 12px;
  line-height: 1.4;
}

.reg-terms span a {
  color: #367aff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error {
  margin-top: 8px;
  color: #c02f2f;
  font-size: 14px;
  line-height: 1.3;
}

.inn-status {
  margin-top: -4px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.3;
}

.inn-status[data-type="info"] {
  color: #4e6f95;
}

.inn-status[data-type="error"] {
  color: #c02f2f;
}

.inn-webhook-message {
  margin-top: -4px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.3;
}

.inn-webhook-link {
  color: #367aff;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 900px) {
  .reg-content {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .btn {
    min-height: 48px;
    font-size: 16px;
  }

  .reg-content {
    gap: 14px;
    max-width: 100%;
  }

  .reg-field {
    height: 54px;
    padding: 0 12px;
  }

  .reg-field label {
    font-size: 13px;
  }

  .reg-field input {
    font-size: 14px;
  }

  .reg-login {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .reg-radio {
    font-size: 14px;
  }

  .reg-terms span {
    font-size: 11px;
  }
}
