.auth-page {
  overflow-x: hidden;
}

.auth-shell {
  width: 100%;
  min-height: 100svh;
}

.auth-frame {
  position: relative;
  width: 100%;
  min-height: 100svh;
}

.auth-stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--stage-bg);
  user-select: none;
}

.auth-background-video,
.auth-background-overlay {
  position: absolute;
  inset: 0;
}

.auth-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020409;
}

.auth-background-overlay {
  background:
    radial-gradient(circle at center, rgba(8, 11, 16, 0.08), rgba(5, 6, 10, 0.46)),
    linear-gradient(180deg, rgba(4, 6, 10, 0.12), rgba(4, 6, 10, 0.38));
}

.auth-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 88px) 24px;
}

.auth-form {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
}

.auth-brand-image {
  width: min(520px, 72vw);
  max-width: 100%;
  margin-bottom: 10px;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.32));
}

.auth-error {
  font-family: "Courier Prime", "Courier New", monospace;
}

.auth-form {
  margin-top: 0;
}

.auth-input-shell {
  position: relative;
  width: 100%;
  height: clamp(60px, 10vw, 72px);
  border-radius: 18px;
  background: transparent;
  overflow: visible;
  cursor: text;
}

.auth-input {
  width: 100%;
  height: 100%;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(20px, 4vw, 22px);
  font-weight: 400;
  text-align: center;
  outline: none;
  caret-color: #ffffff;
  transition: text-align 120ms ease;
}

.auth-input:focus {
  box-shadow: none;
}

.auth-input-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  color: rgba(244, 245, 247, 0.86);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(20px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 1.8px;
  text-align: center;
  transition: opacity 140ms ease;
}

.auth-input-shell.is-active .auth-input-prompt {
  opacity: 0;
}

.auth-input-shell.is-active .auth-input-prompt-text {
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.auth-input-shell.is-focused-empty .auth-input-prompt {
  opacity: 1;
  justify-content: center;
  padding-left: 0;
}

.auth-input-shell.is-focused-empty .auth-input-prompt-text {
  width: 0;
}

.auth-input-caret {
  display: inline-block;
  animation: auth-caret-blink 1s steps(1, end) infinite;
}

.auth-input-shell.is-focused-empty .auth-input {
  caret-color: transparent;
}

@keyframes auth-caret-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.auth-submit {
  margin-top: 12px;
  padding: 11px 22px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 245, 247, 0.88);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 140ms ease,
    visibility 140ms ease,
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.auth-form.is-submittable .auth-submit {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.auth-submit:hover,
.auth-submit:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.auth-submit:disabled {
  opacity: 0.46;
  cursor: default;
  pointer-events: none;
}

.auth-error {
  min-height: 24px;
  margin: 10px 4px 0;
  text-align: center;
  font-size: 15px;
  color: #ffb7b7;
}
