.auth-hero-page {
  min-height: 100vh;
  background-color: #eef2f7;
  background-image:
    linear-gradient(135deg, rgba(247, 249, 252, .94), rgba(241, 245, 250, .76) 52%, rgba(244, 247, 251, .88)),
    url("../images/auth-cell-culture-hero.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.auth-hero-page .site-header {
  background: rgba(255, 255, 255, .88);
  border-bottom-color: rgba(219, 225, 234, .88);
  box-shadow: 0 2px 18px rgba(11, 28, 48, .06);
}

.auth-hero-page .metric-card,
.auth-hero-page .signup-login-card {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 60px rgba(11, 28, 48, .13);
  backdrop-filter: blur(14px);
}

/* Keep the complete sign-in document visible at conventional desktop and
   tablet heights. Short viewports retain the normal document flow below. */
@media (min-width: 768px) and (min-height: 760px) {
  .auth-hero-page {
    height: 100dvh;
    overflow: hidden;
  }

  .auth-hero-page .auth-content {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100dvh;
    min-height: 0;
    padding: 76px 20px 14px;
    overflow: hidden;
  }

  .auth-hero-page .login-page-shell {
    align-content: center;
    min-height: 0;
    margin-top: 0 !important;
  }

  .auth-hero-page .app-footer {
    margin-top: 10px;
    padding-top: 10px;
  }
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-locale-switcher {
  position: relative;
  z-index: 80;
}

.auth-page .topbar > .auth-locale-switcher {
  position: absolute;
  right: 24px;
}

.auth-locale-trigger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #d5ddea;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 12px rgba(11, 28, 48, .06);
  cursor: pointer;
}

.auth-locale-trigger:hover,
.auth-locale-trigger:focus-visible {
  border-color: #9daabc;
  outline: 3px solid rgba(var(--ch-brand-ink-rgb), .12);
}

.auth-locale-trigger span {
  font-size: 1.15rem;
  line-height: 1;
}

.auth-locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 178px;
  padding: 5px;
  border: 1px solid #dce2eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 28, 48, .16);
}

.auth-locale-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #14243a;
  font: 600 .78rem/1.25 "Hanken Grotesk", sans-serif;
  text-align: left;
  cursor: pointer;
}

.auth-locale-menu button:hover,
.auth-locale-menu button:focus-visible,
.auth-locale-menu button[aria-checked="true"] {
  outline: 0;
  background: #f0f2f7;
}

.auth-locale-menu button[aria-checked="true"] {
  color: var(--ch-brand-navy);
  font-weight: 750;
}

@media (max-width: 560px) {
  .auth-page .topbar > .auth-locale-switcher { right: 15px; }
  .auth-locale-trigger { width: 36px; height: 36px; }
}

@media (max-width: 560px) {
  .auth-hero-page {
    background-image:
      linear-gradient(rgba(247, 249, 252, .9), rgba(241, 245, 250, .82)),
      url("../images/auth-cell-culture-hero.jpg");
    background-position: 60% center;
    background-attachment: scroll;
  }
}
