/* ============================================================
   Password Protection Overlay
   ============================================================ */

.password-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 2rem 1rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.password-box {
  width: 100%;
  max-width: 420px;
  background: var(--expert-card-bg, #fff);
  border: 1px solid var(--expert-border, #e2e8f0);
  border-radius: 16px;
  padding: 40px 32px 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.password-box .lock-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.password-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--expert-text, #1e293b);
  margin: 0 0 6px;
}

.password-box .hint-text {
  font-size: 0.85rem;
  color: var(--expert-text-secondary, #64748b);
  margin: 0 0 24px;
  line-height: 1.5;
}

.password-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.password-input-group input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--expert-border, #e2e8f0);
  border-radius: 10px;
  outline: none;
  background: var(--expert-surface, #f8fafc);
  color: var(--expert-text, #1e293b);
  transition: border-color 0.2s ease;
}
.password-input-group input:focus {
  border-color: var(--expert-primary, #0077B6);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}
.password-input-group input::placeholder {
  color: #a0aec0;
}

.password-input-group button {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.password-input-group button:hover {
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.3);
  transform: translateY(-1px);
}
.password-input-group button:active {
  transform: translateY(0);
}

.password-error {
  font-size: 0.82rem;
  color: #e53e3e;
  min-height: 1.2em;
  margin: 0;
  transition: opacity 0.2s ease;
}

.protected-content {
  display: none;
}
.protected-content.unlocked {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: contentReveal 0.6s ease forwards;
}

@keyframes contentReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .password-box {
    background: #1a202c;
    border-color: #2d3748;
  }
  .password-input-group input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
}
