/* Modern Password Form Styling */
.post-password-form {
  max-width: 450px;
  margin: 60px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.post-password-form p {
  margin: 0 0 24px 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.post-password-form p:first-of-type {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-password-form p:first-of-type::before {
  content: "Members Only";
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #C4A338;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.post-password-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.post-password-form input[type="password"] {
  width: 100%;
  min-width: 300px;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.post-password-form input[type="password"]:focus {
  outline: none;
  border-color: #4a90e2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.post-password-form input[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #C4A338;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(196, 163, 56, 0.3);
}

.post-password-form input[type="submit"]:hover {
  background: #b59430;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 163, 56, 0.4);
}

.post-password-form input[type="submit"]:active {
  background: #a68528;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196, 163, 56, 0.3);
}
/* Email field: match password */
.post-password-form input[type="email"] {
  width: 100%;
  min-width: 300px;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.post-password-form input[type="email"]:focus {
  outline: none;
  border-color: #4a90e2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Unified placeholder color */
.post-password-form input[type="password"]::placeholder,
.post-password-form input[type="email"]::placeholder {
  color: #9a9a9a;
}

/* Desktop: put password + button on one row */
.post-password-form p:last-of-type {
  display: grid;
  grid-template-columns: 1fr 180px; /* input grows, button fixed */
  align-items: end;
  gap: 12px;
}

/* Make button fill its grid cell */
.post-password-form input[type="submit"] { width: 100%; }

/* Ensure label stacks caption above input */
.post-password-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mobile: fix overflow & stack neatly */
@media (max-width: 768px) {
  .post-password-form {
    max-width: 100%;
    margin: 40px 16px;
    padding: 28px;
  }
  .post-password-form input[type="password"],
  .post-password-form input[type="email"] {
    min-width: 0;   /* overrides any 300px min on small screens */
    width: 100%;
  }
  .post-password-form p:last-of-type {
    grid-template-columns: 1fr; /* stack password + button */
  }
  .post-password-form input[type="submit"] {
    margin-top: 12px;
  }
}


/* Alternative color schemes - uncomment one if you prefer */

/* Clean Blue
.post-password-form input[type="submit"] {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.post-password-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
}
*/

/* Fresh Green
.post-password-form input[type="submit"] {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  box-shadow: 0 4px 12px rgba(86, 171, 47, 0.3);
}
.post-password-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #4a9628 0%, #93c954 100%);
}
*/

/* Elegant Dark
.post-password-form input[type="submit"] {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}
.post-password-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #1f2d3a 0%, #2c3e50 100%);
}
*/