/* Euonia Login Popup 1.0.0 */
#elp-root {
  --elp-ink: #301646;
  --elp-ink-soft: #4b365c;
  --elp-plum: #402151;
  --elp-label: #39254c;
  --elp-muted: #766783;
  --elp-hint: #928699;
  --elp-placeholder: #968aa3;
  --elp-line: #d7c5e5;
  --elp-line-soft: #ded5e5;
  --elp-gold: #c5a463;
  --elp-cream: #fffefb;
  --elp-card: #fffefdf7;
  --elp-lilac: #f8f2fa;
  --elp-tab-active: #eee3f3;
  --elp-btn-top: #61476f;
  --elp-btn-bot: #483052;
  --elp-link: #604070;
  --elp-focus: #9873af;
  --elp-sans: "Source Sans 3", Telex, Arial, Helvetica, sans-serif;
  --elp-serif: "Euonia Cardo", Cardo, Georgia, "Times New Roman", serif;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  font-family: var(--elp-sans);
  color: var(--elp-ink);
  line-height: 1.4;
}
#elp-root.is-open { display: block; }
body.elp-open { overflow: hidden !important; }

#elp-root *, #elp-root *::before, #elp-root *::after { box-sizing: border-box; }

.elp-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 242, 250, 0.28) 0%, rgba(72, 40, 92, 0.32) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.elp-popup {
  position: absolute;
  background: var(--elp-card);
  border: 1px solid var(--elp-line);
  box-shadow: 0 18px 50px rgba(48, 22, 70, 0.18), 0 2px 0 rgba(197, 164, 99, 0.35) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.elp-close {
  position: absolute;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 1px solid #e6d8ec;
  border-radius: 50%;
  background: #fff;
  color: var(--elp-plum);
  font: 600 22px/1 var(--elp-sans);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(48, 22, 70, 0.08);
  padding: 0;
}
.elp-close:hover { background: #f6f1f8; }
.elp-close:focus-visible { outline: 2px solid var(--elp-focus); outline-offset: 2px; }

.elp-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #e0d4ea;
  margin: 10px auto 0;
}

.elp-intro {
  position: relative;
  padding: 28px 24px 20px 28px;
  background-color: var(--elp-lilac);
  background-repeat: repeat;
  background-size: 360px 420px;
  border-right: 1px solid #eadff2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.elp-kicker {
  margin: 8px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #583668;
}
.elp-headline {
  margin: 0;
  font-family: var(--elp-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #2b143f;
  max-width: 16ch;
}
.elp-headline em {
  display: block;
  font-style: italic;
  color: #57366c;
}
.elp-lede {
  margin: 12px 0 0;
  font-family: var(--elp-serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--elp-ink-soft);
  max-width: 28ch;
}
.elp-value {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5c466d;
  max-width: 36ch;
}
.elp-genie-wrap {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
.elp-genie {
  width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 16px rgba(98, 71, 115, 0.18));
}
.elp-tagline {
  margin: 4px 0 0;
  font-family: var(--elp-serif);
  font-style: italic;
  font-size: 14px;
  color: #684d78;
}

.elp-panel {
  padding: 40px 32px 22px;
  background: linear-gradient(180deg, #fffefb 0%, #fffdf8 100%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: auto;
}
.elp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #f5f0f6;
  border-radius: 12px;
  flex: 0 0 auto;
}
.elp-tab {
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--elp-muted);
  font: 600 14px/1.3 var(--elp-sans);
  cursor: pointer;
}
.elp-tab.is-active {
  background: var(--elp-tab-active);
  color: var(--elp-plum);
  box-shadow: inset 0 -3px var(--elp-gold);
}
.elp-tab:focus-visible { outline: 2px solid var(--elp-focus); outline-offset: 2px; }

.elp-form { display: none; flex: 1; flex-direction: column; }
.elp-form.is-active { display: flex; }

.elp-title {
  font-family: var(--elp-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--elp-ink);
  margin: 14px 0 12px;
}

.elp-message {
  display: none;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}
.elp-message.is-error {
  display: block;
  background: #fbf0f2;
  color: #7a2436;
  border: 1px solid #efd0d6;
}
.elp-message.is-success {
  display: block;
  background: #f3f8f3;
  color: #2d5a38;
  border: 1px solid #cfe0d2;
}

.elp-field { display: block; margin: 0 0 11px; }
.elp-field > span {
  display: block;
  color: var(--elp-label);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
}
.elp-field input[type="text"],
.elp-field input[type="email"],
.elp-field input[type="password"] {
  width: 100%;
  height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--elp-line-soft);
  border-radius: 9px;
  background: #fff;
  color: #332243;
  font: 14px/1.4 var(--elp-sans);
  outline: none;
}
.elp-field input::placeholder { color: var(--elp-placeholder); }
.elp-field input:focus {
  border-color: var(--elp-focus);
  box-shadow: 0 0 0 3px #ab80c41c;
}
.elp-field input.is-invalid { border-color: #c97384; }

.elp-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -2px 0 14px;
  font-size: 12px;
  color: var(--elp-link);
}
.elp-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--elp-label);
  font-weight: 500;
  cursor: pointer;
}
.elp-remember input,
.elp-terms input {
  width: 15px;
  height: 15px;
  accent-color: #654374;
  margin: 0;
  flex: 0 0 auto;
}
.elp-forgot {
  color: var(--elp-link);
  text-decoration: none;
  font-weight: 600;
}
.elp-forgot:hover { text-decoration: underline; }

.elp-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--elp-label);
  font-weight: 400;
}
.elp-terms a { color: var(--elp-link); }

.elp-cta {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--elp-btn-top), var(--elp-btn-bot));
  color: #fff;
  font: 600 15px/1.4 var(--elp-sans);
  letter-spacing: 0.01em;
  box-shadow: 0 5px 12px #492a5f14;
  cursor: pointer;
}
.elp-cta:hover { filter: brightness(1.07); }
.elp-cta:disabled { opacity: 0.7; cursor: wait; filter: none; }
.elp-cta:focus-visible { outline: 2px solid var(--elp-focus); outline-offset: 2px; }

.elp-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #746480;
  text-align: center;
}
.elp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--elp-hint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.elp-divider::before,
.elp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6d8ec;
}

.elp-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 9px;
  border: 1px solid #dfd5e6;
  border-radius: 10px;
  background: #fff;
  color: #4c345a;
  font: 600 13px/1.3 var(--elp-sans);
  text-decoration: none;
  cursor: pointer;
}
.elp-google:hover { background: #fbfafc; }
.elp-google svg { width: 18px; height: 18px; flex: 0 0 auto; }

.elp-later {
  display: block;
  margin: auto 0 0;
  padding-top: 14px;
  text-align: center;
  color: var(--elp-hint);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.elp-later:hover { color: var(--elp-link); }

.elp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Desktop card */
@media (min-width: 721px) {
  .elp-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 40px);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    flex-direction: unset;
  }
  .elp-close { top: 16px; right: 16px; }
  .elp-intro { min-height: 0; }
  .elp-panel { max-height: calc(100vh - 40px); }
}

/* Mobile bottom sheet */
@media (max-width: 720px) {
  .elp-popup {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 96vh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    box-shadow: 0 -16px 40px rgba(48, 22, 70, 0.18);
    overflow: hidden;
  }
  .elp-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .elp-close { top: 14px; right: 14px; }
  .elp-handle { display: block; }
  .elp-intro {
    border-right: 0;
    border-bottom: 1px solid #eadff2;
    padding: 6px 48px 10px 20px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 8px;
    background-size: 280px 320px;
    flex: 0 0 auto;
  }
  .elp-copy { flex: 1; min-width: 0; }
  .elp-kicker { margin: 0 0 4px; font-size: 9px; letter-spacing: 0.12em; }
  .elp-headline { font-size: 24px; max-width: none; }
  .elp-lede, .elp-tagline { display: none; }
  .elp-value { margin: 6px 0 0; font-size: 12px; max-width: none; line-height: 1.4; }
  .elp-genie-wrap {
    margin: 0;
    flex: 0 0 100px;
    order: 2;
    align-self: flex-end;
  }
  .elp-genie { width: 100px; }
  .elp-panel { padding: 12px 20px 16px; }
  .elp-title { font-size: 22px; margin: 10px 0 10px; }
  .elp-field { margin-bottom: 8px; }
  .elp-field input[type="text"],
  .elp-field input[type="email"],
  .elp-field input[type="password"] { height: 44px; font-size: 16px; }
  .elp-later { padding-top: 8px; margin-top: 4px; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #elp-root * { transition: none !important; }
}
