@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

/*
 * Shared, in-flow Nexalyra attribution. Namespaced to keep existing ESS
 * layouts, module typography, and print content unchanged.
 */
.ess-nexalyra-footer {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.22em 0.42em;
  width: 100%;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(83, 106, 176, 0.18);
  color: #4c5c78;
  font: 500 12px/1.6 "DM Sans", "Segoe UI", system-ui, sans-serif;
  text-align: center;
}

.ess-nexalyra-footer__link {
  color: #283d79;
  font-family: "Poppins", "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  text-underline-offset: 3px;
}

.ess-nexalyra-footer__link:hover {
  color: #536ab0;
  text-decoration: underline;
}

.ess-nexalyra-footer__link:focus-visible {
  border-radius: 2px;
  outline: 2px solid #536ab0;
  outline-offset: 3px;
}

@media screen {
  /* Keep the existing login card centered while the in-flow footer follows it. */
  body:has(> main.card > #loginForm) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 20px;
    min-height: 100dvh;
  }

  body:has(> main.card > #loginForm) > .ess-nexalyra-footer {
    width: min(440px, 100%);
    padding: 12px 0 0;
  }
}

@media (max-width: 480px) {
  .ess-nexalyra-footer {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media print {
  .ess-nexalyra-footer {
    display: none !important;
  }
}
