.case-password {
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
}

.case-password section { width: min(100%, 26rem); }
.case-password h1 { font-size: 20px; font-weight: 500; line-height: 1.4; }
.case-password p { font-size: 14px; color: #625f5b; }
.case-password form { margin: 1.75rem 0; }
.case-password label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  color: #625f5b;
  opacity: .5;
}
.case-password form:has(#case-password:focus) label { opacity: 1; }
.gate-fields { display: flex; gap: .5rem; }
.gate-fields input, .gate-fields button {
  min-height: 44px;
  border-radius: 16px;
  font: inherit;
  padding: .55rem .75rem;
}
.gate-fields input {
  flex: 1;
  min-width: 0;
  border: .5px solid #a39e98;
  background: transparent;
  color: inherit;
  opacity: .5;
}
.gate-fields input:is(:hover, :focus) { opacity: 1; }
.gate-fields input:focus {
  border-color: #625f5b;
  outline: none;
}
.gate-fields button {
  display: grid;
  place-items: center;
  width: 44px;
  border: 0;
  padding: 0;
  background: #24262a;
  color: #fff;
  cursor: pointer;
  opacity: .5;
}
.gate-fields button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gate-lock-open { display: none; }
.gate-fields button:disabled,
.gate-fields input:placeholder-shown + button {
  background: #e5e3df;
  color: #706d68;
  cursor: not-allowed;
}

@media (hover: hover) {
  .gate-fields button:hover { opacity: 1; }
  .gate-fields input:not(:placeholder-shown) + button:hover .gate-lock-closed { display: none; }
  .gate-fields input:not(:placeholder-shown) + button:hover .gate-lock-open { display: block; }
  .gate-back:hover { color: #000; }
}
.gate-fields button:focus-visible { opacity: 1; outline: 2px solid #8a2256; outline-offset: 3px; }
.case-password .gate-message { color: #8a2256; margin-top: .75rem; }
.gate-back {
  display: block;
  width: fit-content;
  margin-inline: auto;
  color: #706d68;
  font-size: .875rem;
  text-decoration: none;
}
