/* P05 — login / auth pages (Navbar-Echo); content scrollport = auth-main */
.erpel-auth-body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--erpel-surface-page);
}

.erpel-auth-chrome {
  flex-shrink: 0;
}

.erpel-auth-brandbar {
  height: 15px;
  background-color: var(--erpel-brand);
}

.erpel-auth-top {
  /* Logo centered; vertical position and size echo .erpel-app-tabs-logo on tab pages
   * (same top padding, 4rem, hangs 0.7rem below the strip). */
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 3.25rem;
  padding: 0.45rem 1.25rem 0;
  background-color: var(--erpel-surface-page);
  border-bottom: 1px solid var(--erpel-ink-a10);
}

.erpel-auth-chrome.is-nonprod .erpel-auth-top {
  background-color: var(--erpel-nonprod);
}

.erpel-auth-brand {
  display: block;
  margin-bottom: -0.7rem;
  line-height: 0;
}

.erpel-auth-brand img {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  box-shadow: 0 1px 2px var(--erpel-ink-a14), 0 3px 8px var(--erpel-ink-a12);
}

.erpel-auth-main {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Extra top inset: the logo hangs into the content area. */
  padding: 3.5rem 1.25rem 2rem;
  background-color: var(--erpel-surface);
}

.erpel-login-panel {
  width: min(22rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.erpel-login-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--erpel-text);
}

.erpel-login-lead {
  margin: 0;
  color: var(--erpel-gray-600);
  font-size: 0.95rem;
  line-height: 1.45;
}

.erpel-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--erpel-danger-tint-auth);
  color: var(--erpel-danger-text-auth);
  font-size: 0.9rem;
  line-height: 1.35;
  border-left: 3px solid var(--erpel-brand);
}

.erpel-login-alert .icon {
  flex-shrink: 0;
  color: var(--erpel-brand);
}

.erpel-login-cta {
  width: 100%;
  border-radius: var(--erpel-radius);
  justify-content: center;
}

.erpel-auth-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--erpel-gray-600);
  background-color: var(--erpel-surface-muted);
  border-top: 1px solid var(--erpel-ink-a8);
}

.erpel-auth-footer p {
  margin: 0;
}

.erpel-auth-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.erpel-footer-user {
  color: inherit;
}

.erpel-logout-form {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0 0 0 0.35rem;
  padding: 0;
}

.erpel-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--erpel-radius);
  background: none;
  color: inherit;
  line-height: 1;
  cursor: pointer;
}

.erpel-logout-link:hover,
.erpel-logout-link:focus-visible {
  color: var(--erpel-text);
}

.erpel-logout-link .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.05rem;
}

.erpel-logout-link .mdi {
  display: block;
  line-height: 1;
  /* Glyph sits optically high in the MDI box */
  transform: translateY(0.08em);
}


/* Restricted public pages (parts/public/base.html): more room below the hanging logo. */
.erpel-public-body main.erpel-main > .container.erpel-page {
  padding-top: 3rem;
}
