.esm-footer-entry {
  width: 100%;
  padding: 8px 20px calc(8px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #fafbf9;
}

.esm-entry-button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #647168;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  min-height: 32px;
  padding: 6px 10px;
  text-decoration: none;
}

.esm-entry-button:hover { color: #15382f; border-bottom-color: currentColor; }
.esm-entry-button:focus-visible { outline: 3px solid #348569; outline-offset: 2px; }

.esm-login-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #21312a;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 36, 27, .24);
}

.esm-login-dialog::backdrop { background: rgba(10, 24, 19, .58); }
.esm-login-card { display: grid; gap: 16px; padding: 28px; }
.esm-login-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.esm-login-heading h2 { margin: 0; color: #15382f; font-size: 24px; line-height: 1.25; }
.esm-login-card p { margin: 0; line-height: 1.6; }
.esm-login-card label { color: #21312a; font-size: 16px; font-weight: 650; }
.esm-password-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.esm-password-row input {
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #9aa9a0;
  border-radius: 6px;
  color: #17251f;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.esm-password-row input:focus { border-color: #28654e; outline: 3px solid rgba(40, 101, 78, .2); }
.esm-password-toggle { min-width: 64px; min-height: 48px; padding: 8px; border: 1px solid #b9c5bd; border-radius: 6px; background: #f3f6f3; color: #18392e; cursor: pointer; font: inherit; }
.esm-remember { display: flex; align-items: center; gap: 10px; font-weight: 500 !important; }
.esm-remember input { width: 22px; height: 22px; }
.esm-form-message { min-height: 24px; color: #a12622; font-size: 15px; }
.esm-login-actions { display: flex; justify-content: flex-end; gap: 12px; }
.esm-button { min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 650; }
.esm-button:disabled { opacity: .5; cursor: not-allowed; }
.esm-button-primary { background: #15382f; color: #fff; }
.esm-button-primary:hover { background: #28614d; }
.esm-button-secondary { border-color: #aebcb3; background: #fff; color: #244339; }
.esm-icon-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #344e43; cursor: pointer; }
.esm-icon-button:hover { background: #edf2ee; }
.esm-icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.esm-button:focus-visible,.esm-icon-button:focus-visible,.esm-password-toggle:focus-visible { outline: 3px solid #348569; outline-offset: 2px; }

@media (max-width: 520px) {
  .esm-login-dialog { width: calc(100% - 20px); }
  .esm-login-card { padding: 22px 18px; }
  .esm-login-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .esm-login-dialog { scroll-behavior: auto; }
}

