/**
 * Rexa Data Bundle — professional public & auth polish.
 */
:root {
  --rexa-primary: #1e40af;
  --rexa-primary-dark: #1e3a8a;
  --rexa-primary-soft: #dbeafe;
  --rexa-accent: #0891b2;
  --rexa-surface: #ffffff;
  --rexa-muted: #64748b;
  --rexa-border: #e2e8f0;
  --rexa-bg: #f1f5f9;
  --rexa-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --rexa-radius: 1rem;
}

/* Auth split layout */
body.ghbm-auth-page {
  background: var(--rexa-bg);
}

.ghbm-auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .ghbm-auth-layout {
    grid-template-columns: minmax(320px, 42%) 1fr;
  }
}

.ghbm-auth-aside {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.35), transparent 40%),
    linear-gradient(145deg, #0f172a 0%, #1e3a8a 52%, #1e40af 100%);
}

@media (min-width: 992px) {
  .ghbm-auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.ghbm-auth-aside::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ghbm-auth-aside__brand {
  position: relative;
  z-index: 1;
}

.ghbm-auth-aside__logo {
  max-height: 3.25rem;
  width: auto;
  margin-bottom: 1.25rem;
}

.ghbm-auth-aside__title {
  font-family: 'Public Sans', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.ghbm-auth-aside__tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 28rem;
}

.ghbm-auth-aside__features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ghbm-auth-aside__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.ghbm-auth-aside__features i {
  font-size: 1.25rem;
  color: #7dd3fc;
  margin-top: 0.1rem;
}

.ghbm-auth-main,
#ghbm-auth-root.ghbm-auth-root {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 1rem;
}

.ghbm-auth-root--simple {
  width: 100%;
  background: var(--rexa-bg);
}

.ghbm-auth-root .pdcl-sneat-root {
  width: 100%;
  max-width: 440px;
}

.ghbm-auth-root .pdcl-sneat-root .card {
  border: 1px solid var(--rexa-border);
  border-radius: var(--rexa-radius);
  box-shadow: var(--rexa-shadow);
  background: #fff;
}

.ghbm-auth-missing {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: var(--rexa-radius);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.ghbm-auth-root .pdcl-auth-panel {
  display: none;
}

.ghbm-auth-root .pdcl-auth-panel.active {
  display: block;
}

.ghbm-auth-root .authentication-inner .card {
  border: 1px solid var(--rexa-border);
  border-radius: var(--rexa-radius);
  box-shadow: var(--rexa-shadow);
}

.ghbm-auth-root .pdcl-auth-tabs {
  background: var(--rexa-bg);
  border-radius: 999px;
  padding: 0.25rem;
}

.ghbm-auth-root .pdcl-auth-tab.active {
  background: var(--rexa-surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Public / thank-you pages */
body:not(.ghbm-auth-page):not(.ghbm-app-page):not(.pds-retail-page) {
  background: var(--rexa-bg);
}

.ghbm-public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ghbm-public-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rexa-border);
  padding: 0.85rem 1.25rem;
}

.ghbm-public-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ghbm-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
}

.ghbm-public-brand img {
  max-height: 2.5rem;
  width: auto;
}

.ghbm-public-nav a {
  color: var(--rexa-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.ghbm-public-nav a:hover {
  color: var(--rexa-primary-dark);
}

.ghbm-public-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.ghbm-public-footer {
  border-top: 1px solid var(--rexa-border);
  background: #fff;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--rexa-muted);
}

.ghbm-site-main {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #334155;
  line-height: 1.6;
}

.ghbm-site-main a {
  color: var(--rexa-primary);
}

.ghbm-site-main a:hover {
  color: var(--rexa-primary-dark);
}

.ghbm-site-main .dex-thank-you-container {
  border-radius: var(--rexa-radius);
  box-shadow: var(--rexa-shadow);
  border: 1px solid var(--rexa-border);
}

/* App blank shell */
.ghbm-app-root {
  min-height: 100vh;
  background: var(--rexa-bg);
}
