/* ---------- "Coming soon...!" gate overlay ----------
   Same reveal-login interaction as the one originally built for the PhD
   Website project: the "..." is a disguised, click-to-edit input. Full
   screen here since it fronts the whole portfolio, not a standalone page. */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

.gate-text {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  white-space: pre;
}

.gate-input {
  font-family: inherit;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  outline: none;
  text-align: center;
  caret-color: var(--ink);
  padding: 0 2px;
  transition: border-color 0.2s ease;
}

.gate-input:focus {
  border-bottom-color: var(--ink-soft);
}

.gate-input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.gate-line-password {
  margin-top: 14px;
}

.gate-input-pass {
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.3em;
}

.gate-input.is-error {
  color: #c0504f;
  animation: gate-shake 0.4s ease;
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@media (max-width: 640px) {
  .gate-text, .gate-input { font-size: clamp(13px, 3.5vw, 16px); }
  .gate-input-pass { font-size: clamp(11px, 3vw, 13px); }
}
