
body.mm-auth-open { touch-action: none; }

.mm-auth-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.mm-auth-modal.open { display: flex; }

.mm-auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: mmAuthFade 0.4s ease;
}
@keyframes mmAuthFade { from { opacity: 0; } to { opacity: 1; } }

.mm-auth-card {
  position: relative; width: 100%; max-width: 520px;
  background: var(--mm-off-white);
  padding: 8px;
  box-shadow: 0 30px 90px rgba(6,6,6,0.45);
  overflow: hidden;
  animation: mmAuthIn 0.45s cubic-bezier(0.4,0,0.2,1);
}
@keyframes mmAuthIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.mm-auth-filigree {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.045;
  background-image: url("../logo/Pattern__M-oblique__black-motif.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mm-auth-inner {
  position: relative; z-index: 2;
  border: 1px solid rgba(191,174,149,0.45);
  padding: 48px 48px 44px;
  text-align: center;
}

.mm-auth-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6,6,6,0.045);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--mm-text-secondary);
  transition: background 0.2s, color 0.2s;
}
.mm-auth-close:hover { background: rgba(6,6,6,0.09); color: var(--mm-black); }

.mm-auth-monogram { display: flex; justify-content: center; margin-bottom: 20px; }
.mm-auth-monogram img { height: 42px; width: auto; display: block; }

.mm-auth-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--mm-text-secondary); display: block;
}
.mm-auth-rule {
  width: 36px; height: 1px; background: var(--mm-champagne);
  margin: 16px auto 22px; display: block; opacity: 0.7;
}
.mm-auth-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tight); line-height: 1.22;
  color: var(--mm-black); margin-bottom: 18px;
}
.mm-auth-body {
  font-size: var(--fs-body-sm); font-weight: var(--fw-light);
  line-height: var(--lh-relaxed); color: var(--mm-text-secondary);
  max-width: 380px; margin: 0 auto 28px;
}
.mm-auth-cta { margin-top: 0; }

@media (max-width: 900px) {
  .mm-auth-modal { padding: 18px; align-items: center; }
  .mm-auth-card  { max-width: 340px; margin: 0 auto; padding: 6px; }
  .mm-auth-inner { padding: 26px 20px 24px; }
  .mm-auth-monogram img { height: 30px; }
  .mm-auth-monogram { margin-bottom: 14px; }
  .mm-auth-rule { margin: 12px auto 16px; }
  .mm-auth-eyebrow { font-size: 0.6875rem; }
  .mm-auth-title { font-size: 1.2rem; line-height: 1.25; margin-bottom: 12px; }
  .mm-auth-body  { max-width: 260px; font-size: 0.82rem; line-height: 1.55; margin-bottom: 20px; }
  .mm-auth-cta   { padding: 11px 24px; font-size: 0.72rem; }
  .mm-auth-close { width: 44px; height: 44px; font-size: 22px; }
}
@media (max-width: 560px) {
  .mm-auth-modal { padding: 16px; }
  .mm-auth-inner { padding: 40px 26px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-auth-backdrop { animation: none; }
  .mm-auth-card     { animation: none; }
}
