/* Password Gate (client-side) */

/* While locked, show ONLY the gate overlay */
body[data-locked="true"] > :not(#password-gate) {
  display: none !important;
}

/* Once unlocked, hide the gate overlay */
body[data-locked="false"] #password-gate {
  display: none !important;
}

#password-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 30% 10%, rgba(13, 148, 136, 0.25), transparent 60%),
    radial-gradient(900px 500px at 80% 40%, rgba(15, 23, 42, 0.8), transparent 65%),
    #0b1220;
  color: #ffffff;
}

#password-gate .pw-card {
  width: min(420px, 100%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

#password-gate .pw-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

#password-gate .pw-subtitle {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

#password-gate .pw-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

#password-gate input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
  font-size: 14px;
}

#password-gate input[type="password"]:focus {
  border-color: rgba(13, 148, 136, 0.8);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
}

#password-gate button[type="submit"] {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #0d9488;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

#password-gate button[type="submit"]:hover {
  filter: brightness(1.05);
}

#password-gate .pw-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  user-select: none;
}

#password-gate .pw-remember input {
  width: 16px;
  height: 16px;
  accent-color: #0d9488;
}

#password-gate .pw-error {
  margin-top: 10px;
  color: #fecaca; /* red-200 */
  font-size: 12px;
  min-height: 16px;
}

@media print {
  #password-gate {
    display: none !important;
  }
}

