.nav-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .035);
  font-size: 10px;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.nav-register svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.nav-register:hover,
.nav-register:focus-visible {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  outline: none;
}

@media (max-width: 650px) {
  .nav-register {
    width: 34px;
    height: 34px;
    padding: 0;
  }

  .nav-register-label {
    display: none;
  }
}

.registration-modal-layer[hidden] {
  display: none;
}

.registration-modal-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.registration-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 14, .58);
  backdrop-filter: blur(12px);
}

.registration-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #000;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .4);
}

.registration-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: #000;
}

.registration-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.registration-close:hover,
.registration-close:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

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

@media (max-width: 650px) {
  .registration-modal-layer { padding: 10px; }
  .registration-dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 20px;
  }
  .registration-close { top: 9px; right: 9px; }
}

/* Keep the account label visible in inner-page navigation at every width. */
.nav-register-subpage{width:auto!important;height:36px!important;padding:0 12px!important}
.nav-register-subpage .nav-register-label{display:inline!important}
