/* Harthwyn 26.01.73 — viewport-centered premium landing/auth gateway. */
body.harthwyn-managed-page-key-landing {
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 12%, rgba(209, 167, 67, .12), transparent 32%),
    linear-gradient(180deg, #fbf7ef 0%, #f8f1e7 100%);
}

body.harthwyn-managed-page-key-landing .site-header,
body.harthwyn-managed-page-key-landing header.site-header,
body.harthwyn-managed-page-key-landing .wp-site-blocks > header,
body.harthwyn-managed-page-key-landing .wp-block-template-part:has(header),
body.harthwyn-managed-page-key-landing .site-footer,
body.harthwyn-managed-page-key-landing footer.site-footer,
body.harthwyn-managed-page-key-landing .wp-site-blocks > footer,
body.harthwyn-managed-page-key-landing .wp-block-template-part:has(footer) {
  display:none;
}

body.harthwyn-managed-page-key-landing .entry-content,
body.harthwyn-managed-page-key-landing .entry-content > *,
body.harthwyn-managed-page-key-landing .wp-site-blocks,
body.harthwyn-managed-page-key-landing .site-content,
body.harthwyn-managed-page-key-landing .content-area,
body.harthwyn-managed-page-key-landing .site-main,
body.harthwyn-managed-page-key-landing main,
body.harthwyn-managed-page-key-landing .ast-container,
body.harthwyn-managed-page-key-landing .container,
body.harthwyn-managed-page-key-landing .wrap,
body.harthwyn-managed-page-key-landing .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.harthwyn-managed-page-key-landing .harthwyn-auth-gateway {
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
  margin: 0 calc(50% - 50vw) !important;
  padding: clamp(22px, 4vw, 64px) clamp(14px, 3vw, 40px) !important;
  display: grid;
  place-items: center;
  color: var(--hw-color-ink, #132033);
  box-sizing: border-box;
  overflow-x: clip;
}

body.admin-bar.harthwyn-managed-page-key-landing .harthwyn-auth-gateway {
  min-height: calc(100svh - 32px);
}

body.harthwyn-managed-page-key-landing .harthwyn-auth-gateway *,
body.harthwyn-managed-page-key-landing .harthwyn-auth-gateway *::before,
body.harthwyn-managed-page-key-landing .harthwyn-auth-gateway *::after {
  box-sizing: border-box;
}

.harthwyn-auth-gateway__shell {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  justify-content: center;
}

.harthwyn-auth-gateway__brand-panel,
.harthwyn-auth-gateway__auth-panel,
.harthwyn-auth-gateway__support-panel {
  border: 1px solid rgba(209, 167, 67, .30);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(19, 32, 51, .08);
}

.harthwyn-auth-gateway__brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(440px, 58svh, 560px);
  padding: clamp(28px, 4vw, 56px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(250, 244, 235, .94)),
    radial-gradient(circle at 28% 20%, rgba(37, 108, 158, .12), transparent 34%);
}

.harthwyn-auth-gateway__auth-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: clamp(440px, 58svh, 560px);
  padding: clamp(22px, 3vw, 36px);
}

.harthwyn-auth-gateway__brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(37, 108, 158, .10);
  border: 1px solid rgba(37, 108, 158, .20);
  color: #17476b;
  margin-bottom: 22px;
}

.harthwyn-auth-gateway__brand-icon,
.harthwyn-auth-gateway__trust-icon,
.harthwyn-auth-gateway__card-icon,
.harthwyn-auth-gateway__support-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #17476b;
}

.harthwyn-auth-gateway__brand-icon svg { width: 30px; height: 30px; }
.harthwyn-auth-gateway__trust-icon svg,
.harthwyn-auth-gateway__card-icon svg,
.harthwyn-auth-gateway__support-icon svg { width: 22px; height: 22px; }

.harthwyn-auth-gateway__eyebrow,
.harthwyn-auth-gateway__card-kicker {
  margin: 0 0 10px;
  color: #b78316;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.harthwyn-auth-gateway__title {
  margin: 0;
  max-width: 720px;
  color: #101b2e;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.harthwyn-auth-gateway__lead {
  margin: 22px 0 0;
  max-width: 620px;
  color: #5c6c80;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.72;
}

.harthwyn-auth-gateway__trust-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.harthwyn-auth-gateway__trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #405268;
  font-weight: 650;
  line-height: 1.55;
}

.harthwyn-auth-gateway__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.harthwyn-auth-gateway__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 108, 158, .20);
  background: #f8fbff;
  color: #173d61;
  font-weight: 800;
  text-decoration: none !important;
}

.harthwyn-auth-gateway__tab.is-active {
  background: #216a9d;
  color: #fff;
  border-color: #216a9d;
}

.harthwyn-auth-gateway__card {
  display: grid;
  gap: 18px;
  width: 100%;
  border: 1px solid rgba(209, 167, 67, .26);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 16px 40px rgba(19, 32, 51, .07);
}

.harthwyn-auth-gateway__card[hidden] {
  display:none;
}

.harthwyn-auth-gateway__card-header,
.harthwyn-auth-gateway__support-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.harthwyn-auth-gateway__card h2,
.harthwyn-auth-gateway__support-card h2 {
  margin: 0;
  color: #121f31;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.harthwyn-auth-gateway__card p,
.harthwyn-auth-gateway__support-card p {
  margin: 8px 0 0;
  color: #5c6c80;
  line-height: 1.65;
}

.harthwyn-auth-form--gateway {
  display: grid;
  gap: 14px;
}

.harthwyn-auth-form--gateway .harthwyn-field {
  display: grid;
  gap: 6px;
}

.harthwyn-auth-form--gateway .harthwyn-field label {
  color: #132033;
  font-size: .92rem;
  font-weight: 800;
}

.harthwyn-auth-form--gateway input[type="text"],
.harthwyn-auth-form--gateway input[type="password"],
.harthwyn-auth-form--gateway input[type="tel"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(37, 108, 158, .24);
  border-radius: 16px;
  background: #fff;
  color: #132033;
  padding: 12px 15px;
  box-shadow: inset 0 1px 0 rgba(19, 32, 51, .04);
}

.harthwyn-auth-checkbox {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #405268;
  font-weight: 650;
}

.harthwyn-auth-gateway__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.harthwyn-auth-gateway__actions .harthwyn-button,
.harthwyn-auth-gateway__actions button.harthwyn-button,
.harthwyn-auth-gateway__support-card .harthwyn-button {
  width: auto;
  min-width: 0;
  text-decoration: none !important;
  white-space: nowrap;
}

.harthwyn-auth-gateway__actions--signed-in .harthwyn-button {
  flex: 0 0 auto;
}

.harthwyn-auth-gateway__support-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.harthwyn-auth-gateway__support-card {
  align-items: center;
  min-width: 0;
}

.harthwyn-auth-gateway__support-card .harthwyn-button {
  margin-left: auto;
  flex: 0 0 auto;
}

.harthwyn-auth-gateway__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.harthwyn-auth-gateway__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(209, 167, 67, .28);
  border-radius: 999px;
  background: #fff;
  color: #17476b;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none !important;
}

.harthwyn-auth-notice--landing {
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0;
}

.harthwyn-auth-notice--landing p { margin: 0; }

@media (max-width: 920px) {
  body.harthwyn-managed-page-key-landing .harthwyn-auth-gateway {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: auto;
    padding: 24px 14px !important;
  }

  .harthwyn-auth-gateway__shell,
  .harthwyn-auth-gateway__support-panel {
    grid-template-columns: 1fr;
  }

  .harthwyn-auth-gateway__brand-panel,
  .harthwyn-auth-gateway__auth-panel {
    min-height: 0;
  }

  .harthwyn-auth-gateway__legal,
  .harthwyn-auth-gateway__support-card {
    justify-content: flex-start;
  }

  .harthwyn-auth-gateway__support-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .harthwyn-auth-gateway__support-card .harthwyn-button {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  

  .harthwyn-auth-gateway__brand-panel,
  .harthwyn-auth-gateway__auth-panel,
  .harthwyn-auth-gateway__support-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .harthwyn-auth-gateway__title {
    font-size: clamp(2.05rem, 13vw, 3rem);
  }

  .harthwyn-auth-gateway__actions,
  .harthwyn-auth-gateway__tabs,
  .harthwyn-auth-gateway__legal {
    align-items: stretch;
    flex-direction: column;
  }

  .harthwyn-auth-gateway__actions .harthwyn-button,
  .harthwyn-auth-gateway__actions button.harthwyn-button,
  .harthwyn-auth-gateway__tab,
  .harthwyn-auth-gateway__legal a {
    width: 100%;
    justify-content: center;
  }
}


/* 26.01.68 guard: landing gateway must be viewport-centered, not theme-container-centered. */
body.harthwyn-managed-page-key-landing .harthwyn-auth-gateway[data-harthwyn-auth-viewport-centered-260168="1"] {
  isolation: isolate;
}

/* Harthwyn 26.01.76: optional admin-provided landing banner inside the single current renderer */
.harthwyn-auth-gateway__custom-banner{width:100%;max-width:280px;border-radius:28px;overflow:hidden;border:1px solid rgba(191,161,91,.28);box-shadow:0 20px 50px rgba(15,23,42,.08);background:#fff;margin-bottom:1.5rem}.harthwyn-auth-gateway__custom-banner img{display:block;width:100%;height:auto;object-fit:cover}
