/* ==========================================================================
   Producer's Friend – Anmeldung (index.php)
   ========================================================================== */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(145, 194, 60, .16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(145, 194, 60, .12), transparent 40%),
    var(--bg);
}

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.login__card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 380px);
  gap: 32px;
  align-items: center;
  width: min(820px, 100%);
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(68, 72, 58, .12);
}

/* Booking-Assistent mit Sprechblase ------------------------------------------------- */
.login__assistent { display: grid; justify-items: center; gap: 18px; }
.login__avatar { width: 180px; height: auto; }

.login__bubble {
  position: relative;
  order: -1;
  max-width: 290px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--g-border);
  border-radius: 16px;
  background: var(--g-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.login__bubble::after {                              /* Spitze nach unten zum Booking-Assistenten */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.login__bubble a { color: var(--g-text); font-weight: 700; }
.login__bubble[data-mood="error"] { border-color: #f0c2b8; background: #fdf0ec; color: #8f2c1b; }
.login__bubble[data-mood="error"]::after { border-color: #f0c2b8; }
.login__bubble[data-mood="ok"] { border-color: var(--g); }
.login__bubble.is-new { animation: login-pop .35s ease-out; }
@keyframes login-pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }

/* Formular ---------------------------------------------------------------- */
.login__form { display: grid; gap: 14px; }
.login__logo { width: 190px; height: auto; margin-bottom: 4px; }
.login__title { margin: 0; font-size: 24px; }
.login__slogan { margin: -8px 0 4px; color: var(--mut); font-size: 13px; }

.login__field { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.login__field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6d4cb;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 400;
}
.login__field input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-ring); }
.login__field input.is-invalid { border-color: #c8432f; box-shadow: 0 0 0 3px rgba(200, 67, 47, .14); }

.login__pass { position: relative; display: block; }
.login__pass input { padding-right: 46px; }
.login__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--mut);
  transform: translateY(-50%);
}
.login__eye svg { width: 20px; height: 20px; }
.login__eye[aria-pressed="true"] { color: var(--g-dark); background: var(--g-soft); }

.login__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.login__check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.login__check input { width: 16px; height: 16px; accent-color: var(--g-dark); }
.login__forgot { color: var(--g-text); }
.login__form > .login__forgot { justify-self: center; font-size: 13px; }   /* passwort.php: Zurück zur Anmeldung */
.login__hinweis { margin: -4px 0 0; color: var(--mut); font-size: 13px; }

/* passwort.php: E-Mail verschickt */
.login__gesendet { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--g-border); border-radius: var(--radius-sm); background: var(--g-soft); font-size: 14px; line-height: 1.5; }
.login__gesendet p { margin: 0; }
.login__gesendet .login__hinweis { margin: 0; }
.login__gesendet a { color: var(--g-text); }
.login__gesendet-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--g-dark); }
.login__gesendet-icon svg { width: 22px; height: 22px; }
.login__gesendet-titel { margin: 0; font-size: 18px; }

.login__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; font-size: 15px; font-weight: 700; }
.login__submit svg { width: 18px; height: 18px; }
.login__form.is-busy .login__submit { opacity: .7; }


@media (max-width: 700px) {
  .login { align-items: start; padding-top: 16px; }
  .login__card { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .login__assistent { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 12px; }
  .login__avatar { width: 88px; }
  .login__bubble { order: 0; max-width: none; font-size: 14px; text-align: left; }
  .login__bubble::after {                            /* Spitze nach links zum Booking-Assistenten */
    left: -9px;
    top: 50%;
    bottom: auto;
    border: 0;
    border-left: 1px solid var(--g-border);
    border-bottom: 1px solid var(--g-border);
    transform: translateY(-50%) rotate(45deg);
  }
  .login__logo { width: 150px; }
  .login__field input { font-size: 16px; }         /* kein Zoom auf iOS */
}

/* Mini-Footer unter der zentrierten Karte */
.login-page { display: flex; flex-direction: column; }
.login-page .login { flex: 1; min-height: 0; }
.login-page .mini-fuss { margin-top: 0; border-top: 0; }
