/* Divi Page Password: password screen. --dpp-accent is set inline from the plugin settings. */

.dpp-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 64px 16px;
  box-sizing: border-box;
}

body.dpp-standalone {
  margin: 0;
  background: #f4f4f6;
}

body.dpp-standalone .dpp-main {
  min-height: 100vh;
}

.dpp-screen {
  width: 100%;
  max-width: 440px;
}

.dpp-card {
  padding: 40px 32px 32px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.12);
  color: #333;
  text-align: center;
  box-sizing: border-box;
}

.dpp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--dpp-accent, #2ea3f2);
  color: #fff;
}

.dpp-card .dpp-heading {
  margin: 0 0 8px;
  padding: 0;
  color: #222;
  font-size: 24px;
  line-height: 1.3;
}

.dpp-message {
  margin-bottom: 24px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.dpp-message p {
  margin: 0 0 8px;
  padding: 0;
}

.dpp-message p:last-child {
  margin-bottom: 0;
}

.dpp-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fdecea;
  color: #b42318;
  font-size: 15px;
  text-align: left;
}

.dpp-form {
  text-align: left;
}

.dpp-label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.dpp-field {
  position: relative;
  margin-bottom: 16px;
}

.dpp-card input[type="password"],
.dpp-card input[type="text"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 64px 12px 14px;
  border: 1px solid #c9c9cf;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 16px; /* 16px stops iPhones zooming into the field. */
  line-height: 1.4;
  box-sizing: border-box;
}

.dpp-card input:focus {
  border-color: var(--dpp-accent, #2ea3f2);
  outline: 2px solid var(--dpp-accent, #2ea3f2);
  outline-offset: 0;
}

.dpp-card input[aria-invalid="true"] {
  border-color: #b42318;
}

.dpp-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transform: translateY(-50%);
}

.dpp-toggle:hover,
.dpp-toggle:focus-visible {
  background: #f0f0f2;
  color: #222;
}

.dpp-card .dpp-submit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--dpp-accent, #2ea3f2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.dpp-card .dpp-submit:hover {
  filter: brightness(0.92);
}

.dpp-card .dpp-submit:focus-visible,
.dpp-toggle:focus-visible {
  outline: 3px solid var(--dpp-accent, #2ea3f2);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .dpp-card {
    padding: 32px 20px 24px;
  }
}
