/* ── Password Gate Overlay ── */

#auth-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

#auth-gate.auth-gate-fade-out {
  opacity: 0;
  pointer-events: none;
}

.auth-gate-backdrop {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}

.auth-gate-card {
  position: relative;
  text-align: center;
  padding: 48px 40px;
  max-width: 360px;
  width: 100%;
}

.auth-gate-logo {
  margin-bottom: 8px;
}

.auth-gate-logo svg {
  width: 100px;
  height: auto;
}

.auth-gate-subtitle {
  color: #5d5959;
  font-family: Manrope, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 32px 0;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-gate-input {
  width: 100%;
  padding: 12px 16px;
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 8px;
  color: #E5E9EE;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-gate-input:focus {
  border-color: #7b3eab;
}

.auth-gate-input::placeholder {
  color: #5d5959;
}

.auth-gate-btn {
  width: 100%;
  padding: 12px 16px;
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: #7b3eab;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-gate-btn:hover {
  background: #6a3494;
}

.auth-gate-error {
  color: #ff6b6b;
  font-family: Manrope, sans-serif;
  font-size: 0.8rem;
  margin: 8px 0 0 0;
}

/* Shake animation for wrong password */
.auth-gate-shake {
  animation: authShake 0.5s ease-in-out;
}

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