/* gate.css -- Be password gate overlay */
.metal-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.metal-gate.gate-hidden {
  opacity: 0;
  pointer-events: none;
}
.metal-gate-box {
  text-align: center;
  max-width: 340px;
  width: 90%;
}
.metal-gate-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: #6FC3DF;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}
.metal-gate-sub {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.metal-gate-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #111;
  border: 2px solid #333;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.metal-gate-input:focus {
  border-color: #6FC3DF;
}
.metal-gate-input.gate-shake {
  animation: gateShake 0.4s ease;
  border-color: #ef4444;
}
.metal-gate-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  background: #6FC3DF;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.metal-gate-btn:hover {
  background: #9DD9EE;
}
.metal-gate-err {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
