/* Esconde TODO o conteúdo enquanto o gate está fechado */
html[data-gate="closed"] body > :not(#password-gate) {
  display: none !important;
}

/* Overlay do gate */
#password-gate {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e2327 0%, #2a3138 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 1rem;
}

#password-gate .gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}

#password-gate .gate-logo {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

#password-gate h1 {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  color: #1a1a1a;
}

#password-gate p {
  color: #666;
  margin: 0 0 1.5rem;
  font-size: .95rem;
}

#password-gate form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

#password-gate input {
  padding: .85rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}

#password-gate input:focus {
  border-color: #2e7d32;
}

#password-gate button {
  padding: .85rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

#password-gate button:hover {
  background: #000;
}

#password-gate .gate-error {
  color: #c62828;
  margin: .75rem 0 0;
  min-height: 1.2em;
  font-size: .9rem;
}

#password-gate .gate-footer {
  margin-top: 1.5rem;
  color: #999;
  font-size: .8rem;
}
