body.password-setup-required {
  overflow: hidden;
}

.password-setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 8, 0.88);
  backdrop-filter: blur(6px);
}

.password-setup-overlay.show {
  display: flex;
}

.password-setup-dialog {
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #111517;
  color: #f5f7f8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.password-setup-kicker {
  margin-bottom: 9px;
  color: #8fd5c5;
  font-size: 12px;
  font-weight: 700;
}

.password-setup-dialog h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.password-setup-dialog > p {
  margin: 0 0 24px;
  color: rgba(245, 247, 248, 0.66);
  font-size: 14px;
  line-height: 1.7;
}

.password-setup-field {
  margin-bottom: 16px;
}

.password-setup-identity {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.password-setup-field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(245, 247, 248, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.password-setup-error {
  min-height: 20px;
  margin: -2px 0 10px;
  color: #ff9d9d;
  font-size: 12px;
  line-height: 1.55;
}

.password-setup-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(143, 213, 197, 0.44);
  border-radius: 5px;
  background: #dcefe9;
  color: #10201c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.password-setup-submit:hover:not(:disabled) {
  background: #eff9f6;
}

.password-setup-submit:focus-visible {
  outline: 2px solid #9b6cff;
  outline-offset: 3px;
}

.password-setup-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.password-setup-dialog .password-setup-note {
  margin: 16px 0 0;
  color: rgba(245, 247, 248, 0.46);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .password-setup-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .password-setup-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .password-setup-submit {
    transition: none;
  }
}
