body.demo-modal-open {
  overflow: hidden;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  color: #171a22;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.demo-modal.is-open {
  display: block;
}

.demo-modal *,
.demo-modal *::before,
.demo-modal *::after {
  box-sizing: border-box;
}

.demo-modal .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-modal__page {
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 26% 34%, rgba(92, 197, 222, .34), transparent 18%),
    radial-gradient(circle at 77% 10%, rgba(62, 154, 190, .23), transparent 22%),
    linear-gradient(116deg, rgba(20, 87, 113, .9) 0%, rgba(12, 44, 66, .92) 43%, rgba(9, 24, 36, .96) 100%);
}

.demo-modal__page::before {
  content: "";
  position: fixed;
  inset: 84px 0 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.8px),
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, .2) 18.2%, rgba(255, 255, 255, .02) 23%, transparent 23.4%),
    linear-gradient(116deg, transparent 0 62%, rgba(255, 255, 255, .18) 62.2%, rgba(255, 255, 255, .02) 66%, transparent 66.4%);
  background-size: 11px 11px, 100% 100%, 100% 100%;
  opacity: .62;
}

.demo-modal__page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(114deg, transparent 0 14%, rgba(255, 255, 255, .14) 14.2%, rgba(255, 255, 255, .02) 17%, transparent 17.3%),
    linear-gradient(114deg, transparent 0 64%, rgba(255, 255, 255, .16) 64.2%, rgba(255, 255, 255, .02) 67%, transparent 67.3%);
  mix-blend-mode: screen;
  opacity: .72;
}

.demo-modal__header {
  position: relative;
  z-index: 2;
  height: 84px;
  background: rgba(3, 11, 17, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.demo-modal__header-inner {
  width: min(1224px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-modal__logo,
.demo-modal__home {
  text-decoration: none;
}

.demo-modal__logo {
  color: #ffffff;
  font-size: clamp(28px, 2.1vw, 38px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.7px;
}

.demo-modal__logo sup {
  margin-left: 4px;
  font-size: 11px;
  letter-spacing: 0;
  vertical-align: super;
}

.demo-modal__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #61cce5;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-modal__home:hover {
  color: #8ee4f2;
}

.demo-modal__main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 84px);
  padding: 84px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.demo-modal__panel {
  width: min(1224px, calc(100% - 40px));
  min-height: 558px;
  padding: 58px 24px 88px;
  border-radius: 8px;
  background: #f7f9fc;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .2);
}

.demo-modal__form {
  width: min(768px, 100%);
  margin: 0 auto;
}

.demo-modal__title {
  margin: 0 0 36px;
  color: #202124;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.25;
  text-align: center;
  font-weight: 800;
  letter-spacing: 5px;
}

.demo-modal__field,
.demo-modal__code-row {
  display: block;
  margin-bottom: 32px;
}

.demo-modal__input {
  width: 100%;
  height: 62px;
  padding: 0 22px;
  border: 1px solid #d8dde6;
  border-radius: 5px;
  background: #ffffff;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.demo-modal__input::placeholder {
  color: #c5cbd5;
}

.demo-modal__input:focus {
  border-color: #58bdd5;
  box-shadow: 0 0 0 3px rgba(88, 189, 213, .16);
}

.demo-modal__code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 16px;
}

.demo-modal__code-button {
  height: 62px;
  border: 1px solid #c9ced8;
  border-radius: 4px;
  background: #f9fafc;
  color: #b9c0ca;
  font-size: 20px;
  font-weight: 800;
  cursor: not-allowed;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.demo-modal__code-button:not(:disabled) {
  color: #42b8d1;
  cursor: pointer;
  background: #ffffff;
  border-color: #91d6e6;
}

.demo-modal__agreements {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 28px;
  color: #7a8190;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.demo-modal__agreements input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: #56bfd7;
}

.demo-modal__agreement-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #438ef7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.demo-modal__status {
  min-height: 22px;
  margin: -12px 0 20px;
  color: #2c9db6;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.demo-modal__primary {
  width: min(512px, 100%);
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  background: #58bdd5;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.demo-modal__primary:hover {
  transform: translateY(-1px);
  background: #45b4cf;
  box-shadow: 0 12px 28px rgba(69, 180, 207, .28);
}

@media (max-width: 768px) {
  .demo-modal__header {
    height: 68px;
  }

  .demo-modal__header-inner,
  .demo-modal__panel {
    width: min(100% - 28px, 1224px);
  }

  .demo-modal__home {
    font-size: 14px;
  }

  .demo-modal__main {
    min-height: calc(100vh - 68px);
    padding: 42px 0;
  }

  .demo-modal__panel {
    min-height: auto;
    padding: 38px 18px 52px;
  }

  .demo-modal__title {
    margin-bottom: 28px;
    letter-spacing: 2px;
  }

  .demo-modal__field,
  .demo-modal__code-row {
    margin-bottom: 18px;
  }

  .demo-modal__input,
  .demo-modal__code-button {
    height: 52px;
    font-size: 15px;
  }

  .demo-modal__code-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-modal__agreements {
    font-size: 14px;
  }
}
