/* ==========================================================================
   U04 — Password-protected project (templates/password.html)
   ========================================================================== */

/* ---- Page frame ------------------------------------------------------- */
.gate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding-top: 48px;
  padding-bottom: 96px;
}

.gate__body,
.gate__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}

.gate__title {
  font-size: var(--t-h2);
}

/* ---- NDA cover -------------------------------------------------------- */
.gate__cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 3/2;
  background: var(--sheet);
  color: var(--sheet-ink);
}

.gate__badge {
  padding: 4px 10px;
  border: 2px solid var(--sheet-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gate__cover-text {
  font-size: 15px;
}

/* ---- Form field ------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 15px;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.gate__error {
  font-size: 15px;
  color: var(--error);
}

.gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gate__hint {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Unlocked state --------------------------------------------------- */
.gate__unlocked {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate__stamp {
  transform: rotate(-4deg);
}
