/* =====================================
   PASSWORD GATE OVERLAY
===================================== */

.password-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ACTIVE STATE */
.password-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* =====================================
   PASSWORD BOX
===================================== */

.password-box {
  background: #111;
  padding: 42px 38px;
  border-radius: 14px;
  width: 320px;

  text-align: center;
  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.05),
    0 0 120px rgba(0, 0, 0, 0.9);

  animation: gateFadeIn 0.5s ease forwards;
}

.password-box h2 {
  margin-bottom: 22px;
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

/* =====================================
   INPUT
===================================== */

.password-box input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;

  background: #000;
  border: 1px solid #333;
  border-radius: 6px;

  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;

  outline: none;
}

.password-box input:focus {
  border-color: #777;
}

/* =====================================
   BUTTON
===================================== */

.password-box button {
  width: 100%;
  padding: 12px;

  background: #fff;
  color: #000;

  border: none;
  border-radius: 6px;
  cursor: pointer;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;

  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.password-box button:hover {
  background: #eaeaea;
}

.password-box button:active {
  transform: scale(0.97);
}

/* =====================================
   ERROR MESSAGE
===================================== */

#passwordError {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #ff4d4d;
  display: none;
}

/* =====================================
   ANIMATION
===================================== */

@keyframes gateFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
