.auth-page,
.auth-page .main_wrapper {
  min-height: 100vh;
}

.auth-page {
  background: #f5f3ed;
}

.auth-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 5%, rgba(212, 175, 55, .12), transparent 27rem),
    radial-gradient(circle at 92% 92%, rgba(13, 27, 42, .08), transparent 28rem),
    #f5f3ed;
}

.auth-shell::before {
  position: absolute;
  top: -7rem;
  right: -7rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(13, 27, 42, .06);
  border-radius: 50%;
  content: "";
}

.auth-shell__header,
.auth-shell__footer {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.auth-shell__header {
  min-height: 82px;
  padding-block: 15px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-navy);
}

.auth-brand:hover {
  color: var(--brand-navy);
}

.auth-brand img {
  display: block;
  width: 52px;
  height: 52px;
}

.auth-brand > span {
  display: flex;
  flex-direction: column;
  font-size: .9rem;
  letter-spacing: .04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.auth-brand strong {
  font-weight: 750;
}

.auth-brand small {
  color: var(--brand-gold-text);
  font-size: .88em;
  font-weight: 650;
  letter-spacing: .09em;
}

.auth-shell__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #495565;
  font-size: .86rem;
  font-weight: 650;
}

.auth-back-link:hover {
  color: var(--brand-navy);
}

.auth-back-link svg {
  width: 16px;
  height: 16px;
}

.auth-shell__main {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 48px, 1120px);
  flex: 1;
  margin-inline: auto;
  align-items: center;
  padding-block: 26px 32px;
}

.auth-card {
  display: grid;
  width: 100%;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(13, 27, 42, .13);
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
}

.auth-card__overview {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 54px 52px 42px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 90% 10%, rgba(212, 175, 55, .2), transparent 18rem),
    linear-gradient(145deg, #0d1b2a, #152a3e 72%, #192f44);
  color: #fff;
}

.auth-card__overview::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(212, 175, 55, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(212, 175, 55, .035), 0 0 0 78px rgba(212, 175, 55, .02);
  content: "";
}

.auth-card__overview > * {
  position: relative;
  z-index: 1;
}

.auth-overview__eyebrow,
.auth-form__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-overview__eyebrow {
  color: #e5c966;
}

.auth-card__overview h1 {
  max-width: 390px;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.auth-card__overview > div > p {
  max-width: 400px;
  margin: 0;
  color: #b9c8d4;
  font-size: .97rem;
  line-height: 1.7;
}

.auth-role-list {
  display: grid;
  margin: 35px 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.auth-role-list li {
  display: flex;
  padding: 11px 12px;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.auth-role-list li > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 10px;
  background: rgba(212, 175, 55, .09);
  color: #e5c966;
}

.auth-role-list svg {
  width: 19px;
  height: 19px;
}

.auth-role-list div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.auth-role-list strong {
  color: #fff;
  font-size: .87rem;
  font-weight: 650;
}

.auth-role-list small {
  color: #9fb0be;
  font-size: .74rem;
  line-height: 1.3;
}

.auth-overview__note {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: #94a8b8;
  font-size: .72rem;
  line-height: 1.45;
}

.auth-overview__note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #d4af37;
}

.auth-card__form-panel {
  display: flex;
  padding: 51px clamp(42px, 5vw, 68px) 40px;
  flex-direction: column;
  justify-content: center;
}

.auth-form__heading {
  margin-bottom: 28px;
}

.auth-form__eyebrow {
  color: var(--brand-gold-text);
}

.auth-form__eyebrow svg {
  width: 15px;
  height: 15px;
}

.auth-form__heading h2 {
  margin: 11px 0 7px;
  color: var(--brand-navy);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.auth-form__heading p {
  max-width: 430px;
  margin: 0;
  color: #677382;
  font-size: .9rem;
  line-height: 1.6;
}

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

.auth-card--signup {
  min-height: 650px;
}

.auth-card--setup {
  min-height: 620px;
}

.auth-card--signup .auth-card__form-panel {
  padding-block: 42px 34px;
}

.auth-card--signup .auth-form__heading {
  margin-bottom: 22px;
}

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

.auth-field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-consent {
  display: flex;
  margin: 1px 0 0;
  align-items: flex-start;
  gap: 9px;
  color: #66727e;
  cursor: pointer;
  font-size: .76rem;
  line-height: 1.5;
}

.auth-consent input {
  appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  border: 1px solid #aeb7c1;
  border-radius: 4px;
  background: #fff;
}

.auth-consent input:checked {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  box-shadow: inset 0 0 0 3px #fff;
}

.auth-consent input:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .2);
  outline-offset: 2px;
}

.auth-consent a {
  color: #765900;
  font-weight: 700;
}

.auth-consent a:hover {
  color: var(--brand-navy);
}

.auth-form__footer--signup {
  margin-top: 21px;
  padding-top: 18px;
}

.auth-identity-card {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .065);
}

.auth-identity-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, .34);
  border-radius: 11px;
  background: rgba(212, 175, 55, .1);
  color: #e5c966;
}

.auth-identity-card__icon svg {
  width: 20px;
  height: 20px;
}

.auth-identity-card__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.auth-identity-card__copy strong,
.auth-identity-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-identity-card__copy strong {
  color: #fff;
  font-size: .86rem;
}

.auth-identity-card__copy small {
  color: #9fb0be;
  font-size: .72rem;
}

.auth-identity-card__role {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, .12);
  color: #e5c966;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-password-guidance {
  display: flex;
  margin-top: -3px;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #76818d;
  font-size: .7rem;
}

.auth-password-guidance span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-password-guidance svg {
  width: 13px;
  height: 13px;
  color: #8a6500;
}

.auth-setup-assurance {
  display: flex;
  margin: 18px 0 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #89939d;
  font-size: .68rem;
  text-align: center;
}

.auth-setup-assurance svg {
  width: 13px;
  height: 13px;
}

.auth-field {
  display: grid;
  margin: 0;
  gap: 8px;
}

.auth-field > span:first-child {
  color: #263443;
  font-size: .8rem;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > svg {
  position: absolute;
  left: 16px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #7d8996;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px;
  border: 1px solid #cfd5dc;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #182635;
  font-size: .92rem;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-input-wrap input::placeholder {
  color: #9aa4af;
}

.auth-input-wrap input:hover {
  border-color: #aeb7c1;
}

.auth-input-wrap input:focus {
  border-color: #9e790e;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
}

.auth-input-wrap:focus-within > svg {
  color: #8a6500;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: #75818d;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: #f1f3f5;
  color: var(--brand-navy);
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-form__meta {
  display: flex;
  margin-top: -3px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .76rem;
}

.auth-form__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #76818d;
}

.auth-form__meta svg {
  width: 14px;
  height: 14px;
}

.auth-form__meta a {
  color: #765900;
  font-weight: 700;
}

.auth-message {
  display: block;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #ddd4b6;
  border-radius: 9px;
  background: #fffaf0;
  color: #715500;
  font-size: .8rem;
  line-height: 1.4;
}

.auth-message:empty {
  display: none;
}

.auth-message[data-state="error"] {
  border-color: #e7b5b5;
  background: #fff4f4;
  color: #9b2c2c;
}

.auth-submit {
  display: flex;
  width: 100%;
  height: 52px;
  padding: 0 19px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--brand-navy);
  border-radius: 11px;
  background: var(--brand-navy);
  box-shadow: 0 9px 20px rgba(13, 27, 42, .17);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  border-color: #1b3349;
  outline: none;
  background: #1b3349;
  box-shadow: 0 11px 25px rgba(13, 27, 42, .21);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.auth-submit svg {
  width: 18px;
  height: 18px;
}

.auth-form__footer {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid #e5e8eb;
  text-align: center;
}

.auth-form__footer p {
  margin: 0 0 4px;
  color: #687482;
  font-size: .78rem;
}

.auth-form__footer > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-navy);
  font-size: .82rem;
  font-weight: 750;
}

.auth-form__footer > a:hover {
  color: #8a6500;
}

.auth-form__footer > a svg {
  width: 14px;
  height: 14px;
}

.auth-form__footer small {
  display: block;
  max-width: 370px;
  margin: 10px auto 0;
  color: #8a939d;
  font-size: .68rem;
  line-height: 1.45;
}

.auth-shell__footer {
  min-height: 54px;
  padding-block: 10px 18px;
  color: #77818c;
  font-size: .7rem;
}

.auth-shell__footer a {
  color: #56616d;
}

.auth-shell__footer a:hover {
  color: var(--brand-navy);
}

.is_dark .auth-page,
.is_dark .auth-shell {
  background:
    radial-gradient(circle at 8% 5%, rgba(212, 175, 55, .07), transparent 27rem),
    radial-gradient(circle at 92% 92%, rgba(58, 88, 116, .1), transparent 28rem),
    #08131f;
}

.is_dark .auth-shell::before {
  border-color: rgba(255, 255, 255, .035);
}

.is_dark .auth-brand,
.is_dark .auth-brand:hover,
.is_dark .auth-back-link:hover,
.is_dark .auth-form__heading h2,
.is_dark .auth-field > span:first-child,
.is_dark .auth-form__footer > a {
  color: #f4f7f9;
}

.is_dark .auth-brand small,
.is_dark .auth-form__eyebrow {
  color: #d4af37;
}

.is_dark .auth-back-link,
.is_dark .auth-form__heading p,
.is_dark .auth-form__footer p {
  color: #aab7c2;
}

.is_dark .auth-card {
  border-color: #26394b;
  background: #101f30;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.is_dark .auth-card__form-panel {
  background: #101f30;
}

.is_dark .auth-input-wrap input {
  border-color: #35495d;
  background: #0b1927;
  color: #f2f6f8;
}

.is_dark .auth-input-wrap input:hover {
  border-color: #4b6176;
}

.is_dark .auth-input-wrap input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .13);
}

.is_dark .auth-input-wrap > svg,
.is_dark .auth-password-toggle {
  color: #91a2b1;
}

.is_dark .auth-password-toggle:hover,
.is_dark .auth-password-toggle:focus-visible {
  background: #1a2d40;
  color: #fff;
}

.is_dark .auth-form__meta span,
.is_dark .auth-consent,
.is_dark .auth-password-guidance,
.is_dark .auth-setup-assurance,
.is_dark .auth-form__footer small,
.is_dark .auth-shell__footer {
  color: #8fa0ae;
}

.is_dark .auth-form__meta a,
.is_dark .auth-consent a,
.is_dark .auth-form__footer > a:hover,
.is_dark .auth-shell__footer a:hover {
  color: #e0c258;
}

.is_dark .auth-consent input {
  border-color: #647587;
  background: #0b1927;
}

.is_dark .auth-consent input:checked {
  border-color: #d4af37;
  background: #d4af37;
  box-shadow: inset 0 0 0 3px #101f30;
}

.is_dark .auth-password-guidance svg {
  color: #d4af37;
}

.is_dark .auth-message {
  border-color: #5b512d;
  background: #282416;
  color: #e4ca70;
}

.is_dark .auth-message[data-state="error"] {
  border-color: #714343;
  background: #2b1c20;
  color: #f1aaaa;
}

.is_dark .auth-submit {
  border-color: #d4af37;
  background: #d4af37;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .24);
  color: #111c28;
}

.is_dark .auth-submit:hover,
.is_dark .auth-submit:focus-visible {
  border-color: #e1c252;
  background: #e1c252;
}

.is_dark .auth-form__footer {
  border-color: #2a3d50;
}

.is_dark .auth-shell__footer a {
  color: #a5b2bd;
}

@media (max-width: 899px) {
  .auth-shell__main {
    align-items: flex-start;
  }

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

  .auth-card__overview {
    padding: 36px 40px 32px;
  }

  .auth-card__overview h1 {
    max-width: 560px;
    font-size: 2.1rem;
  }

  .auth-card__overview > div > p {
    max-width: 610px;
  }

  .auth-role-list {
    margin: 26px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-role-list li {
    align-items: flex-start;
  }

  .auth-role-list small {
    display: none;
  }

  .auth-card__form-panel {
    padding: 42px 40px;
  }

  .auth-card--signup .auth-card__form-panel {
    padding-block: 42px 36px;
  }
}

@media (max-width: 599px) {
  .auth-shell__header,
  .auth-shell__footer,
  .auth-shell__main {
    width: min(100% - 28px, 1120px);
  }

  .auth-shell__header {
    min-height: 72px;
  }

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

  .auth-brand > span {
    font-size: .78rem;
  }

  .auth-back-link {
    display: none;
  }

  .auth-shell__actions {
    gap: 0;
  }

  .auth-shell__main {
    padding-block: 12px 22px;
  }

  .auth-card {
    min-height: 0;
    border-radius: 18px;
  }

  .auth-card__overview {
    padding: 27px 25px 25px;
  }

  .auth-card__overview h1 {
    margin-top: 12px;
    font-size: 1.75rem;
  }

  .auth-card__overview > div > p {
    display: none;
  }

  .auth-role-list {
    display: none;
  }

  .auth-overview__note {
    margin-top: 18px;
  }

  .auth-card__form-panel {
    padding: 34px 24px 30px;
  }

  .auth-card--signup .auth-card__form-panel {
    padding: 34px 24px 30px;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
  }

  .auth-form__heading {
    margin-bottom: 24px;
  }

  .auth-form__heading h2 {
    font-size: 1.9rem;
  }

  .auth-form__meta {
    align-items: flex-start;
  }

  .auth-shell__footer {
    min-height: 48px;
  }
}
