/* popup.css – Modern Login Light (Ebolt Style) */

/* فونت وزیر */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600&display=swap');

body, .modern-login-modal {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  text-align: right;
}

/* لینک دکمه ورود */
.modern-login-btn {
  color: #bb274b;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.modern-login-btn:hover {
  border-bottom: 1px solid #ffffff;
  color: #bb274b;
}

/* کل مودال */
.modern-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

/* بک‌دراپ */
.modern-login-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

/* جعبه مودال */
.modern-login-modal-content {
  position: relative;
  background: #fff;
  color: #333;
  width: 360px;
  max-width: 90%;
  padding: 2.2rem 2rem 2.3rem;
  margin: 8% auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.4s ease forwards;
}

/* انیمیشن ظاهر شدن */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* دکمه بستن مودال */
.close-login-modal {
  position: absolute;
  top: 12px;
  left: 15px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-login-modal:hover {
  color: #bb274b;
}

/* فرم داخل مودال */
#modernPopupLoginForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#modernPopupLoginForm label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2px;
}

#modernPopupLoginForm input[type="text"],
#modernPopupLoginForm input[type="password"] {
  width: 100%;
  border: 1.2px solid #ddd;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#modernPopupLoginForm input[type="text"]:focus,
#modernPopupLoginForm input[type="password"]:focus {
  border-color: #bb274b;
  box-shadow: 0 0 0 2px rgba(187, 39, 75, 0.15);
  outline: none;
}

/* قسمت remember me */
.remember-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
}
.remember-wrap input {
  accent-color: #bb274b;
}

/* دکمه ارسال */
#popupLoginBtn {
  background: #fff;
  color: #bb274b;
  border: 1.5px solid #bb274b;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
}
#popupLoginBtn:hover {
  background: #bb274b;
  color: #fff;
}

/* Toast ساده خوش آمد */
#loginToast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #bb274bf0;
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.4s ease;
}
#loginToast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
