/* Basic popup container (applies inside the overlay) */
.mfp-content .magic-login-popup {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Optional header style */
.magic-login-popup h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
  color: #222;
}

/* Tidy up form elements inside the popup */
.magic-login-popup form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.magic-login-popup input[type="email"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.magic-login-popup input[type="submit"],
.magic-login-popup button[type="submit"] {
  background: #0074bd;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.magic-login-popup input[type="submit"]:hover,
.magic-login-popup button[type="submit"]:hover {
  background: #005a96;
}

/* Optional: darken overlay slightly more than default */
.mfp-bg {
  background: rgba(0, 0, 0, 0.65);
}

/* Smooth fade animation (matches .mfp-fade class) */
.mfp-fade.mfp-bg {
  opacity: 0;
  transition: all 0.2s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 1;
}
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.2s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: scale(0.95);
}
