.rb-auth-page {
  min-height: 0;
  background: linear-gradient(180deg, #fff 0%, #f5f7fb 240px, #f5f7fb 100%);
  color: #07142f;
  font-family: Montserrat, Arial, sans-serif;
  padding: 22px 24px 64px;
}

/* Success content is short; let the footer follow the cards instead of
   stretching this page to another full viewport below the site header. */
.rb-auth-page[data-rebuild-poc="account-success"] {
  min-height: 0;
  padding-bottom: 48px;
}

.rb-auth-page__breadcrumbs,
.rb-auth-shell {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.rb-auth-page__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #94a3b8;
  font-size: 12px;
  line-height: 18px;
}

.rb-auth-page__breadcrumbs a {
  color: #64748b;
  text-decoration: none;
}

.rb-auth-page__breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: #cbd5e1;
}

.rb-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.rb-auth-shell--compact {
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
}

.rb-auth-card,
.rb-auth-support {
  border: 1px solid #e3ebf4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.rb-auth-card {
  padding: 38px;
}

.rb-auth-card__eyebrow,
.rb-auth-support > span {
  color: #ff5a00;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 14px;
  text-transform: uppercase;
}

.rb-auth-card h1,
.rb-auth-support h2 {
  margin: 8px 0 10px;
  color: #07142f;
  font-weight: 850;
  letter-spacing: -.025em;
}

.rb-auth-card h1 {
  font-size: 42px;
  line-height: 50px;
}

.rb-auth-support h2 {
  font-size: 30px;
  line-height: 36px;
}

.rb-auth-card p,
.rb-auth-support p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 24px;
}

.rb-auth-alert {
  margin-top: 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
  line-height: 20px;
  padding: 12px 14px;
}

.rb-auth-alert--success {
  border: 1px solid #b8f0ce;
  background: #f4fff8;
  color: #15803d;
}

.rb-auth-alert--error {
  border: 1px solid #ffd3c2;
  background: #fff7f1;
  color: #d84a12;
}

.rb-auth-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.rb-auth-fieldset {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.rb-auth-fieldset + .rb-auth-fieldset {
  margin-top: 8px;
}

.rb-auth-fieldset legend {
  margin-bottom: 2px;
  color: #07142f;
  font-size: 16px;
  font-weight: 850;
  line-height: 22px;
}

.rb-auth-form label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.rb-auth-form input {
  height: 50px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  color: #07142f;
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
}

.rb-auth-form input:focus {
  border-color: #ff5a00;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .12);
}

.rb-auth-page--reset {
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 90, 0, .07), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f4f7fb 240px, #f4f7fb 100%);
}

.rb-auth-shell--reset {
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
}

.rb-auth-card--reset {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 90, 0, .075), transparent 32%),
    #fff;
}

.rb-password-field {
  position: relative;
  display: block;
}

.rb-password-field input {
  width: 100%;
  padding-right: 54px;
}

.rb-password-field.is-error input {
  border-color: #ffb599;
  background: #fffaf7;
}

.rb-reset-form .rb-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  padding: 9px;
  transform: translateY(-50%);
}

.rb-reset-form .rb-password-toggle:hover,
.rb-reset-form .rb-password-toggle.is-visible {
  background: #fff2ea;
  color: #ff5a00;
}

.rb-reset-form .rb-password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.rb-password-hint {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 14px;
}

.rb-password-hint__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eafaf0;
  color: #16834a;
  font-size: 12px;
  font-weight: 900;
}

.rb-password-hint > span:last-child,
.rb-reset-benefits span {
  display: grid;
  gap: 2px;
}

.rb-password-hint strong,
.rb-reset-benefits strong {
  color: #07142f;
  font-size: 12px;
  font-weight: 850;
  line-height: 18px;
}

.rb-password-hint small,
.rb-reset-benefits small {
  color: #64748b;
  font-size: 11px;
  line-height: 17px;
}

.rb-auth-support--reset {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 20, 47, .98), rgba(17, 38, 76, .98));
}

.rb-auth-support--reset::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 58px solid rgba(255, 90, 0, .09);
  border-radius: 50%;
  content: "";
}

.rb-auth-support--reset h2,
.rb-auth-support--reset p,
.rb-auth-support--reset strong {
  color: #fff;
}

.rb-auth-support--reset p,
.rb-auth-support--reset small {
  color: #aebbd0;
}

.rb-reset-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.rb-reset-benefits > div {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  padding: 13px 14px;
}

.rb-reset-benefits b {
  color: #ff6a1a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rb-reset-support-note {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
}

.rb-reset-support-note span {
  color: #aebbd0;
  font-size: 12px;
  font-weight: 750;
}

.rb-auth-form em {
  color: #d84a12;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 18px;
}

.rb-auth-form__links {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.rb-auth-form a,
.rb-auth-card__register a,
.rb-auth-support a {
  color: #ff5a00;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.rb-auth-form button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #ff5a00;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  padding: 0 18px;
  transition: background .18s ease;
}

.rb-auth-form button:hover {
  background: #f04f00;
}

.rb-auth-form__actions {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px;
}

.rb-auth-form__actions a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  color: #07142f;
}

.rb-auth-form__actions a:hover {
  border-color: #ff5a00;
  color: #ff5a00;
}

.rb-auth-card__register {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 20px;
}

.rb-auth-card--success .rb-auth-form__actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  margin-top: 24px;
}

.rb-auth-card--success {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 90, 0, .07), transparent 34%),
    #fff;
}

.rb-auth-card--success .rb-auth-form__actions a {
  min-height: 56px;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.rb-auth-card--success .rb-auth-form__actions a::after {
  margin-left: 9px;
  font-size: 17px;
  line-height: 1;
  content: "\2192";
}

.rb-auth-card--success .rb-auth-form__actions a:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.rb-auth-card--success .rb-auth-form__actions .rb-auth-primary-link,
.rb-auth-card--success .rb-auth-form__actions .rb-auth-primary-link:hover,
.rb-auth-card--success .rb-auth-form__actions .rb-auth-primary-link:focus-visible {
  border-color: #ff5a00;
  background: linear-gradient(135deg, #ff5a00 0%, #ff7625 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 90, 0, .22);
}

.rb-auth-card__message {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #64748b;
  font-size: 15px;
  line-height: 24px;
}

.rb-auth-card__message p {
  margin: 0;
}

.rb-auth-primary-link {
  border-color: #ff5a00;
  background: #ff5a00;
  color: #fff;
}

.rb-auth-primary-link:hover {
  border-color: #f04f00;
  background: #f04f00;
  color: #fff;
}

.rb-auth-support {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.rb-auth-support ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.rb-auth-support li {
  position: relative;
  min-height: 28px;
  color: #07142f;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  padding-left: 34px;
}

.rb-auth-support li::before {
  display: grid;
  place-items: center;
  color: #ff5a00;
  content: "\2713";
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #ffdac7;
  border-radius: 8px;
  background: #fff7f1;
  font-size: 12px;
  font-weight: 900;
}

.rb-auth-shell--compact .rb-auth-support > a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffd3bd;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff7f1;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.rb-auth-shell--compact .rb-auth-support > a::after {
  margin-left: 8px;
  content: "\2192";
}

.rb-auth-shell--compact .rb-auth-support > a:hover {
  border-color: #ff5a00;
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .rb-auth-page {
    padding: 18px 14px 46px;
  }

  .rb-auth-shell {
    grid-template-columns: 1fr;
  }

  .rb-auth-form__actions {
    grid-template-columns: 1fr;
  }

  .rb-auth-card--success .rb-auth-form__actions {
    grid-template-columns: 1fr;
  }

  .rb-auth-card,
  .rb-auth-support {
    padding: 26px 20px;
  }

  .rb-auth-card h1 {
    font-size: 34px;
    line-height: 40px;
  }
}
