.password-auth {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 3, 2, 0.82);
  backdrop-filter: blur(8px);
  font: 14px/1.4 system-ui, sans-serif;
}

.password-auth__dialog {
  width: min(390px, 100%);
  padding: 24px;
  border: 1px solid rgba(178, 143, 83, 0.58);
  border-radius: 10px;
  color: #eee5d0;
  background: linear-gradient(145deg, #211b13, #100d09);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7), 0 0 24px rgba(133, 95, 38, 0.12);
}

.password-auth__dialog h1 {
  margin: 0 0 5px;
  font-size: 23px;
}

.password-auth__intro {
  margin: 0 0 18px;
  color: #bcb09a;
}

.password-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 17px;
  padding: 3px;
  border-radius: 7px;
  background: #0b0907;
}

.password-auth button,
.password-auth input {
  font: inherit;
  user-select: text;
}

.password-auth__tabs button,
.password-auth__submit {
  border: 1px solid transparent;
  border-radius: 5px;
  color: #cfc4b0;
  background: transparent;
  cursor: pointer;
}

.password-auth__tabs button {
  padding: 8px;
}

.password-auth__tabs button.is-active {
  border-color: #79633e;
  color: #fff6df;
  background: #34291b;
}

.password-auth form,
.password-auth label {
  display: grid;
  gap: 7px;
}

.password-auth [hidden] {
  display: none;
}

.password-auth form {
  gap: 14px;
}

.password-auth label {
  color: #d7cbb5;
}

.password-auth input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #544a3b;
  border-radius: 5px;
  outline: none;
  color: #fff8e8;
  background: #090806;
  touch-action: auto;
}

.password-auth input:focus {
  border-color: #b58a47;
  box-shadow: 0 0 0 2px rgba(181, 138, 71, 0.18);
}

.password-auth__error {
  min-height: 20px;
  margin: -3px 0;
  color: #e89583;
}

.password-auth__submit {
  padding: 11px 14px;
  border-color: #8e6c38;
  color: #fff4dc;
  background: linear-gradient(#5b4325, #3b2b19);
}

.password-auth__submit:disabled {
  cursor: wait;
  opacity: 0.55;
}
