/* Shared PlanetHSEQ authentication shell; artwork and tokens remain authoritative. */
.phq-auth,
.phq-auth * {
  box-sizing: border-box;
}
html:has(.phq-auth) {
  color-scheme: light;
}
body:has(.phq-auth) {
  margin: 0;
  color: var(--brand-planet-navy);
  background: var(--brand-cloud-white);
  font-family: var(--font-brand) !important;
}
.phq-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
}
.phq-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--brand-planet-navy);
  color: var(--brand-cloud-white);
  isolation: isolate;
  overflow: hidden;
}
.phq-story::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('../brand/planethseq-networked-globe-hero-hd-20260901.png') center / cover
    no-repeat;
  opacity: 0.52;
}
.phq-story::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--brand-planet-navy),
    transparent 55%,
    var(--brand-planet-navy)
  );
}
.phq-logo {
  display: block;
  width: min(100%, 170px);
  height: auto;
}
.phq-story .phq-logo {
  width: min(100%, 340px);
}
.phq-story-copy {
  max-width: 510px;
}
.phq-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.phq-story h2 {
  margin: 1.25rem 0;
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.phq-story p {
  line-height: 1.7;
}
.phq-story-foot {
  font-size: 0.875rem;
}
.phq-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 4.5rem);
}
.phq-mobile-brand {
  display: none;
}
.phq-form {
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 2rem 0;
}
.phq-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.phq-card h1 {
  color: var(--brand-planet-navy);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  letter-spacing: -0.025em;
}
.phq-card p {
  line-height: 1.6;
}
.phq-card .ztdl-p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.phq-card input:not([type='checkbox']):not([type='radio']) {
  min-height: 48px;
  font-size: 1rem;
  border-radius: var(--radius-control);
}
.phq-card button {
  min-height: 44px;
  border-radius: var(--radius-control);
  font-weight: 600;
}
.phq-card button:disabled {
  cursor: not-allowed;
}
.phq-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 100%;
  max-width: 460px;
  margin: 1.25rem auto 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.phq-footer a,
.phq-secondary {
  color: var(--brand-blue-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.phq-footer a:hover,
.phq-secondary:hover {
  color: var(--brand-planet-navy);
}
.phq-language {
  margin-inline-start: auto;
}
.phq-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-control);
  color: var(--brand-cloud-white);
  background: var(--brand-planet-blue);
  text-decoration: none;
  font-weight: 600;
}
.phq-primary:hover {
  background: var(--brand-blue-strong);
}
.phq-actions {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.phq-secondary {
  justify-self: center;
  padding: 0.5rem;
}
.phq-auth a:focus-visible,
.phq-auth button:focus-visible,
.phq-auth input:focus-visible,
.phq-auth select:focus-visible {
  outline: 3px solid var(--brand-planet-navy) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--brand-orbit-cyan);
}
.phq-story a:focus-visible {
  outline-color: var(--brand-cloud-white) !important;
}
.phq-status {
  padding: 0.875rem 1rem;
  border-inline-start: 3px solid var(--brand-orbit-cyan);
  background: var(--brand-mist-grey);
  color: var(--brand-graphite);
}
.phq-card img {
  max-width: 100%;
}
.phq-card .skeleton {
  animation: none;
  background: var(--brand-mist-grey);
}
/* The app entry shares provider/logout branding without changing session-state behaviour. */
.phq-app-entry .workspace-load-state {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.phq-app-entry .workspace-load-state h1 {
  margin: 1rem 0;
  font-size: 2rem;
  line-height: 1.25;
}
.phq-app-entry .workspace-load-state .eyebrow {
  color: var(--brand-cyan-text);
}
.phq-app-entry .workspace-load-state > p:not(.eyebrow) {
  color: var(--text-secondary);
}
@media (max-width: 800px) {
  .phq-auth {
    display: block;
  }
  .phq-story {
    display: none;
  }
  .phq-content {
    min-height: 100svh;
    padding: 1.5rem;
  }
  .phq-mobile-brand {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0.5rem 0 1.5rem;
  }
  .phq-mobile-brand .phq-logo {
    width: 220px;
  }
  .phq-form {
    padding: 1.5rem 0;
  }
  .phq-card h1 {
    font-size: 1.75rem;
  }
  .phq-footer {
    padding-bottom: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phq-auth,
  .phq-auth *,
  .phq-auth *::before,
  .phq-auth *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
