/* The password form shown in place of a protected case study (page-lock.js). Sits where the project
   title normally starts, in the page's own type, on the dark case-study background. */
.lock-gate {
  display: flex;
  align-items: flex-start;
  min-height: 78vh;
  padding: max(150px, 15.75vw) max(24px, 3.66vw) 120px;
  color: #fff;
  font-family: "Neue Montreal", sans-serif;
}
.lock-form { width: min(560px, 100%); }
.lock-eyebrow { margin: 0 0 18px; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: #ffffff80; }
.lock-title { margin: 0; font-size: clamp(30px, 2.88vw, 44px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.lock-copy { margin: 14px 0 34px; font-size: clamp(17px, 1.3vw, 20px); color: #ffffff66; letter-spacing: -.01em; }
.lock-row { display: flex; gap: 10px; }
.lock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lock-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  background: #ffffff0d;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background-color .2s;
}
.lock-input::placeholder { color: #ffffff59; }
.lock-input:focus { border-color: #ffffffb3; background: #ffffff14; }
.lock-button {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.lock-button:hover { opacity: .85; }
.lock-button:disabled { opacity: .6; cursor: progress; }
.lock-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lock-error { margin: 14px 0 0; font-size: 15px; color: #ff8a80; }
.lock-gate.is-wrong .lock-row { animation: lock-shake .4s cubic-bezier(.36, .07, .19, .97); }
@keyframes lock-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@media (max-width: 600px) { .lock-row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .lock-gate.is-wrong .lock-row { animation: none; } }
