/* ── Login Modal (bmd-lm) ───────────────────────────────────────────── */

.bmd-lm {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  direction: rtl;
}

.bmd-lm[hidden] {
  display: none !important;
}

.bmd-lm__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bmd-lm__box {
  position: relative;
  z-index: 1;
  background: #14122a;
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(139, 92, 246, .15), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: bmd-lm-in .35s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes bmd-lm-in {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bmd-lm__close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-size: 0;
  padding: 0;
}

.bmd-lm__close:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.bmd-lm__close .material-symbols-rounded {
  font-size: 20px;
}

.bmd-lm__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, .25) 0%, rgba(139, 92, 246, .08) 100%);
  border: 1px solid rgba(139, 92, 246, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.bmd-lm__icon .material-symbols-rounded {
  font-size: 40px;
  color: #a78bfa;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.bmd-lm__title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
}

.bmd-lm__text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 32px;
}

.bmd-lm__cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 8px 24px rgba(139, 92, 246, .4);
}

.bmd-lm__cta:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.bmd-lm__login-link {
  margin: 20px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}

.bmd-lm__login-link a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 700;
}

.bmd-lm__login-link a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .bmd-lm__box {
    padding: 40px 24px 32px;
    border-radius: 20px;
  }
}

.bmd-lm__img { margin: 0 auto 16px; text-align: center; }
.bmd-lm__img-el { max-width: 140px; max-height: 140px; border-radius: 16px; object-fit: cover; }

.bmd-lm__noshow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  cursor: pointer;
  user-select: none;
}

.bmd-lm__noshow input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #8b5cf6;
  cursor: pointer;
  flex-shrink: 0;
}

.bmd-lm__noshow span {
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
  transition: color .2s;
}

.bmd-lm__noshow:hover span {
  color: rgba(255, 255, 255, .60);
}
