body.auth-locked {
  overflow: hidden;
}

.portfolio-auth {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #faf6f2;
  color: #1c1c1c;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

.portfolio-auth__panel {
  width: min(100%, 420px);
}

.portfolio-auth__title {
  margin: 0 0 56px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.portfolio-auth__field {
  display: block;
  margin-bottom: 20px;
}

.portfolio-auth__label {
  display: block;
  margin-bottom: 8px;
  color: #7b7b7b;
  font-size: 13px;
  line-height: 1.5;
}

.portfolio-auth__input {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #7b7b7b;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #1c1c1c;
  font: inherit;
  font-size: 16px;
}

.portfolio-auth__input:focus {
  border-bottom-color: #1c1c1c;
}

.portfolio-auth__button {
  width: 100%;
  margin-top: 28px;
  padding: 14px 0;
  border: 1px solid #1c1c1c;
  border-radius: 0;
  background: transparent;
  color: #1c1c1c;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: color .12s ease, border-color .12s ease;
}

.portfolio-auth__button:hover,
.portfolio-auth__button:focus-visible {
  color: #7b7b7b;
  border-color: #7b7b7b;
}

.portfolio-auth__error {
  min-height: 21px;
  margin: 16px 0 0;
  color: #ba1438;
  font-size: 13px;
  line-height: 1.6;
}
