body.private-layout,
body.auth-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(127, 184, 169, 0.14), transparent 22%),
    linear-gradient(180deg, #f7f4ec 0%, #efe9dc 100%);
}

.private-main {
  display: grid;
  gap: 22px;
}

.sidebar-card {
  padding: 24px 22px;
  color: #eff1eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--gx-primary-ink);
  border-color: rgba(127, 184, 169, 0.16);
  box-shadow: var(--gx-shadow-lg);
}

.admin-experience .sidebar-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--gx-graphite);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-card .eyebrow,
.sidebar-card strong,
.sidebar-card .message,
.sidebar-card a {
  color: #eff1eb;
}

.sidebar-card .message {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-card .message.error {
  background: rgba(192, 90, 77, 0.12);
  color: #ffd8d2;
}

.sidebar-link {
  border-radius: 999px;
  color: rgba(239, 241, 235, 0.74);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.private-main .panel {
  padding: 28px;
  box-shadow: var(--gx-shadow-md);
}

.stats-grid .metric-card,
.feature-grid .metric-card,
.pricing-grid .pricing-card,
.item-list .list-item,
.split-grid .panel {
  background: rgba(255, 255, 255, 0.92);
}

.chart-track {
  background: rgba(31, 92, 77, 0.08);
  border-radius: 999px;
}

.chart-fill {
  background: linear-gradient(90deg, var(--gx-primary), var(--gx-primary-soft));
  border-radius: 999px;
}

.auth-page .content-wrap {
  width: min(calc(100% - 48px), 1240px);
  padding-top: 18px;
  padding-bottom: 32px;
}

.auth-topbar {
  width: min(calc(100% - 48px), 1240px);
  padding-top: 28px;
  padding-bottom: 12px;
}

.auth-topbar .brand img {
  width: 34px;
  height: 34px;
}

.auth-topbar .public-brand-text {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.auth-top-actions a {
  color: #6b685f;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 76vh;
  overflow: hidden;
  border: 1px solid rgba(226, 222, 212, 0.92);
  border-radius: 28px;
  background: rgba(255, 251, 245, 0.82);
  box-shadow: var(--gx-shadow-lg);
}

.auth-stage-brand {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 52px 48px 40px;
  background: linear-gradient(180deg, #0f2a23 0%, #0d241e 100%);
  color: #f1efe7;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Spectral", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.auth-brand-lockup img {
  width: 40px;
  height: 40px;
}

.auth-stage-copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.auth-stage-copy h1 {
  margin: 0;
  max-width: 10ch;
  color: #f8f4ea;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.auth-stage-copy h1 span {
  color: #89b6a7;
  font-style: italic;
}

.auth-stage-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-stage-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(239, 241, 235, 0.9);
  line-height: 1.6;
}

.auth-stage-list li::before {
  content: "->";
  position: absolute;
  left: 0;
  color: #89b6a7;
}

.auth-stage-footnote {
  margin: 0;
  color: rgba(170, 184, 177, 0.9);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-stage-form {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 56px 56px 52px;
  background: rgba(255, 252, 246, 0.98);
}

.auth-form-head {
  display: grid;
  gap: 10px;
}

.auth-form-head .eyebrow {
  margin: 0;
}

.auth-form-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.auth-form-head p {
  margin: 0;
  color: #5d574d;
}

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

.auth-form-grid label {
  gap: 10px;
  color: #696459;
}

.auth-form-grid input {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-password-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #696459;
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gx-primary);
  font-size: 0.94rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.auth-submit-button {
  min-height: 56px;
  background: var(--gx-primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #928a7c;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 222, 212, 0.95);
}

.auth-sso-button {
  min-height: 54px;
  border-radius: 999px;
}

.auth-stage-form .message {
  margin: 0;
}

.auth-contract-link {
  margin: 0;
  color: #5d574d;
  text-align: center;
}

.auth-contract-link a {
  color: var(--gx-primary);
  font-weight: 600;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.modal-shell.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 18, 0.44);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  margin: 80px auto;
  padding: 28px;
  z-index: 1;
  box-shadow: var(--gx-shadow-lg);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--gx-muted);
}

.modal-copy {
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 980px) {
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-stage-brand,
  .auth-stage-form {
    padding: 32px 26px;
  }

  .auth-stage-copy h1 {
    max-width: none;
  }
}
