/* RACOPAES platform authentication — intentionally isolated from company
   branding, the operator console and all signed-in application surfaces. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) {
  --rac-ink: #2b2926;
  --rac-muted: #706961;
  --rac-accent: #b93521;
  --rac-hairline: #e8dfd8;
  --rac-auth-max: 1560px;
  background: #f9f7f4;
  background-image: none;
  color: var(--rac-ink);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) > #root { min-height: 100dvh; }

body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth[data-width="wide"] {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start;
  justify-items: stretch;
  --rac-shell-pad: clamp(12px, 1.6vw, 24px);
  gap: clamp(14px, 1.7vw, 26px);
  width: min(100%, var(--rac-auth-max));
  inline-size: min(100%, var(--rac-auth-max));
  max-width: var(--rac-auth-max);
  max-inline-size: var(--rac-auth-max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--rac-shell-pad);
  isolation: isolate;
  --auth-w: 100%;
}

body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature {
  position: sticky;
  top: var(--rac-shell-pad);
  align-self: start;
  isolation: isolate;
  margin: 0;
  border: 0;
  border-inline-start: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: clamp(660px, calc(100dvh - 2 * var(--rac-shell-pad)), 940px);
  min-height: 0;
  padding: clamp(26px, 3.1vw, 52px);
  overflow: hidden;
  border-radius: 24px;
  background: #f5eeea;
  box-shadow: inset 0 0 0 1px rgba(171, 108, 85, .10);
}

/* Semantic <aside> normally receives a callout icon: not on the brand canvas. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature::before {
  display: none;
  content: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature::after {
  content: "";
  position: absolute;
  inset: auto -14% -27% auto;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(177, 83, 57, .12);
  box-shadow: 0 0 0 45px rgba(255, 255, 255, .035), 0 0 0 115px rgba(255, 255, 255, .028);
  pointer-events: none;
  z-index: -1;
}

body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  width: fit-content;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: .115em;
  text-decoration: none;
  color: var(--rac-ink);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand img { width: 40px; height: 40px; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand:hover,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand:hover { color: var(--rac-accent); }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-body {
  min-height: 0;
  margin-top: clamp(22px, 4vh, 45px);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 770;
  letter-spacing: .11em;
  color: #944b39;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-eyebrow span {
  width: 22px;
  height: 1px;
  background: #b93521;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-statement {
  max-width: 630px;
  margin: 0;
  font-size: clamp(36px, 4.3vw, 68px);
  line-height: 1.11;
  letter-spacing: -.005em;
  font-weight: 700;
  text-wrap: balance;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-statement em {
  font-style: normal;
  color: var(--rac-accent);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-intro {
  max-width: 420px;
  margin: clamp(14px, 1.6vw, 23px) 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.66;
  color: #755d53;
  text-wrap: pretty;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork {
  width: min(100%, 660px);
  max-height: min(43vh, 380px);
  background: none;
  flex: 1 1 230px;
  align-self: center;
  display: grid;
  place-items: center;
  margin: -3px 0 -5px;
  animation: rac-auth-appear .8s both;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork img {
  display: block;
  width: min(100%, 620px);
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  background: none;
  filter: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 17px;
  border-top: 1px solid rgba(161, 100, 83, .16);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .13em;
  color: #76584d;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-bottom > :last-child {
  font-size: 11px;
  font-weight: 490;
  letter-spacing: .012em;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-bottom i {
  margin: 0 7px;
  font-style: normal;
  opacity: .47;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100dvh - 2 * var(--rac-shell-pad));
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: clamp(14px, 2.1vw, 35px) clamp(6px, 1.7vw, 30px) 11px;
}
/* Plain site chrome, not the global default header/section/footer cards. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex: none;
  font-size: 12px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top a,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer a { color: #736c66; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 610;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back span { font-size: 16px; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back:hover,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer a:hover { color: var(--rac-accent); }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand { display: none; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 480px);
  margin: auto;
  padding: 36px 0 28px;
  animation: rac-auth-rise .55s both;
}

body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center > .auth-head,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center > .auth-card {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center > .auth-head {
  text-align: left;
  margin-bottom: 26px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark {
  justify-content: flex-start;
  gap: 15px;
  align-items: center;
  margin: 0;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark .site-mark {
  --mark-size: 56px;
  background: #f8ede8;
  border: 1px solid #ecdcd4;
  border-radius: 16px;
  padding: 9px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-heading { min-width: 0; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-kicker {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 730;
  letter-spacing: .09em;
  color: var(--rac-accent);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-head h1 {
  margin: 0;
  font-size: clamp(27px, 2.4vw, 37px);
  line-height: 1.19;
  letter-spacing: -.005em;
  font-weight: 700;
  color: var(--rac-ink);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-lead {
  max-width: 380px;
  margin: 16px 0 0 71px;
  color: var(--rac-muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps {
  justify-content: flex-start;
  margin: 0 0 28px;
  gap: 8px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li {
  gap: 8px;
  font-size: 11px;
  font-weight: 590;
  color: #8b827b;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li::before {
  width: 6px;
  height: 6px;
  background: #d4c5bb;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li:not(:last-child)::after {
  width: 25px;
  background: #e2d6ce;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li[data-state="current"] { color: var(--rac-ink); }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li[data-state="current"]::before {
  background: var(--rac-accent);
  box-shadow: 0 0 0 3px #f6e1d9;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card {
  padding: clamp(23px, 2.65vw, 36px);
  background: #fff;
  border: 1px solid #ece3dd;
  border-radius: 20px;
  box-shadow: 0 20px 55px -30px rgba(67, 41, 29, .25), 0 4px 16px rgba(93, 61, 48, .035);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card::before { display: none; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form { gap: 22px; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > label,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field-label {
  font-size: 13px;
  font-weight: 670;
  color: #4b4540;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > input:not([type="checkbox"]):not([type="radio"]),
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > textarea,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field-password,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > .combobox > input,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .code-field {
  border: 1px solid #e2d9d3;
  background: #fdfbf9;
  box-shadow: none;
  border-radius: 11px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > input:not([type="checkbox"]):not([type="radio"]):focus,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > textarea:focus,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field-password:focus-within,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .code-field:focus {
  border-color: var(--rac-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 53, 33, .09);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field-password input {
  border: none;
  background: transparent;
  box-shadow: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form button[type="submit"][data-variant="primary"],
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form button[type="submit"]:not([data-variant="ghost"]) {
  min-height: 50px;
  border-radius: 11px;
  background: #b93521;
  color: #fff;
  border: 1px solid #b93521;
  box-shadow: 0 10px 22px rgba(185, 53, 33, .14);
  font-size: 14px;
  font-weight: 670;
  letter-spacing: .014em;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form button[type="submit"]:not([data-variant="ghost"]):hover:not(:disabled) {
  background: #a42e1c;
  box-shadow: 0 13px 25px rgba(185, 53, 33, .20);
  transform: translateY(-1px);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form button[type="submit"]:focus-visible,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card a:focus-visible,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel a:focus-visible {
  outline: 2px solid #b93521;
  outline-offset: 3px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-alt {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #746f69;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-identity {
  padding: 11px 12px;
  margin: 0 0 22px;
  border: 1px solid #f0e8e2;
  border-radius: 10px;
  background: #fbf8f5;
}
/* Auth notices are viewport statuses, never page-wide banners. This final
   stylesheet is unlayered and must explicitly preserve the shared toast
   dimensions instead of overriding them with a 100%-width form rule. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-feedback:not([hidden]) {
  position: fixed;
  inset-block-start: max(.85rem, env(safe-area-inset-top));
  inset-block-end: auto;
  inset-inline-start: auto;
  inset-inline-end: max(.85rem, env(safe-area-inset-right));
  width: min(27rem, calc(100vw - 1.7rem));
  max-width: min(27rem, calc(100vw - 1.7rem));
  margin: 0;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer {
  justify-content: space-between;
  color: #9b928a;
  border-top: 1px solid var(--rac-hairline);
  padding: 18px 0 0;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel:hover { box-shadow: none; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer a {
  font-size: 12px;
  text-decoration: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) main.auth[data-width="wide"] .rac-auth-panel-center {
  width: min(100%, 620px);
}

/* Keep the complete long recovery form readable without trapping it inside
   a fixed viewport or squeezing it into a low-height card. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"])[data-page="/auth/forgot-email"] .rac-auth-panel-center {
  padding-top: 25px;
  padding-bottom: 35px;
}

@keyframes rac-auth-rise {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rac-auth-appear {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 1080px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth[data-width="wide"] {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 12px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature {
    padding: clamp(23px, 3vw, 35px);
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-statement { font-size: clamp(34px, 4vw, 49px); }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-intro { font-size: 14px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork { max-height: 310px; flex-basis: 200px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel { padding-inline: clamp(8px, 2vw, 20px); }
}
@media (max-width: 780px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth[data-width="wide"] {
    display: block;
    width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature { display: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel {
    min-height: 100dvh;
    padding: 20px clamp(18px, 5vw, 32px) 20px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top { justify-content: space-between; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand {
    display: inline-flex;
    font-size: 13px;
    letter-spacing: .1em;
    gap: 9px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand img { width: 29px; height: 29px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center {
    width: min(100%, 510px);
    padding: 48px 0 44px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-head h1 { font-size: clamp(27px, 6vw, 35px); }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card { padding: clamp(22px, 4vw, 32px); }
}
@media (max-width: 420px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel {
    padding: 17px 16px 20px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back { font-size: 11px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center { padding: 36px 0 40px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark .site-mark { --mark-size: 46px; padding: 7px; border-radius: 13px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark { gap: 11px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-lead { margin-left: 57px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card { padding: 22px 20px; border-radius: 16px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer { font-size: 11px; gap: 9px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer nav { gap: 12px; }
}
@media (max-height: 640px) and (min-width: 781px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork { max-height: 220px; flex-basis: 140px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center { padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center { animation: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) * { scroll-behavior: auto; transition-duration: .01ms !important; }
}


/* Small screens have their own deliberate composition: brand masthead, compact
   floating vector, direct form and visible legal links. Not a shrunken desktop. */
@media (max-width: 900px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) {
    background: #fff;
    background-image: none;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth[data-width="wide"] {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    inline-size: 100%;
    max-width: none;
    max-inline-size: none;
    min-height: 100dvh;
    padding: 0;
    overflow-x: clip;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature {
    display: block;
    position: relative;
    top: auto;
    align-self: stretch;
    height: 218px;
    min-height: 0;
    max-height: none;
    flex: none;
    padding: 19px clamp(20px, 5vw, 34px) 22px;
    border-radius: 0 0 25px 25px;
    background: #f6eee9;
    box-shadow: inset 0 -1px 0 rgba(163, 92, 66, .1);
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature::after,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-bottom { display: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand {
    gap: 9px;
    font-size: 14px;
    letter-spacing: .095em;
    font-weight: 800;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand img { width: 30px; height: 30px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-body {
    display: block;
    margin-top: 34px;
    min-height: 0;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-eyebrow,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-intro { display: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-statement {
    position: relative;
    z-index: 1;
    width: min(68%, 340px);
    max-width: none;
    margin: 0;
    font-size: clamp(27px, 4.8vw, 36px);
    letter-spacing: -.005em;
    line-height: 1.08;
    font-weight: 690;
    text-wrap: balance;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork {
    position: absolute;
    z-index: 0;
    display: block;
    width: 250px;
    height: 195px;
    max-height: none;
    margin: 0;
    right: -25px;
    bottom: -28px;
    opacity: .58;
    pointer-events: none;
    background: none;
    -webkit-mask-image: linear-gradient(to left, #000 64%, transparent);
    mask-image: linear-gradient(to left, #000 64%, transparent);
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork img {
    width: 100%;
    height: 100%;
    max-height: none;
    background: none;
    object-fit: contain;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 clamp(20px, 5vw, 34px) 24px;
    background: #fff;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top {
    position: absolute;
    top: 17px;
    right: clamp(20px, 5vw, 34px);
    z-index: 3;
    gap: 0;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top .rac-auth-compact-brand { display: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back {
    font-size: 11px;
    font-weight: 640;
    color: #66574f;
    padding: 7px 0 7px 6px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center,
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) #main.auth.rac-auth[data-width="wide"] .rac-auth-panel-center {
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    max-width: none;
    margin: 0 auto;
    padding: 29px 0 26px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center > .auth-head {
    margin: 0 0 24px;
    text-align: left;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps {
    gap: 6px;
    margin-bottom: 22px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li:not(:last-child)::after { width: clamp(12px, 3vw, 23px); }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark {
    gap: 0;
    margin: 0;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark .site-mark { display: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-head h1 {
    font-size: clamp(27px, 5vw, 36px);
    line-height: 1.13;
    letter-spacing: -.005em;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-kicker {
    margin-bottom: 8px;
    font-size: 10px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-lead {
    margin: 11px 0 0;
    max-width: 490px;
    font-size: 14px;
    line-height: 1.58;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card {
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form { gap: 20px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-alt {
    margin-top: 19px;
    text-align: left;
    line-height: 1.8;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-identity { justify-content: flex-start; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer {
    margin-top: auto;
    justify-content: space-between;
    padding-top: 17px;
    gap: 10px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-footer nav { gap: 15px; }
}
@media (max-width: 420px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature {
    height: 201px;
    border-radius: 0 0 21px 21px;
    padding: 16px 19px 20px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature-body { margin-top: 33px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-statement {
    width: 73%;
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.09;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-artwork {
    width: 204px;
    height: 160px;
    right: -38px;
    bottom: -18px;
    opacity: .53;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel {
    padding: 0 20px 20px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top {
    right: 20px;
    top: 13px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-center { padding: 25px 0 28px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-head h1 { font-size: 29px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form { gap: 18px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card { padding: 0; background: none; border: none; box-shadow: none; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li { font-size: 10px; gap: 5px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-steps > li:not(:last-child)::after { width: 13px; margin-inline-start: 1px; }
}
@media (max-width: 340px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand { font-size: 12px; letter-spacing: .06em; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature { padding-inline: 15px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel { padding-inline: 16px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-panel-top { right: 16px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back { font-size: 0; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back::before { content: "Back"; font-size: 11px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-back span { font-size: 15px; }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .phone-field-input { grid-template-columns: minmax(0, 1fr); }
}


/* Recovery is the one longer, richer form. It opts into the same semantic
   workspace-field, workspace-field-label, workspace-field-help class contract,
   while the portal keeps its own scoped CSS and existing API validation. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form { gap: 21px; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .workspace-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 17px;
  min-inline-size: 0;
  margin: 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--ds-border);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .workspace-field-group > legend {
  width: 100%;
  float: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ds-accent-foreground);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  letter-spacing: .065em;
  line-height: 1.5;
  text-transform: uppercase;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .workspace-field-group > .field {
  min-width: 0;
  margin: 0;
  gap: 6px;
  align-self: start;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .workspace-field-group > .field:has(textarea) { grid-column: 1 / -1; }
/* Manual recovery uses the same shared Workspace controls and focus contract
   as the other authentication forms. Only its two-column layout is special. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .field > textarea.workspace-field {
  min-height: 96px;
  height: auto;
  resize: vertical;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .auth-phone-control {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  box-shadow: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .auth-phone-number { min-width: 0; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .field > .field-error:not([hidden]) { margin-top: 3px; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form > .field-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #776f68;
  text-align: left;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form > p:has(> button[type="submit"]) { margin-top: 3px; }



/* Long manual-recovery forms can use the wider column without enlarging
   or stretching the fixed-height editorial visual alongside them. */
@media (min-width: 1081px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"])[data-page="/auth/forgot-email"] #main.auth.rac-auth {
    grid-template-columns: minmax(0, .43fr) minmax(0, .57fr);
  }
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"])[data-page="/auth/forgot-email"] main.auth[data-width="wide"] .rac-auth-panel-center {
  width: min(100%, 710px);
}
@media (max-width: 780px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .workspace-field-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .workspace-field-group > .field:has(textarea) { grid-column: auto; }
}
@media (max-width: 340px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-recovery-form .auth-phone-control {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Shared control geometry used by every portal-auth form, including manual
   account recovery. This intentionally sits after recovery layout styles so
   labels, text inputs, native country selects and textareas behave identically
   without per-page height/radius/color declarations. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) {
  --rac-control-height: var(--ds-control-height, 44px);
  --rac-control-radius: var(--ds-radius-sm, 9px);
  --rac-control-font-size: var(--ds-control-font-size, 0.875rem);
  --rac-control-pad-x: var(--ds-control-padding-x, .75rem);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > label,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .workspace-field-label {
  display: block;
  margin: 0;
  font-size: var(--rac-control-font-size);
  font-weight: 670;
  line-height: 1.35;
  color: var(--rac-ink);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form :is(.field-hint, .workspace-field-help) {
  font-size: 12px;
  line-height: 1.45;
  color: var(--rac-muted);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > input:not([type="checkbox"]):not([type="radio"]),
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > textarea,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .auth-phone-control :is(select.workspace-field, input.workspace-field),
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > .combobox > input,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .code-field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--rac-control-height);
  padding-inline: var(--rac-control-pad-x);
  background: var(--ds-control-background);
  border: 1px solid var(--ds-control-border);
  border-radius: var(--rac-control-radius);
  color: var(--ds-control-text);
  font-family: var(--ds-font-body);
  font-size: var(--rac-control-font-size);
  font-weight: 400;
  line-height: var(--ui-control-line-height, 1.25rem);
  box-shadow: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > input:not([type="checkbox"]):not([type="radio"]),
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .auth-phone-control :is(select.workspace-field, input.workspace-field) {
  height: var(--rac-control-height);
  padding-block: 0;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > textarea { height: auto; min-height: 96px; padding-block: 12px; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > input:not([type="checkbox"]):not([type="radio"]):focus,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > textarea:focus,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .auth-phone-control :is(select.workspace-field, input.workspace-field):focus,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .field > .combobox > input:focus {
  background: var(--ds-control-background);
  border-color: var(--ds-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ds-focus) 14%, transparent);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--ds-danger);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ds-danger) 12%, transparent);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-phone-control {
  min-width: 0;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: .5rem;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-phone-control :is(.auth-phone-number, select.workspace-field) { min-width: 0; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-phone-control select.workspace-field {
  cursor: pointer;
  padding-inline-end: 2.1rem;
  background-image: var(--i-chevron-down);
  background-position: right .7rem center;
  background-size: 1rem;
  background-repeat: no-repeat;
  appearance: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-phone-control option.workspace-select-option {
  min-height: var(--ui-option-min-height, 36px);
  background: var(--ds-control-background);
  color: var(--ds-control-text);
  font-family: var(--ds-font-body);
  font-size: var(--rac-control-font-size);
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-mark { gap: 0; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-heading { width: 100%; }
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-lead { margin-left: 0; }
@media (max-width: 420px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-phone-control { grid-template-columns: minmax(0, 1fr); }
}

/* A one-time code is a distinctive six-digit control; share geometry but
   preserve the deliberately larger monospaced digits and centered alignment. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-form .code-field.workspace-field {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-xl, 1.25rem);
  font-weight: 650;
  text-align: center;
  letter-spacing: .24em;
  text-indent: .24em;
}

/* Keep the uploaded horizontal brand image intact at every auth viewport.
   It already contains the emblem, brand name and slogan; no duplicate text. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand picture,
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand picture {
  display:block; line-height:0; flex:none; max-width:100%;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand img {
  display:block; width:225px; height:auto; max-width:100%; object-fit:contain;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-compact-brand img {
  display:block; width:155px; height:auto; max-width:100%; object-fit:contain;
}
@media (max-width:900px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand img {
    width:clamp(150px,40vw,193px); height:auto;
  }
}
@media (max-width:420px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-brand img {
    width:clamp(140px,45vw,172px); height:auto;
  }
}

/* A complete wordmark is not a 30px square icon. Leave physical clearance
   between the full lockup and the auth feature's edge and contents. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature > .rac-auth-brand {
  padding:6px 8px;
  margin-inline-start:-8px;
  border-radius:8px;
}
@media (max-width:900px) {
  body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .rac-auth-feature > .rac-auth-brand {
    padding:4px 6px;
    margin-inline-start:-6px;
  }
}

/* Shared auth logo surfaces: prevent the base media reset from painting a
   rounded placeholder under an otherwise transparent brand image. */
body[data-surface="platform-auth"] :is(.rac-auth-brand,.rac-auth-compact-brand),
body[data-surface="platform-auth"] :is(.rac-auth-brand,.rac-auth-compact-brand) picture,
body[data-surface="platform-auth"] :is(.rac-auth-brand,.rac-auth-compact-brand) img {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}


/* Reset-code resend is an inline auth link, not another primary action.
   Keep its real submit behavior, disabled cooldown and keyboard focus. */
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card form[data-auth-kind="reset-resend"] {
  display: flex;
  justify-content: center;
  margin-block-start: 14px;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card form[data-auth-kind="reset-resend"] > button[type="submit"][data-variant="ghost"] {
  appearance: none;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #736c66;
  font: inherit;
  font-size: 13px;
  font-weight: 610;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-underline-offset: 3px;
  cursor: pointer;
  transform: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card form[data-auth-kind="reset-resend"] > button[type="submit"][data-variant="ghost"]:is(:hover,:active,:focus-visible):not(:disabled) {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--rac-accent);
  text-decoration: underline;
  transform: none;
}
body:is([data-surface="platform-auth"],[data-surface="company-buyer-auth"]) .auth-card form[data-auth-kind="reset-resend"] > button[type="submit"][data-variant="ghost"]:disabled {
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .6;
}
