/* Password Protection Overlay */
#password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#password-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.password-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.password-container h2 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 24px;
  font-family: 'Inter', sans-serif;
}

.password-container p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 14px;
}

.password-input-group {
  margin-bottom: 20px;
}

.password-input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.password-input-group input:focus {
  outline: none;
  border-color: #667eea;
}

.password-submit {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.password-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.password-submit:active {
  transform: translateY(0);
}

.password-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.password-error.show {
  display: block;
}

/* Hide content until authenticated */
body.password-protected > *:not(#password-overlay) {
  display: none;
}

body.authenticated {
  display: block;
}

body.authenticated > *:not(#password-overlay) {
  display: block;
}
