/* Account form sits inside the scene's particle outline. */
html.login-open,
html.login-open body {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.login-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.login-modal:focus { outline: none; }

.login-scrim {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 10, .29);
}

.login-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 34px 32px 30px;
  color: #fff;
  background: rgba(1, 5, 14, .47);
  border: 1px solid transparent;
  border-radius: 34px;
  opacity: 0;
  transition: opacity .22s ease;
}

.login-panel::-webkit-scrollbar {
  display: none;
}

.login-modal.is-ready .login-panel { opacity: 1; }
.login-modal.particle-fallback .login-panel { border-color: #87b9e478; }
.login-garden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.login-modal.is-ready .login-garden { opacity: 1; }
.login-modal .login-panel { z-index: 1; }
html.login-open :is(.hero-title, .logo-flight, .second-ui) {
  opacity: 0 !important;
  transition: opacity .3s ease;
  pointer-events: none !important;
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.login-close:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.login-brand img {
  display: block;
  width: auto;
  height: 28px;
}

.login-brand span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .7);
}

.login-title {
  margin: 0 0 8px;
  font-family: 'Geist Pixel', monospace;
  font-size: 34px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}

.login-copy {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .6);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.login-field span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, .32);
}

.login-field input:focus {
  border-color: rgba(33, 142, 255, .8);
  box-shadow: 0 0 0 3px rgba(33, 142, 255, .15);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

.login-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.login-row input {
  width: 14px;
  height: 14px;
  accent-color: #218eff;
}

.login-row a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s ease;
}

.login-row a:hover {
  color: #fff;
}

.login-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #218eff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.login-submit:hover {
  background: #3d9dff;
}

.login-submit:active {
  transform: scale(.99);
}

.login-status {
  min-height: 18px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .55);
}

.login-form[hidden],
.login-foot [hidden] {
  display: none;
}

.login-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

.login-foot a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.login-foot a:hover {
  color: #fff;
}

.login-link {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .78);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-link:hover {
  color: #fff;
}

.site-header .demo {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 480px) {
  .login-panel {
    padding: 28px 22px 24px;
    border-radius: 28px;
  }

  .login-title {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-modal,
  .login-panel,
  .login-garden {
    transition-duration: .01ms;
  }
}
