/* Lokino – Anmelden/Registrieren: freundlich; Akzent = Plattform-Primärfarbe (CSS-Variablen aus base.html) */
.auth-meat-modal .modal-dialog {
  max-width: 420px;
}

.auth-meat-modal .modal-content {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  /* Ein weicher Schatten wie bei Apple-Overlays – ohne bunte Glows */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Header: fast weiß mit sehr dezentem warmen Rot – seriös, aber „Fleisch“ spürbar */
.auth-meat-modal .modal-content > .auth-meat-header {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 45%, #fef2f2 100%) !important;
  background-color: #fffbfb !important;
  color: #1d1d1f;
  padding: 1.5rem 1.5rem 1.35rem;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--mm-red-600, #9333ea) 14%, transparent);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

/* Icon: ruhig, premium – Rot nur als Akzent */
.auth-meat-modal .auth-meat-header .auth-meat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--mm-red-600, #9333ea) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--mm-red-600, #9333ea);
  border: 1px solid color-mix(in srgb, var(--mm-red-600, #9333ea) 14%, transparent);
}

.auth-meat-modal .auth-meat-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 0.4rem;
  color: #1d1d1f;
}

.auth-meat-modal .auth-meat-header .auth-meat-tagline {
  font-size: 0.875rem;
  line-height: 1.47;
  font-weight: 400;
  color: #6e6e73;
  margin: 0;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.auth-meat-modal .auth-meat-header .close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  color: #86868b;
  opacity: 1;
  text-shadow: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-meat-modal .auth-meat-header .close:hover {
  color: var(--mm-red-600, #9333ea);
  transform: scale(1.06);
}

/* Body: viel Weiß, luftig */
.auth-meat-modal .auth-meat-body {
  padding: 1.5rem 1.5rem 1.5rem;
  background: #ffffff;
}

.auth-meat-modal .auth-meat-body .form-control {
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  padding: 0.62rem 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  color: #1d1d1f;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-meat-modal .auth-meat-body .form-control:focus {
  border-color: color-mix(in srgb, var(--mm-red-600, #9333ea) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mm-red-600, #9333ea) 14%, transparent);
  outline: none;
}

.auth-meat-modal .auth-meat-body label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #6e6e73;
  margin-bottom: 0.4rem;
  text-transform: none;
}

/* Google – neutral, sauber */
.auth-meat-modal .btn-mmeat-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 1rem;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #1d1d1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none !important;
}

.auth-meat-modal .btn-mmeat-google:hover {
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  transform: translateY(-1px);
}

.auth-meat-modal .btn-mmeat-google:active {
  transform: translateY(0);
}

.auth-meat-modal .btn-mmeat-google .google-g {
  flex-shrink: 0;
}

.auth-meat-modal .auth-meat-google-hint {
  font-size: 0.75rem;
  color: #86868b;
  text-align: center;
  margin-top: 0.55rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.auth-meat-modal .auth-meat-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #86868b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-meat-modal .auth-meat-divider::before,
.auth-meat-modal .auth-meat-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e5ea 50%, transparent);
}

/* Primär: Markenfarbe (Terrakotta) */
.auth-meat-modal .btn-mmeat-primary {
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: normal;
  background: linear-gradient(
    180deg,
    var(--mm-red-500, #d96d4a) 0%,
    var(--mm-knall, #6d28d9) 100%
  );
  border: none;
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 8px 24px color-mix(in srgb, var(--mm-knall, #6d28d9) 32%, transparent);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.auth-meat-modal .btn-mmeat-primary:hover {
  color: #ffffff;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 12px 32px color-mix(in srgb, var(--mm-knall, #6d28d9) 38%, transparent);
}

.auth-meat-modal .btn-mmeat-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.auth-meat-modal .btn-mmeat-ghost {
  border-radius: 14px;
  font-weight: 500;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.auth-meat-modal .btn-mmeat-ghost:hover {
  background: #f5f5f7;
  color: #1d1d1f;
  transform: translateY(-1px);
}

.auth-meat-modal .auth-meat-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: stretch;
  flex-wrap: wrap;
  padding: 0 1.5rem 1.4rem;
  background: #fafafa;
  border-top: 1px solid #f5f5f7;
}

.auth-meat-modal .auth-meat-footer .btn {
  flex: 1;
  min-width: 120px;
}

.auth-meat-modal .auth-meat-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mm-red-600, #9333ea);
}

.auth-meat-modal .auth-meat-link:hover {
  color: var(--mm-knall-deep, #14532d);
  text-decoration: none;
  opacity: 0.9;
}

/* Registrierung etwas breiter */
.auth-meat-modal.auth-meat-modal-wide .modal-dialog {
  max-width: 460px;
}

/* --- Vollseite: Passwort vergessen / neues Passwort (reset_password.html) --- */
.mm-auth-standalone-wrap .mm-auth-reset-modal.modal {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  display: block !important;
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 0;
}

.mm-auth-standalone-wrap .mm-auth-reset-modal .modal-dialog {
  max-width: 420px;
}

.mm-auth-standalone-wrap .mm-auth-reset-modal .modal-content {
  border-radius: 20px;
}

.mm-page-auth-reset .mm-shell {
  min-height: calc(100vh - 120px);
}

.mm-auth-standalone-wrap .auth-meat-footer {
  flex-wrap: nowrap;
}

.mm-auth-standalone-wrap .auth-meat-footer .btn-mmeat-primary {
  flex: 1.35;
}

.mm-auth-standalone-wrap .auth-meat-footer .btn-mmeat-ghost {
  flex: 0.85;
}

.mm-auth-standalone-links a {
  color: var(--mm-red-600, #d96d4a);
  font-weight: 500;
}

.mm-auth-standalone-links a:hover {
  color: var(--mm-knall-deep, #a83828);
  text-decoration: none;
  opacity: 0.92;
}

/* ============================================================
   Passwort-Anzeigen-Toggle (mm-pw-wrap)
   Auge-Button rechts im Feld — global für alle Auth-Formulare
   ============================================================ */
.mm-pw-wrap {
  position: relative;
  width: 100%;
}
.mm-pw-wrap .mm-pw-input {
  padding-right: 44px;
}
.mm-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6b6058;
  padding: 0;
  border-radius: 8px;
  transition:
    color 120ms ease,
    background-color 120ms ease;
}
.mm-pw-toggle:hover,
.mm-pw-toggle:focus-visible {
  color: var(--mm-red-600, #d96d4a);
  outline: none;
}
.mm-pw-toggle:focus-visible {
  background-color: rgba(217, 109, 74, 0.08);
}
.mm-pw-toggle i {
  font-size: 1.05rem;
  line-height: 1;
}

/* ============================================================
   MOBILE — Auth Modals (Login + Registrierung)
   ============================================================ */
@media (max-width: 575.98px) {
  /* Fullscreen-Sheet statt schwebendem Modal */
  .auth-meat-modal .modal-dialog,
  .auth-meat-modal.auth-meat-modal-wide .modal-dialog {
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
  }

  .auth-meat-modal .modal-content {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .auth-meat-modal .auth-meat-header {
    padding: 1.25rem 1rem 1.1rem;
  }

  .auth-meat-modal .auth-meat-header h4 {
    font-size: 1.15rem;
  }

  .auth-meat-modal .auth-meat-header .auth-meat-tagline {
    font-size: 0.8125rem;
    max-width: none;
  }

  .auth-meat-modal .auth-meat-header .close {
    top: 0.65rem;
    right: 0.65rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
  }

  .auth-meat-modal .auth-meat-body {
    padding: 1.25rem 1rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* iOS zoom prevention: min 16px on all inputs */
  .auth-meat-modal .auth-meat-body .form-control {
    font-size: 1rem;
    min-height: 48px;
    padding: 0.7rem 0.85rem;
  }

  .auth-meat-modal .auth-meat-body label {
    font-size: 0.875rem;
  }

  /* Larger touch targets for buttons */
  .auth-meat-modal .btn-mmeat-primary,
  .auth-meat-modal .btn-mmeat-google {
    min-height: 50px;
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .auth-meat-modal .btn-mmeat-ghost {
    min-height: 48px;
  }

  /* Footer: stack buttons vertically */
  .auth-meat-modal .auth-meat-footer {
    flex-direction: column;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
    gap: 0.5rem;
  }

  .auth-meat-modal .auth-meat-footer .btn {
    min-width: 100%;
  }

  /* Links more tappable */
  .auth-meat-modal .auth-meat-link {
    display: inline-block;
    padding: 6px 0;
    font-size: 0.9375rem;
  }
}

/* ============================================================
   MOBILE — PW-Reset Standalone Page
   ============================================================ */
@media (max-width: 575.98px) {
  .mm-auth-standalone-wrap {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .mm-auth-standalone-wrap .mm-auth-reset-modal .modal-dialog {
    max-width: 100%;
  }

  .mm-auth-standalone-wrap .mm-auth-reset-modal .modal-content {
    border-radius: 16px;
  }

  .mm-auth-standalone-wrap .auth-meat-header {
    padding: 1.15rem 1rem 1rem;
  }

  .mm-auth-standalone-wrap .auth-meat-body {
    padding: 1.15rem 1rem;
  }

  .mm-auth-standalone-wrap .auth-meat-body .form-control {
    font-size: 1rem;
    min-height: 48px;
  }

  .mm-auth-standalone-wrap .auth-meat-footer {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    padding: 0 1rem 1rem;
    gap: 0.5rem;
  }

  .mm-auth-standalone-wrap .auth-meat-footer .btn,
  .mm-auth-standalone-wrap .auth-meat-footer .btn-mmeat-primary,
  .mm-auth-standalone-wrap .auth-meat-footer .btn-mmeat-ghost {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
  }

  .mm-auth-standalone-links {
    padding: 0 0.25rem;
  }

  .mm-page-auth-reset .mm-shell {
    min-height: calc(100vh - 80px);
  }
}

