/* Center the form */
.protected-pages-enter-password {
  max-width: 549px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgb(0 0 0 / 19%);
  text-align: center;
}

/* Title */
#edit-protected-page-enter-password legend {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* Description text */
.protected_pages_description {
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
  font-weight: 300;
}

/* Hide password label on protected page form. */
.protected-pages-enter-password .form-item-password label {
  display: none;
}

/* Password input */
#edit-password::placeholder {
  color: #999;
}

.protected-pages-enter-password #edit-password {
  font-size: 14px;
  font-weight: 500;
  color: #656565;
  border-radius: 6px;
  border-width: 1px;
  border: solid 1px #656565;
  font-family: 'Montserrat' !important;
  padding: 15px;
  height: 48px;
  width: 100%;
}

/* Button */
#edit-submit {
  width: 100%;
  margin-top: 20px !important;
  font-size: 16px;
  line-height: 27px;
  border: 2px solid #ffc864 !important;
  padding: 4px 25px !important;
  border-radius: 12px;
  background: #ffc864 !important;
  color: #000;
}

#edit-submit:hover {
  font-size: 16px;
  line-height: 27px;
  border: 2px solid #ffc864 !important;
  padding: 4px 25px !important;
  border-radius: 12px;
  font-weight: 600 !important;
  background: #fff !important;
}

.protected-pages-enter-password .button:hover {
  opacity: unset;
}

.fieldset-legend::before {
  font-family: "FontAwesome";
  content: "\f023"; /* lock icon */
  margin-right: 8px;
  font-size: 18px;
  color: #ffc864;
}

#edit-protected-page-enter-password legend {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.fieldset-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Make the form container relative */
.protected-pages-enter-password {
  position: relative;
  padding-bottom: 40px; /* space for error */
}

/* Hide duplicated global message for this form page. */
.path-protected-page .messages--error {
  display: none;
}

/* Inline error message below button. */
.protected-pages-enter-password .custom-error {
  margin-top: 16px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #d93025;
  padding: 12px 16px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}