/* ==========================================================================
   Password Protection Styles
   ========================================================================== */

.password-protection-form {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-protection-form h1 {
  color: #333;
  margin-bottom: 1rem;
}

.password-protection-form p {
  color: #555;
  margin-bottom: 1.5rem;
}

.password-protection-form form {
  margin: 30px 0;
}

.password-protection-form input[type="password"] {
  padding: 10px;
  margin-right: 10px;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 16px;
}

.password-protection-form input[type="password"]:focus {
  border-color: #0061aa;
  outline: none;
}

.error-message {
  color: #aa0000;
  margin: 20px 0;
  padding: 10px;
  background: #fff5f5;
  border-radius: 2px;
}

/* Protected content styles */
.protected-content {
  margin: 2rem 0;
  padding: 20px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.protected-content > *:first-child {
  margin-top: 0;
}

.protected-content > *:last-child {
  margin-bottom: 0;
}

/* Success message styles */
.alert-success {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  text-align: center;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 640px) {
  .password-protection-form {
    margin: 20px auto;
    padding: 15px;
  }

  .password-protection-form input[type="password"] {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .password-protection-form input[type="submit"] {
    width: 100%;
  }
}
