body.cm-auth-redesign {
  --auth-green: #0b695e;
  --auth-green-dark: #064c44;
  --auth-canvas: #f3f5f0;
  --auth-rule: #d9ddd5;
  --auth-ink: #111510;
  --auth-surface: #fff;
  --auth-surface-muted: #f5f8f4;
  --auth-field-border: #cfd5cd;
  --auth-label: #353b35;
  --auth-copy-muted: #6d746c;
  --auth-copy-subtle: #7b827a;
  --auth-icon: #566057;
  background: var(--auth-canvas);
  color: var(--auth-ink);
  font-family: "DM Sans", Inter, sans-serif;
}

[data-theme="dark"] body.cm-auth-redesign {
  --auth-green: #69cfb9;
  --auth-green-dark: #82ddc9;
  --auth-canvas: #0b100d;
  --auth-rule: #2a382f;
  --auth-ink: #edf4ef;
  --auth-surface: #121914;
  --auth-surface-muted: #18221b;
  --auth-field-border: #35443a;
  --auth-label: #cbd4cd;
  --auth-copy-muted: #9eaaa1;
  --auth-copy-subtle: #98a39a;
  --auth-icon: #bdc8bf;
  color-scheme: dark;
}

body.cm-auth-redesign .navbar {
  background: var(--auth-surface);
}

body.cm-auth-redesign .auth-popup-container {
  background: var(--auth-canvas);
}

body.cm-auth-redesign .auth-popup-shell {
  grid-template-columns: minmax(0, 1fr) minmax(500px, 38vw);
  background: var(--auth-canvas);
}

body.cm-auth-redesign .auth-popup-story {
  padding: clamp(42px, 5vw, 78px);
  color: #eef5f0;
  background-color: #0d1712;
  background-image:
    linear-gradient(rgba(129, 176, 149, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 176, 149, .1) 1px, transparent 1px),
    radial-gradient(circle at 86% 12%, rgba(18, 105, 94, .28), transparent 34%);
  background-size: 82px 82px, 82px 82px, auto;
}

body.cm-auth-redesign .auth-popup-story::after {
  background: linear-gradient(120deg, rgba(13, 23, 18, .08), rgba(13, 23, 18, .58));
}

body.cm-auth-redesign .auth-popup-kicker,
body.cm-auth-redesign .admin-auth-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #72d1bf;
  font: 800 10px/1.2 Manrope, "DM Sans", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.cm-auth-redesign .auth-popup-kicker::before,
body.cm-auth-redesign .admin-auth-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

body.cm-auth-redesign .auth-popup-story h2,
body.cm-auth-redesign .admin-auth-story h2 {
  max-width: 720px;
  color: #f7faf7;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

body.cm-auth-redesign .auth-popup-story p:not(.auth-popup-kicker),
body.cm-auth-redesign .admin-auth-story p {
  max-width: 590px;
  color: rgba(231, 241, 234, .7);
  font-size: 16px;
  line-height: 1.65;
}

body.cm-auth-redesign .auth-popup-preview {
  width: min(520px, 100%);
  padding: 0;
  border-color: rgba(151, 190, 166, .22);
  border-radius: 14px;
  background: rgba(7, 16, 11, .64);
  box-shadow: 18px 18px 0 rgba(133, 176, 255, .38);
  overflow: hidden;
  backdrop-filter: none;
}

body.cm-auth-redesign .auth-popup-preview-head {
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid rgba(151, 190, 166, .18);
  font: 700 10px/1.2 Manrope, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.cm-auth-redesign .auth-popup-chart {
  height: 112px;
  margin: 0;
  padding: 22px 18px 0;
  border-radius: 0;
  background: transparent;
}

body.cm-auth-redesign .auth-popup-chart i,
body.cm-auth-redesign .auth-popup-chart i:nth-child(n) {
  border-radius: 0;
  background: linear-gradient(180deg, #4bb292, #163e2f);
}

body.cm-auth-redesign .auth-popup-row {
  margin: 0 16px;
  padding: 12px 0;
  font-size: 12px;
}

body.cm-auth-redesign .auth-popup-row.up b {
  color: #62d8a1;
}

body.cm-auth-redesign .auth-popup-trust {
  gap: 0;
  border: 1px solid rgba(151, 190, 166, .2);
}

body.cm-auth-redesign .auth-popup-trust span {
  flex: 1 1 130px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid rgba(151, 190, 166, .2);
  border-radius: 0;
  background: rgba(255, 255, 255, .03);
  display: inline-flex;
  align-items: center;
  color: rgba(235, 244, 238, .74);
  font-size: 11px;
}

body.cm-auth-redesign .auth-popup-trust span:last-child {
  border-right: 0;
}

body.cm-auth-redesign .auth-popup-card {
  border-left: 1px solid var(--auth-rule);
  background: var(--auth-surface);
  padding-inline: clamp(42px, 4.5vw, 72px);
}

body.cm-auth-redesign .auth-popup-card > :where(h1, .auth-sub, .auth-role-field, #maintenance-banner, #reset-success-banner, .auth-error, .auth-google-wrap, .auth-google-note, .auth-divider, #remember-device-row, form, .auth-footer, #tfa-screen) {
  width: min(100%, 430px);
}

body.cm-auth-redesign .auth-box h1,
body.cm-auth-redesign .admin-auth-card h1 {
  color: var(--auth-ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}

body.cm-auth-redesign .auth-box .auth-sub {
  color: var(--auth-copy-muted);
  font-size: 14px;
}

body.cm-auth-redesign .form-group label,
body.cm-auth-redesign .auth-captcha-title strong {
  color: var(--auth-label);
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body.cm-auth-redesign .form-group input,
body.cm-auth-redesign .auth-role-select {
  min-height: 54px;
  border: 1px solid var(--auth-field-border);
  border-radius: 12px;
  background: var(--auth-surface-muted);
  color: var(--auth-ink);
  font-family: "DM Sans", Inter, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.cm-auth-redesign .form-group input {
  padding: 0 16px;
}

body.cm-auth-redesign .form-group input:focus,
body.cm-auth-redesign .auth-role-select:hover,
body.cm-auth-redesign .auth-role-select:focus-visible,
body.cm-auth-redesign .auth-role-menu.is-open .auth-role-select {
  border-color: var(--auth-green);
  background: var(--auth-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-green) 14%, transparent);
  outline: none;
}

body.cm-auth-redesign .auth-role-select {
  padding: 9px 13px 9px 15px;
}

body.cm-auth-redesign .auth-role-current-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.cm-auth-redesign .auth-role-current-copy strong {
  color: var(--auth-ink);
  font: 700 13px/1.2 Manrope, "DM Sans", sans-serif;
}

body.cm-auth-redesign .auth-role-current-copy small {
  overflow: hidden;
  color: var(--auth-copy-subtle);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.cm-auth-redesign .auth-role-options {
  top: calc(100% + 9px);
  padding: 8px;
  border: 1px solid var(--auth-field-border);
  border-radius: 16px;
  background: var(--auth-surface);
  box-shadow: 0 24px 60px rgba(23, 42, 32, .16);
  gap: 5px !important;
}

body.cm-auth-redesign .auth-role-option {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  gap: 11px;
}

body.cm-auth-redesign .auth-role-option:hover,
body.cm-auth-redesign .auth-role-option:focus-visible {
  border-color: var(--auth-rule);
  background: var(--auth-surface-muted);
}

body.cm-auth-redesign .auth-role-option-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--auth-surface-muted);
  color: var(--auth-copy-muted);
  display: grid;
  place-items: center;
  font: 800 9px/1 Manrope, sans-serif;
}

body.cm-auth-redesign .auth-role-option > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.cm-auth-redesign .auth-role-option strong {
  color: var(--auth-ink);
  font: 700 12px/1.2 Manrope, sans-serif;
}

body.cm-auth-redesign .auth-role-option small {
  color: var(--auth-copy-subtle);
  font-size: 9px;
  line-height: 1.35;
}

body.cm-auth-redesign .auth-role-option.is-selected {
  border-color: color-mix(in srgb, var(--auth-green) 24%, transparent);
  background: color-mix(in srgb, var(--auth-green) 9%, var(--auth-surface));
  color: var(--auth-green);
}

body.cm-auth-redesign .auth-role-option.is-selected .auth-role-option-mark {
  background: var(--auth-green);
  color: #fff;
}

body.cm-auth-redesign .auth-role-option.is-selected::after {
  content: "✓";
  margin-left: auto;
  color: var(--auth-green);
  font-size: 13px;
  font-weight: 800;
}

body.cm-auth-redesign .auth-box .btn-primary {
  min-height: 52px;
  padding-inline: 20px;
  border-color: var(--auth-green);
  border-radius: 12px;
  background: var(--auth-green);
  color: #fff;
  box-shadow: none;
  font: 700 13px/1 Manrope, "DM Sans", sans-serif;
}

body.cm-auth-redesign .auth-box .btn-primary:hover {
  border-color: var(--auth-green-dark);
  background: var(--auth-green-dark);
}

body.cm-auth-redesign .terms-accept input {
  accent-color: var(--auth-green);
}

body.cm-auth-redesign .terms-accept a,
body.cm-auth-redesign .auth-footer a {
  color: var(--auth-green);
}

body.cm-auth-redesign .auth-google-wrap {
  width: min(100%, 430px);
  min-width: 0;
  min-height: 44px;
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
}

body.cm-auth-redesign .auth-google-wrap > div {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box !important;
}

body.cm-auth-redesign .auth-google-wrap [role="button"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.cm-auth-redesign .auth-divider {
  color: var(--auth-copy-subtle);
  letter-spacing: .08em;
}

body.cm-auth-redesign .auth-divider::before,
body.cm-auth-redesign .auth-divider::after {
  background: var(--auth-rule);
}

body.cm-auth-redesign .auth-captcha {
  margin: 2px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--auth-rule);
}

body.cm-auth-redesign .auth-captcha-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

body.cm-auth-redesign .auth-captcha-title small {
  color: var(--auth-copy-subtle);
  font-size: 11px;
}

body.cm-auth-redesign .auth-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: end;
}

body.cm-auth-redesign .auth-captcha-visual {
  min-width: 0;
  min-height: 58px;
  padding: 6px;
  border: 1px solid var(--auth-field-border);
  border-radius: 12px;
  background: var(--auth-surface-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

body.cm-auth-redesign .auth-captcha-visual img {
  width: 100%;
  min-width: 0;
  height: 44px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

body.cm-auth-redesign .auth-captcha-refresh {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid var(--auth-field-border);
  border-radius: 9px;
  background: var(--auth-surface);
  color: var(--auth-icon);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

body.cm-auth-redesign .auth-captcha-refresh:hover,
body.cm-auth-redesign .auth-captcha-refresh:focus-visible {
  border-color: var(--auth-green);
  color: var(--auth-green);
  outline: none;
}

body.cm-auth-redesign .auth-captcha-answer {
  margin: 0;
}

body.cm-auth-redesign .auth-captcha-answer input {
  min-height: 58px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 750;
}

body.cm-auth-redesign .auth-error {
  min-height: 48px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #c64b43 28%, var(--auth-rule));
  border-radius: 12px;
  background: color-mix(in srgb, #c64b43 7%, var(--auth-surface));
  color: color-mix(in srgb, #a43630 88%, var(--auth-ink));
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

body.cm-auth-redesign .auth-error::before {
  content: "!";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: color-mix(in srgb, #c64b43 13%, transparent);
  color: #a43630;
  display: grid;
  place-items: center;
  font: 800 11px/1 Manrope, sans-serif;
}

body.cm-auth-redesign .auth-error.show {
  display: flex;
}

/* Auth is a marketing entry point, so its controls intentionally opt out of
   the compact product-workspace and sharp-surface defaults in style.css. */
html[data-cm-density] body.cm-auth-redesign .auth-popup-card .form-group input,
html[data-cm-density] body.cm-auth-redesign .admin-auth-card .form-group input {
  min-height: 54px !important;
  border-radius: 12px !important;
}

html[data-cm-density] body.cm-auth-redesign .auth-role-select {
  min-height: 54px !important;
  border-radius: 12px !important;
}

body.cm-auth-redesign .auth-role-options {
  border-radius: 16px !important;
}

body.cm-auth-redesign .auth-role-option {
  border-radius: 11px !important;
}

html[data-cm-density] body.cm-auth-redesign .auth-box .btn,
body.cm-auth-redesign .auth-google-wrap,
body.cm-auth-redesign .auth-captcha-visual,
body.cm-auth-redesign .auth-error {
  border-radius: 12px !important;
}

html[data-cm-density] body.cm-auth-redesign .auth-box .btn-primary {
  min-height: 52px !important;
}

body.cm-auth-redesign .auth-captcha-refresh {
  border-radius: 9px !important;
}

body.cm-auth-redesign.admin-auth-page {
  background: var(--auth-canvas);
}

body.cm-auth-redesign.admin-auth-page::before {
  display: none;
}

body.cm-auth-redesign .admin-auth-container {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 61px);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 38vw);
  gap: 0;
  align-items: stretch;
  background: var(--auth-canvas) !important;
}

body.cm-auth-redesign .admin-auth-story {
  max-width: none;
  padding: clamp(48px, 6vw, 88px);
  color: #eef5f0;
  background-color: #0d1712;
  background-image:
    linear-gradient(rgba(129, 176, 149, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 176, 149, .1) 1px, transparent 1px),
    radial-gradient(circle at 82% 14%, rgba(18, 105, 94, .3), transparent 35%);
  background-size: 82px 82px, 82px 82px, auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.cm-auth-redesign .admin-auth-kicker {
  margin-bottom: 20px;
}

body.cm-auth-redesign .admin-auth-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  margin-top: 38px;
  border: 1px solid rgba(151, 190, 166, .2);
}

body.cm-auth-redesign .admin-auth-signal {
  min-height: 62px;
  padding: 12px;
  border: 0;
  border-right: 1px solid rgba(151, 190, 166, .2);
  border-radius: 0;
  background: rgba(255, 255, 255, .03);
  color: rgba(235, 244, 238, .72);
  display: flex;
  align-items: center;
  font-size: 11px;
}

body.cm-auth-redesign .admin-auth-signal:last-child {
  border-right: 0;
}

body.cm-auth-redesign .admin-auth-signal strong {
  color: #62d8a1;
}

body.cm-auth-redesign .admin-auth-card {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: clamp(42px, 5vw, 72px);
  border: 0;
  border-left: 1px solid var(--auth-rule);
  border-radius: 0;
  background: var(--auth-surface);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

body.cm-auth-redesign .admin-auth-card > * {
  width: min(100%, 430px);
  margin-left: auto;
  margin-right: auto;
}

body.cm-auth-redesign .admin-auth-lock {
  width: 46px;
  height: 46px;
  margin-left: 0;
  border-color: rgba(11, 105, 94, .24);
  border-radius: 10px;
  background: rgba(11, 105, 94, .09);
  color: var(--auth-green);
}

body.cm-auth-redesign .agent-badge {
  border: 0;
  background: transparent;
  color: var(--auth-green);
  padding: 0;
  font: 800 10px/1.2 Manrope, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.cm-auth-redesign .auth-copyright {
  background: var(--auth-surface);
  border-top: 1px solid var(--auth-rule);
}

@media (min-width: 921px) {
  html[data-cm-density] body.cm-auth-redesign.admin-auth-page.cm-fixed-header-ready > .auth-container.admin-auth-container {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100dvh - var(--cm-header-height, 61px) - var(--ft-bar-height, 56px)) !important;
    height: calc(100dvh - var(--cm-header-height, 61px) - var(--ft-bar-height, 56px)) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 920px) {
  body.cm-auth-redesign,
  body.cm-auth-redesign.admin-auth-page {
    overflow: auto;
  }

  body.cm-auth-redesign .auth-popup-shell,
  body.cm-auth-redesign .admin-auth-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  body.cm-auth-redesign .auth-popup-story,
  body.cm-auth-redesign .admin-auth-story {
    min-height: 310px;
    padding: 34px 28px;
  }

  body.cm-auth-redesign .auth-popup-story h2,
  body.cm-auth-redesign .admin-auth-story h2 {
    max-width: 620px;
    font-size: clamp(38px, 9vw, 56px);
  }

  body.cm-auth-redesign .auth-popup-preview {
    display: none;
  }

  body.cm-auth-redesign .auth-popup-card,
  body.cm-auth-redesign .admin-auth-card {
    min-height: 0;
    padding: 38px 28px 48px;
    border-left: 0;
    border-top: 1px solid var(--auth-rule);
  }

  body.cm-auth-redesign .admin-auth-card > * {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  body.cm-auth-redesign .auth-popup-story,
  body.cm-auth-redesign .admin-auth-story {
    min-height: 250px;
    padding: 28px 20px;
  }

  body.cm-auth-redesign .auth-popup-story h2,
  body.cm-auth-redesign .admin-auth-story h2 {
    font-size: 36px;
  }

  body.cm-auth-redesign .auth-popup-story p:not(.auth-popup-kicker),
  body.cm-auth-redesign .admin-auth-story p {
    font-size: 14px;
  }

  body.cm-auth-redesign .auth-popup-trust,
  body.cm-auth-redesign .admin-auth-signals {
    display: none;
  }

  body.cm-auth-redesign .auth-popup-card,
  body.cm-auth-redesign .admin-auth-card {
    padding: 30px 18px 42px !important;
  }

  body.cm-auth-redesign .auth-captcha-row {
    grid-template-columns: 1fr;
  }

  body.cm-auth-redesign .auth-captcha-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
