.pv2-login-form {
  display: grid;
  width: min(100%, 470px);
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-self: center;
  gap: 20px;
  margin: 0 auto;
  padding: 54px 48px 40px;
}

.pv2-form-heading h1 {
  display: block;
}

.pv2-form-heading h1 {
  margin: 0;
  color: #f0e8d7;
  font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.08;
}

.pv2-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.pv2-field > label {
  color: #c6beab;
  font-size: 13px;
  font-weight: 700;
}

.pv2-field > div {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  border: 1px solid #3a3b33;
  border-radius: 5px;
  background: #090b09;
  padding: 0 14px;
  color: #817f73;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.pv2-field > div:hover {
  border-color: #565344;
}

.pv2-field > div:focus-within {
  border-color: #d6b567;
  background: #090b09;
  color: #d6b567;
}

.pv2-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1e9d8;
  font-size: 15px;
}

.pv2-field input::placeholder {
  color: #6f6d63;
}

.pv2-field input::selection {
  background: rgb(214 181 103 / 34%);
  color: #fff8e8;
}

.pv2-field input:-webkit-autofill,
.pv2-field input:-webkit-autofill:hover,
.pv2-field input:-webkit-autofill:focus,
.pv2-field input:autofill {
  background-color: #090b09;
  caret-color: #f1e9d8;
  color: #f1e9d8;
  -webkit-text-fill-color: #f1e9d8;
  -webkit-box-shadow: 0 0 0 1000px #090b09 inset;
  box-shadow: 0 0 0 1000px #090b09 inset;
  transition: background-color 9999s ease-out 0s;
}

.pv2-password-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-left: 1px solid #302f29;
  background: transparent;
  color: #a69d86;
}

.pv2-password-toggle:hover,
.pv2-password-toggle:focus-visible {
  color: #d6b567;
}

.pv2-password-toggle:focus-visible {
  outline: 1px solid #d6b567;
  outline-offset: -1px;
}

.pv2-password-toggle [data-pv2-password-visible],
.pv2-password-toggle.is-visible [data-pv2-password-hidden] {
  display: none;
}

.pv2-password-toggle.is-visible [data-pv2-password-visible] {
  display: block;
}

.pv2-login-submit {
  width: 100%;
  min-height: 56px;
  justify-content: space-between;
  margin-top: 4px;
  border-color: #d6b567;
  border-radius: 5px;
  background: #d6b567;
  padding-inline: 20px;
  color: #17130b;
  font-size: 15px;
}

.pv2-login-submit:hover {
  background: #ead18f;
}

.pv2-login-error {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(228 109 105 / 42%);
  border-left: 3px solid var(--pv2-danger);
  border-radius: 5px;
  background: #261313;
  padding: 10px 12px;
  color: var(--pv2-danger);
}

.pv2-login-error span {
  color: #e8d9d2;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-height: 700px) and (min-width: 821px) {
  .pv2-login-form {
    gap: 15px;
    padding-block: 34px 28px;
  }

  .pv2-field > div,
  .pv2-login-submit {
    min-height: 50px;
  }
}

@media (max-width: 820px) {
  .pv2-login-form {
    width: 100%;
    align-self: start;
    gap: 18px;
    margin: 0;
    padding: 42px 24px 30px;
  }

  .pv2-form-heading h1 {
    font-size: 34px;
  }

  .pv2-field > div,
  .pv2-login-submit {
    min-height: 54px;
  }
}

@media (max-width: 360px) {
  .pv2-login-form {
    padding-inline: 18px;
  }
}
