.auth-landing[hidden] {
  display: none !important;
}

.auth-landing {
  position: fixed;
  inset: var(--pb-space-0);
  z-index: var(--pb-z-max);
  overflow: hidden;
  background: var(--pb-color-bg-app);
  color: var(--pb-color-text-primary);
  opacity: var(--pb-opacity-visible);
  transition: background-color var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-standard);
}

.auth-landing-shell {
  position: absolute;
  inset: var(--pb-auth-landing-inset);
  overflow: hidden;
  border: var(--pb-border-width-sm) solid var(--pb-color-border-shell);
  border-radius: var(--pb-auth-landing-shell-radius);
  background: var(--pb-auth-landing-workspace-bg);
  box-shadow: var(--pb-shadow-sm);
  transition:
    background-color var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit),
    border-color var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit),
    box-shadow var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit);
}

.auth-landing-brand,
.auth-landing-workspace {
  position: absolute;
  inset-block: var(--pb-space-0);
}

.auth-landing-brand {
  inset-inline-start: var(--pb-space-0);
  width: var(--pb-auth-landing-brand-width);
  overflow: hidden;
  background: var(--pb-auth-landing-brand-bg);
  color: var(--pb-auth-landing-brand-text);
  transition: width var(--pb-auth-landing-transition-duration) var(--pb-auth-landing-transition-ease);
}

.auth-landing-brand.has-active-ad .auth-landing-brand-content {
  visibility: hidden;
  pointer-events: none;
}

.auth-landing-adspace-canvas {
  position: absolute;
  inset: var(--pb-space-0);
  z-index: var(--pb-z-base);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--pb-auth-landing-brand-bg);
  background-position: center;
  background-repeat: no-repeat;
}

.auth-landing-adspace-canvas[hidden] {
  display: none;
}

.auth-landing-brand.has-active-ad .auth-profile-brand-back {
  z-index: var(--pb-z-raised);
}

.auth-profile-brand-back {
  display: none;
}

.auth-landing[data-ai-view="profile"] .auth-profile-brand-back {
  position: absolute;
  inset-block-start: var(--pb-auth-profile-brand-back-block-position);
  inset-inline-end: var(--pb-auth-profile-brand-back-inline-offset);
  display: inline-flex;
  width: var(--pb-auth-profile-brand-back-size);
  height: var(--pb-auth-profile-brand-back-size);
  align-items: center;
  justify-content: center;
  padding: var(--pb-space-0);
  border: var(--pb-space-0);
  background: transparent;
  color: var(--pb-auth-landing-brand-text);
  cursor: pointer;
  transform: translateY(var(--pb-auth-profile-brand-back-center-offset));
  transition:
    color var(--pb-motion-duration-fast) var(--pb-motion-ease-standard),
    transform var(--pb-motion-duration-fast) var(--pb-motion-ease-standard);
}

.auth-landing[data-ai-view="profile"] .auth-profile-brand-back .ui-icon {
  width: var(--pb-auth-profile-brand-back-icon-size);
  height: var(--pb-auth-profile-brand-back-icon-size);
}

.auth-landing[data-ai-view="profile"] .auth-profile-brand-back:hover {
  color: var(--pb-color-mint-300);
  transform: translate(
    calc(var(--pb-space-1) * -1),
    var(--pb-auth-profile-brand-back-center-offset)
  );
}

.auth-landing[data-ai-view="profile"] .auth-profile-brand-back:focus-visible {
  outline: var(--pb-border-width-md) solid var(--pb-auth-landing-brand-text);
  outline-offset: var(--pb-space-1);
}

.auth-landing-brand-content {
  position: relative;
  display: flex;
  height: 100%;
  min-width: min(var(--pb-auth-landing-overview-max-width), var(--pb-auth-landing-brand-width));
  flex-direction: column;
  padding: var(--pb-auth-landing-brand-padding-y) var(--pb-auth-landing-brand-padding-x);
  opacity: var(--pb-opacity-visible);
  transition:
    opacity var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit),
    transform var(--pb-auth-landing-transition-duration) var(--pb-auth-landing-transition-ease);
}

.auth-landing-brand-header {
  display: flex;
  align-items: center;
  gap: var(--pb-auth-landing-brand-gap);
}

.auth-landing-logo {
  width: var(--pb-auth-landing-logo-size);
  height: var(--pb-auth-landing-logo-size);
  flex: 0 0 var(--pb-auth-landing-logo-size);
  border-radius: var(--pb-auth-landing-logo-radius);
  background: var(--pb-auth-landing-logo-bg);
  box-shadow: var(--pb-auth-landing-logo-shadow);
}

.auth-landing-brand-title,
.auth-landing-brand-subtitle,
.auth-landing-overview-title,
.auth-landing-card-title,
.auth-landing-status p {
  margin: var(--pb-space-0);
}

.auth-landing-brand-title {
  color: var(--pb-auth-landing-brand-text);
  font-size: var(--pb-auth-landing-brand-title-size);
  font-weight: var(--pb-font-weight-bold);
  line-height: var(--pb-line-height-tight);
}

.auth-landing-brand-subtitle {
  margin-top: var(--pb-space-2);
  color: var(--pb-auth-landing-brand-muted);
  font-size: var(--pb-auth-landing-brand-subtitle-size);
  line-height: var(--pb-line-height-normal);
}

.auth-landing-overview {
  width: min(100%, var(--pb-auth-landing-overview-max-width));
  margin-top: var(--pb-auth-landing-overview-offset);
}

.auth-landing-overview-title {
  margin-bottom: var(--pb-space-4);
  color: var(--pb-auth-landing-brand-text);
  font-size: var(--pb-font-size-lg);
  font-weight: var(--pb-font-weight-semibold);
}

.auth-landing-overview-grid {
  display: grid;
  grid-template-columns: var(--pb-auth-landing-card-grid-columns);
  gap: var(--pb-auth-landing-overview-gap);
}

.auth-landing-overview-card {
  position: relative;
  display: flex;
  min-width: var(--pb-space-0);
  aspect-ratio: var(--pb-auth-landing-card-aspect);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: var(--pb-auth-landing-card-padding);
  border: var(--pb-border-width-sm) solid var(--pb-auth-landing-card-border);
  border-radius: var(--pb-auth-landing-card-radius);
  background: var(--pb-auth-landing-card-bg);
  box-shadow: var(--pb-auth-landing-card-shadow);
}

.auth-landing-card-title {
  color: var(--pb-auth-landing-brand-text);
  font-size: var(--pb-auth-landing-card-title-size);
  font-weight: var(--pb-font-weight-medium);
}

.auth-landing-health-track {
  height: var(--pb-space-3);
  overflow: hidden;
  border-radius: var(--pb-radius-pill);
  background: var(--pb-auth-landing-chart-track);
}

.auth-landing-health-fill {
  display: block;
  width: var(--pb-auth-landing-health-fill-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pb-color-mint-400), var(--pb-color-brand-300));
}

.auth-landing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pb-color-brand-200);
  font-size: var(--pb-font-size-xs);
}

.auth-landing-card-meta strong {
  color: var(--pb-auth-landing-chart-line);
  font-size: var(--pb-auth-landing-card-value-size);
}

.auth-landing-alert-list {
  display: grid;
  gap: var(--pb-space-3);
}

.auth-landing-alert-row {
  display: grid;
  grid-template-columns: var(--pb-space-3) minmax(0, 1fr) minmax(var(--pb-space-5), 28%);
  align-items: center;
  gap: var(--pb-space-2);
}

.auth-landing-alert-dot {
  width: var(--pb-space-3);
  height: var(--pb-space-3);
  border-radius: var(--pb-auth-landing-circle-radius);
  background: var(--pb-auth-landing-chart-muted);
}

.auth-landing-alert-line {
  height: var(--pb-space-2);
  border-radius: var(--pb-radius-pill);
  background: var(--pb-auth-landing-chart-muted);
}

.auth-landing-trend {
  width: 100%;
  height: 72%;
  overflow: visible;
}

.auth-landing-trend-grid {
  stroke: var(--pb-auth-landing-chart-grid);
  stroke-width: var(--pb-border-width-sm);
  stroke-dasharray: var(--pb-space-1) var(--pb-space-1);
}

.auth-landing-trend-bars {
  fill: var(--pb-auth-landing-chart-fill);
}

.auth-landing-trend-line {
  fill: none;
  stroke: var(--pb-auth-landing-chart-line);
  stroke-width: var(--pb-border-width-md);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-landing-category-chart {
  display: grid;
  grid-template-columns: minmax(var(--pb-space-12), 0.65fr) minmax(var(--pb-space-12), 1fr);
  align-items: center;
  gap: var(--pb-space-4);
  min-height: var(--pb-space-12);
}

.auth-landing-donut {
  aspect-ratio: 1;
  border-radius: var(--pb-auth-landing-circle-radius);
  background: conic-gradient(
    var(--pb-color-brand-200) 0 25%,
    var(--pb-color-brand-400) 25% 58%,
    var(--pb-color-brand-700) 58% 100%
  );
  box-shadow: inset 0 0 0 var(--pb-space-4) var(--pb-auth-landing-donut-inner);
}

.auth-landing-category-lines {
  display: grid;
  gap: var(--pb-space-2);
}

.auth-landing-category-line {
  height: var(--pb-space-2);
  border-radius: var(--pb-radius-pill);
  background: var(--pb-auth-landing-chart-muted);
}

.auth-landing-category-line:nth-child(2) {
  width: var(--pb-auth-landing-category-line-medium-width);
}

.auth-landing-category-line:nth-child(3) {
  width: var(--pb-auth-landing-category-line-short-width);
}

.auth-landing-status {
  display: flex;
  align-items: center;
  gap: var(--pb-space-2);
  margin-top: auto;
  color: var(--pb-auth-landing-brand-text);
  font-size: var(--pb-font-size-sm);
}

.auth-landing-status-dot {
  width: var(--pb-auth-landing-status-dot-size);
  height: var(--pb-auth-landing-status-dot-size);
  border-radius: var(--pb-auth-landing-circle-radius);
  background: var(--pb-auth-landing-status-dot);
  box-shadow: var(--pb-auth-landing-status-dot-shadow);
}

.auth-landing-status[data-ai-state="checking"] .auth-landing-status-dot,
.auth-landing-status[data-ai-state="unavailable"] .auth-landing-status-dot {
  background: var(--pb-auth-landing-status-dot-muted);
  box-shadow: none;
}

.auth-landing-workspace {
  inset-inline: var(--pb-auth-landing-brand-width) var(--pb-space-0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: var(--pb-auth-landing-workspace-padding);
  background: var(--pb-auth-landing-workspace-bg);
  opacity: var(--pb-opacity-visible);
  transition: opacity var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit);
}

.auth-landing-frame {
  width: min(100%, var(--pb-auth-landing-frame-width));
  max-height: var(--pb-auth-landing-frame-max-height);
  overflow: hidden;
  border: var(--pb-border-width-sm) solid var(--pb-auth-landing-frame-border);
  border-radius: var(--pb-auth-landing-frame-radius);
  background: var(--pb-auth-landing-frame-bg);
  box-shadow: var(--pb-auth-landing-frame-shadow);
  opacity: var(--pb-opacity-visible);
  transform: translateY(var(--pb-space-0));
  transition:
    opacity var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit),
    transform var(--pb-auth-landing-form-fade-duration) var(--pb-motion-ease-exit);
}

.auth-landing-frame-body {
  max-height: calc(var(--pb-auth-landing-frame-max-height) - var(--pb-size-control-lg) - (var(--pb-space-5) * 2));
  overflow: auto;
  padding: var(--pb-auth-landing-frame-body-padding);
  scrollbar-gutter: stable;
}

.auth-landing-intro {
  margin-bottom: var(--pb-space-8);
  text-align: center;
}

.auth-landing[data-ai-view="password-reset"] .auth-landing-intro {
  display: none;
}

.auth-landing[data-ai-view="profile"] .auth-landing-intro,
.auth-landing[data-ai-view="profile"] .auth-landing-frame-footer {
  display: none;
}

.auth-landing[data-ai-view="profile"] .auth-landing-frame {
  width: min(100%, var(--pb-auth-profile-frame-width));
  height: calc(100vh - (var(--pb-auth-profile-workspace-padding) * 2));
  max-height: calc(100vh - (var(--pb-auth-profile-workspace-padding) * 2));
}

.auth-landing[data-ai-view="profile"] .auth-landing-frame-body {
  height: 100%;
  max-height: calc(100vh - (var(--pb-auth-profile-workspace-padding) * 2));
  overflow: hidden;
  padding: var(--pb-auth-profile-frame-body-padding);
  scrollbar-gutter: auto;
}

.auth-landing[data-ai-view="profile"] .auth-landing-form-host {
  height: 100%;
  min-height: var(--pb-space-0);
  overflow: hidden;
}

.auth-landing[data-ai-view="profile"] .auth-landing-workspace {
  overflow: hidden;
  padding: var(--pb-auth-profile-workspace-padding);
}

.auth-landing-title {
  margin: var(--pb-space-0);
  color: var(--pb-auth-landing-frame-text-primary);
  font-size: var(--pb-auth-landing-heading-size);
  font-weight: var(--pb-font-weight-bold);
  line-height: var(--pb-line-height-tight);
}

.auth-landing-description {
  margin: var(--pb-space-3) var(--pb-space-0) var(--pb-space-0);
  color: var(--pb-auth-landing-frame-text-secondary);
  font-size: var(--pb-font-size-md);
  line-height: var(--pb-line-height-normal);
}

.auth-landing-form-host > .auth-section {
  margin: var(--pb-space-0);
  padding: var(--pb-space-0);
  border: 0;
  border-radius: var(--pb-radius-none);
  background: transparent;
}

.auth-landing-form-host .auth-form-group {
  margin-bottom: var(--pb-space-5);
}

.auth-landing-form-host .auth-form-group label {
  margin-bottom: var(--pb-space-2);
  color: var(--pb-auth-landing-frame-text-primary);
  font-size: var(--pb-font-size-sm);
  font-weight: var(--pb-font-weight-semibold);
}

.auth-landing-form-host .auth-input {
  min-height: var(--pb-auth-landing-field-height);
  border-width: var(--pb-border-width-sm);
  border-color: var(--pb-auth-landing-frame-control-border);
  border-radius: var(--pb-radius-md);
  background: var(--pb-auth-landing-frame-surface);
  color: var(--pb-auth-landing-frame-text-primary);
  font-size: var(--pb-font-size-md);
}

.auth-landing-form-host .auth-input::placeholder {
  color: var(--pb-auth-landing-frame-text-muted);
}

.auth-landing-form-host .auth-input-icon,
.auth-landing-form-host .auth-eye-btn {
  color: var(--pb-auth-landing-frame-text-secondary);
}

.auth-landing-form-host .auth-input:focus,
.auth-landing-form-host .auth-input:focus-visible {
  border-color: var(--pb-color-brand-600);
  outline: var(--pb-border-width-md) solid var(--pb-auth-landing-focus-ring);
  outline-offset: var(--pb-space-0);
  box-shadow: none;
}

.auth-landing-form-host .auth-eye-btn:focus-visible,
.auth-landing-form-host .auth-btn:focus-visible {
  outline: var(--pb-border-width-md) solid var(--pb-auth-landing-focus-ring);
  outline-offset: var(--pb-space-1);
}

.auth-landing-form-host .auth-btn {
  min-height: var(--pb-auth-landing-action-height);
  margin-top: var(--pb-space-1);
  border-radius: var(--pb-radius-md);
  background: linear-gradient(90deg, var(--pb-color-brand-700), var(--pb-color-brand-600));
  color: var(--pb-color-text-inverse);
  font-size: var(--pb-font-size-lg);
  font-weight: var(--pb-font-weight-bold);
  transition:
    background var(--pb-motion-duration-fast) var(--pb-motion-ease-standard),
    transform var(--pb-motion-duration-fast) var(--pb-motion-ease-standard);
}

.auth-landing-form-host .auth-btn:hover {
  background: linear-gradient(90deg, var(--pb-color-brand-800), var(--pb-color-brand-700));
  filter: none;
  transform: translateY(var(--pb-auth-user-status-hover-lift));
}

.auth-landing-form-host .auth-btn:active {
  transform: scale(var(--pb-motion-scale-press));
}

.auth-landing-form-host .auth-btn-secondary {
  border: var(--pb-border-width-sm) solid var(--pb-auth-landing-frame-control-border);
  background: var(--pb-auth-landing-frame-surface);
  color: var(--pb-auth-landing-frame-text-primary);
}

.auth-landing-form-host .auth-link-row {
  margin-top: var(--pb-space-4);
  color: var(--pb-auth-landing-frame-text-secondary);
  font-size: var(--pb-font-size-sm);
  line-height: var(--pb-line-height-normal);
}

.auth-landing-form-host #authRequiredPasswordChangeTitle {
  margin: var(--pb-space-0);
  color: var(--pb-auth-landing-frame-text-primary);
  font-size: var(--pb-auth-landing-heading-size);
  font-weight: var(--pb-font-weight-bold);
  line-height: var(--pb-line-height-tight);
  text-align: center;
}

.auth-landing-form-host #authRequiredPasswordChangeDescription {
  margin: var(--pb-space-3) var(--pb-space-0) var(--pb-space-6);
  color: var(--pb-auth-landing-frame-text-secondary);
  font-size: var(--pb-font-size-sm);
  line-height: var(--pb-line-height-relaxed);
  text-align: center;
}

.auth-landing-form-host #authRequiredPasswordChangeStatus:not([hidden]) {
  margin-bottom: var(--pb-space-4);
  padding: var(--pb-space-3);
  border: var(--pb-border-width-sm) solid color-mix(in srgb, var(--pb-color-status-danger) 32%, transparent);
  border-radius: var(--pb-radius-md);
  background: color-mix(in srgb, var(--pb-auth-landing-frame-danger) 8%, var(--pb-auth-landing-frame-surface));
  color: var(--pb-auth-landing-frame-danger);
  font-size: var(--pb-font-size-sm);
  line-height: var(--pb-line-height-normal);
}

.auth-landing-frame-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pb-space-3);
  min-height: var(--pb-size-control-lg);
  padding: var(--pb-auth-landing-frame-footer-padding);
  border-top: var(--pb-border-width-sm) solid var(--pb-auth-landing-frame-border);
  background: var(--pb-auth-landing-frame-footer-bg);
  color: var(--pb-auth-landing-frame-text-secondary);
  font-size: var(--pb-font-size-sm);
}

.auth-landing-frame-footer .ui-icon {
  width: var(--pb-size-icon-md);
  height: var(--pb-size-icon-md);
  color: var(--pb-color-brand-600);
}

.auth-landing-session-status {
  min-height: var(--pb-space-5);
  margin-top: var(--pb-space-4);
  color: var(--pb-auth-landing-frame-text-secondary);
  font-size: var(--pb-font-size-xs);
  line-height: var(--pb-line-height-normal);
  text-align: center;
}

.auth-landing-session-status:empty {
  display: none;
}

.auth-landing.is-exiting {
  pointer-events: none;
  background: transparent;
}

.auth-landing.is-exiting .auth-landing-shell {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.auth-landing.is-exiting .auth-landing-brand {
  width: var(--pb-auth-landing-brand-collapsed-width);
}

.auth-landing.is-exiting .auth-landing-brand-content {
  opacity: 0;
  transform: translateX(calc(var(--pb-space-8) * -1));
}

.auth-landing.is-exiting .auth-landing-workspace,
.auth-landing.is-exiting .auth-landing-frame {
  opacity: 0;
}

.auth-landing.is-exiting .auth-landing-frame {
  transform: translateY(calc(var(--pb-space-3) * -1));
}

body.auth-landing-active {
  overflow: hidden;
}

@media (max-width: 900px) {
  .auth-landing-brand {
    inset-block: var(--pb-space-0) auto;
    width: 100%;
    height: var(--pb-auth-landing-mobile-brand-height);
  }

  .auth-landing-brand-content {
    min-width: 100%;
    padding: var(--pb-space-5);
  }

  .auth-landing-logo {
    width: var(--pb-auth-landing-mobile-logo-size);
    height: var(--pb-auth-landing-mobile-logo-size);
    flex-basis: var(--pb-auth-landing-mobile-logo-size);
    border-radius: var(--pb-radius-lg);
  }

  .auth-landing-brand-title {
    font-size: var(--pb-font-size-xl);
  }

  .auth-landing-brand-subtitle {
    margin-top: var(--pb-space-1);
    font-size: var(--pb-font-size-sm);
  }

  .auth-landing-overview,
  .auth-landing-status {
    display: none;
  }

  .auth-landing-workspace {
    inset: var(--pb-auth-landing-mobile-brand-height) var(--pb-space-0) var(--pb-space-0);
  }

  .auth-landing[data-ai-view="profile"] .auth-landing-workspace {
    align-items: flex-start;
  }

  .auth-landing[data-ai-view="profile"] .auth-landing-frame,
  .auth-landing[data-ai-view="profile"] .auth-landing-frame-body {
    height: calc(100vh - var(--pb-auth-landing-mobile-brand-height) - (var(--pb-auth-profile-workspace-padding) * 2));
    max-height: calc(100vh - var(--pb-auth-landing-mobile-brand-height) - (var(--pb-auth-profile-workspace-padding) * 2));
  }

  .auth-landing.is-exiting .auth-landing-brand {
    inset-block-end: var(--pb-space-0);
    width: var(--pb-auth-landing-brand-collapsed-width);
    height: auto;
  }
}

@media (max-width: 640px) {
  .auth-landing-workspace {
    align-items: flex-start;
    padding: var(--pb-space-4);
  }

  .auth-landing-frame {
    margin-block: var(--pb-space-4);
  }

  .auth-landing-frame-body {
    padding: var(--pb-space-6) var(--pb-space-5);
  }

  .auth-landing[data-ai-view="profile"] .auth-landing-frame-body {
    padding: var(--pb-auth-profile-frame-body-padding);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-landing,
  .auth-landing-shell,
  .auth-landing-brand,
  .auth-landing-brand-content,
  .auth-landing-workspace,
  .auth-landing-frame,
  .auth-profile-brand-back,
  .auth-landing-form-host .auth-btn {
    transition-duration: var(--pb-motion-duration-reduced);
  }
}
