/* Password gate for Elumia constellation grid */

.elg-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(227, 176, 75, 0.18), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(140, 120, 255, 0.12), transparent 35%),
    #02030a;
}

body:not(.elumia-grid-unlocked) .elumia-grid-app {
  display: none;
}

body.elumia-grid-unlocked .elg-gate {
  display: none;
}

.elg-gate-card {
  width: min(100%, 420px);
  padding: 2rem;
  border: 1px solid rgba(227, 176, 75, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(227, 176, 75, 0.08), rgba(100, 80, 160, 0.1)), rgba(8, 10, 20, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(227, 176, 75, 0.12);
}

.elg-gate-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6d27a;
  font-weight: 600;
}

.elg-gate-title {
  margin: 0 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.65rem;
  color: #f6d27a;
}

.elg-gate-copy {
  margin: 0 0 1.25rem;
  color: #9a93a8;
  line-height: 1.55;
  font-size: 0.92rem;
}

.elg-gate-form {
  display: grid;
  gap: 0.65rem;
}

.elg-gate-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8f88a0;
}

.elg-gate-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #322c46;
  background: rgba(8, 7, 14, 0.9);
  color: #e8e3d3;
  font: inherit;
}

.elg-gate-input:focus {
  outline: none;
  border-color: #e3b04b;
  box-shadow: 0 0 0 2px rgba(227, 176, 75, 0.2);
}

.elg-gate-error {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
  color: #ff8080;
}

.elg-gate-submit {
  margin-top: 0.35rem;
}

.elg-gate-foot {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.elg-gate-foot a {
  color: #9a93a8;
  text-decoration: none;
}

.elg-gate-foot a:hover {
  color: #f6d27a;
}
