/* ─── Passwortabfrage (Plugin "Password Protected") ─────────────────────────── */
/* Gehört zu password-protected-login.php im Theme-Root. Wird vom Plugin
   automatisch geladen (password-protected.php:904). Die Seite steht allein:
   weder wp-admin- noch Elementor-CSS werden dort geladen, deshalb sind auch
   .juu-button--primary und die Schrift hier eigenständig definiert. */

/* ─── Grundlayout ───────────────────────────────────────────────────────────── */

body.juu-pp {
  background: #f5f7fb;
  color: rgb(13, 18, 84);
  font-family: "Manrope juunit", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.juu-pp__wrap {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* ─── Karte ─────────────────────────────────────────────────────────────────── */

.juu-pp__card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(13, 18, 84, 0.06);
  box-sizing: border-box;
  max-width: 400px;
  padding: 48px 40px 40px;
  text-align: center;
  width: 100%;
}

.juu-pp__logo {
  display: block;
  height: auto;
  margin: 0 auto 24px;
  max-width: 96px;
  width: 100%;
}

.juu-pp__heading {
  color: rgb(13, 18, 84);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 28px;
}

/* ─── Formular ──────────────────────────────────────────────────────────────── */

.juu-pp__form {
  margin: 0;
}

/* Label bleibt für Screenreader erhalten, sichtbar ist der Placeholder. */
.juu-pp__label {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.juu-pp__input {
  background: #fff;
  border: 1px solid #e3e7f2;
  border-radius: 10px;
  box-sizing: border-box;
  color: rgb(13, 18, 84);
  display: block;
  font-family: inherit;
  font-size: 16px;
  padding: 15px 18px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.juu-pp__input::placeholder {
  color: #9aa3bf;
  opacity: 1;
}

.juu-pp__input:focus {
  border-color: rgb(0, 115, 230);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
  outline: none;
}

/* Nur sichtbar, wenn "Angemeldet bleiben" in den Plugin-Einstellungen aktiv ist. */
.juu-pp__remember {
  color: #5a6485;
  font-size: 14px;
  margin: 14px 0 0;
}
.juu-pp__remember label {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
}
.juu-pp__remember input {
  accent-color: rgb(0, 115, 230);
  margin: 0;
}

/* ─── Button ────────────────────────────────────────────────────────────────── */
/* .juu-button--primary kommt auf der Website aus dem Elementor-Custom-CSS.
   Das lädt hier nicht, deshalb ist die Optik an dieser Stelle eigenständig
   definiert. */

.juu-pp .juu-button--primary,
.juu-pp__submit {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, rgb(20, 235, 227) 0%, rgb(0, 115, 230) 100%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  margin: 24px 0 0;
  padding: 17px 44px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.juu-pp .juu-button--primary:hover,
.juu-pp__submit:hover {
  filter: brightness(1.06);
}

.juu-pp .juu-button--primary:active,
.juu-pp__submit:active {
  transform: translateY(1px);
}

.juu-pp .juu-button--primary:focus-visible,
.juu-pp__submit:focus-visible {
  outline: 3px solid rgba(0, 115, 230, 0.4);
  outline-offset: 2px;
}

/* ─── Hilfetext ─────────────────────────────────────────────────────────────── */

.juu-pp__help {
  color: rgb(13, 18, 84);
  font-size: 15px;
  line-height: 1.5;
  margin: 24px auto 0;
  max-width: 280px;
  text-wrap: balance;
}

.juu-pp__help a {
  color: rgb(0, 115, 230);
  text-decoration: none;
}
.juu-pp__help a:hover {
  text-decoration: underline;
}

/* ─── Meldungen und Fehler ──────────────────────────────────────────────────── */
/* Markup kommt vom Plugin (password_protected_login_messages). */

.juu-pp #login_error,
.juu-pp .message,
.juu-pp .password-protected-text-above,
.juu-pp .password-protected-text-below {
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 20px;
  padding: 12px 16px;
  text-align: center;
}

.juu-pp #login_error {
  background: #fdeced;
  border: 1px solid #f3c2c5;
  color: #9b1c25;
}

.juu-pp #login_error a,
.juu-pp .message a {
  color: inherit;
}

.juu-pp .message {
  background: #eef4fe;
  border: 1px solid #c9dcfa;
  color: rgb(13, 18, 84);
}

.juu-pp .password-protected-text-above,
.juu-pp .password-protected-text-below {
  color: #5a6485;
  padding: 0;
}
.juu-pp .password-protected-text-below {
  margin: 20px 0 0;
}

/* ─── Mobil ─────────────────────────────────────────────────────────────────── */

@media (max-width: 479px) {
  .juu-pp__card {
    padding: 36px 24px 32px;
  }
  .juu-pp__heading {
    font-size: 26px;
  }
}
