/* EdQuill CRM login popup — dropped onto marketing pages by login-popup.js.
   Kept intentionally small: matches the brand tokens already set on the
   marketing site (Inter font family, purple brand `#8e2d8e`, rounded 8px
   radius) without importing any new dependencies. */

/* Overlay (fixed, dims the page behind the modal). */
.edq-lp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 30, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.edq-lp-overlay.is-open { display: flex; }

/* Card. */
.edq-lp-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  padding: 28px 26px;
  animation: edq-lp-in 180ms ease-out;
}
@keyframes edq-lp-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.edq-lp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.edq-lp-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f1030;
}
.edq-lp-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #7b6a8f;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.edq-lp-close:hover { background: #f4eef8; color: #2b1a3f; }

/* Fields. */
.edq-lp-field { display: block; margin-bottom: 14px; }
.edq-lp-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #43324f;
  margin-bottom: 6px;
}
.edq-lp-field > input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #dcd3e6;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 120ms;
}
.edq-lp-field > input:focus {
  outline: none;
  border-color: #8e2d8e;
  box-shadow: 0 0 0 3px rgba(142, 45, 142, 0.15);
}
.edq-lp-field > input[readonly] {
  background: #f7f3fa;
  color: #5a4a6f;
  cursor: default;
}
.edq-lp-field.is-invalid > input { border-color: #d33; }
.edq-lp-field .edq-lp-hint {
  font-size: 12px;
  color: #7b6a8f;
  margin-top: 4px;
}
.edq-lp-field .edq-lp-error {
  font-size: 12px;
  color: #d33;
  margin-top: 4px;
  display: none;
}
.edq-lp-field.is-invalid .edq-lp-error { display: block; }

/* Buttons. */
.edq-lp-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.edq-lp-submit {
  flex: 1;
  border: none;
  border-radius: 8px;
  background: #8e2d8e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 120ms;
  font-family: inherit;
}
.edq-lp-submit:hover:not(:disabled) { background: #7b287b; }
.edq-lp-submit:disabled { background: #b590b5; cursor: default; }

/* Alert row for server errors. */
.edq-lp-alert {
  background: #fdecec;
  border: 1px solid #f0c8c8;
  color: #a51818;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.edq-lp-alert.is-visible { display: block; }
