body.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 154, 69, 0.075), transparent 27%),
    radial-gradient(circle at 92% 36%, rgba(255, 255, 255, 0.76), transparent 30%),
    var(--atlas-ivory);
}

.auth-page__shell {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--page-max));
  min-height: 100vh;
  margin-inline: auto;
  padding-bottom: var(--space-7);
  overflow: hidden;
}

.auth-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 50.8fr) minmax(0, 49.2fr);
  min-height: 1180px;
}

.auth-stage::before {
  position: absolute;
  z-index: -2;
  inset: 6% 50% 4% -12%;
  border: 1px solid rgba(201, 154, 69, 0.08);
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.54), transparent 58%);
  content: "";
  transform: rotate(-7deg);
}

.auth-axis {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.auth-axis__line {
  fill: none;
  stroke: var(--atlas-gold);
  stroke-opacity: 0.58;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.auth-axis__halo {
  fill: rgba(201, 154, 69, 0.12);
  stroke: rgba(201, 154, 69, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.auth-axis__node {
  fill: var(--atlas-gold);
  filter: drop-shadow(0 5px 9px rgba(129, 85, 25, 0.2));
}

.auth-brand,
.auth-access {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(100px, 10.4vw, 150px) clamp(44px, 5vw, 72px) 72px clamp(72px, 9.1vw, 132px);
}

.auth-brand__signature {
  width: min(100%, 460px);
}

.auth-brand__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.auth-brand__logo--horizontal {
  display: none;
}

.auth-manifesto {
  width: min(100%, 520px);
  margin-top: clamp(56px, 6vw, 86px);
}

.auth-manifesto h1 {
  margin: 0;
  font-size: clamp(2.75rem, 4vw, 3.4rem);
  line-height: 1.07;
}

.auth-manifesto h1 > span {
  display: block;
}

.auth-manifesto h1 em {
  color: var(--atlas-gold);
  font-style: normal;
}

.auth-manifesto p {
  max-width: 465px;
  margin: 30px 0 0;
  color: var(--atlas-green-ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.85;
}

.auth-principles {
  width: min(100%, 540px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
  margin: auto 0 0;
  padding: 72px 0 0;
  list-style: none;
}

.auth-principle {
  min-width: 0;
  color: var(--atlas-green-ink);
  text-align: center;
}

.auth-principle .trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 10px 22px rgba(57, 43, 25, 0.06);
}

.auth-principle .trust-icon [data-icon] {
  width: 30px;
  height: 30px;
}

.auth-principle strong,
.auth-principle small {
  display: block;
}

.auth-principle strong {
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-principle small {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.auth-access {
  display: flex;
  flex-direction: column;
  padding: 48px 0 72px;
}

.auth-help {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 10px;
  margin-right: 8.4%;
  color: var(--atlas-green-ink);
  cursor: not-allowed;
}

.auth-help > span:first-child,
.auth-help strong,
.auth-help small {
  display: block;
}

.auth-help > span:first-child {
  text-align: right;
}

.auth-help strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.auth-help small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1.25;
}

.auth-help__icon {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--atlas-green-ink);
}

.auth-help__icon svg {
  width: 100%;
  height: 100%;
}

.auth-card {
  width: min(86.9%, 620px);
  margin-top: 78px;
  margin-left: 4.7%;
  padding: clamp(34px, 3.35vw, 48px);
  border-color: rgba(18, 62, 52, 0.07);
  border-radius: clamp(24px, 2.15vw, 31px);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 24px 68px rgba(57, 43, 25, 0.105);
  backdrop-filter: blur(8px);
}

.auth-card__header {
  text-align: center;
}

.auth-card__header h2 {
  margin: 0;
  font-size: clamp(2.25rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.auth-card__gold-rule {
  width: 72px;
  height: 3px;
  display: block;
  margin: 22px auto 0;
  border-radius: var(--radius-pill);
  background: var(--atlas-gold);
}

.auth-card__header p {
  max-width: 430px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 42% 58%;
  margin-top: 38px;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
  width: 100%;
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px 13px;
  color: var(--atlas-green-ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.auth-tab:hover {
  background: rgba(201, 154, 69, 0.06);
}

.auth-tab--active {
  color: var(--atlas-gold);
}

.auth-tab--active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: var(--atlas-gold);
  content: "";
}

.auth-panel[hidden] {
  display: none;
}

.auth-demo-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin-top: 26px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 154, 69, 0.24);
  border-radius: var(--radius-md);
  background: rgba(201, 154, 69, 0.08);
  color: var(--atlas-green-ink);
}

.auth-demo-note [data-icon] {
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: var(--atlas-gold);
}

.auth-demo-note p {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.55;
}

.auth-demo-note strong {
  font-weight: 800;
}

.auth-page__shell[data-integration-state="unavailable"] .auth-demo-note {
  border-color: rgba(158, 60, 45, 0.26);
  background: rgba(158, 60, 45, 0.07);
}

.auth-form {
  margin-top: 26px;
}

.auth-form__fields {
  display: grid;
  gap: 24px;
}

.auth-card .field {
  gap: 9px;
}

.auth-card .field-label {
  font-size: 0.84rem;
}

.auth-card .field-control {
  min-height: 56px;
  padding-inline: 15px;
  border-color: rgba(18, 62, 52, 0.25);
  background: rgba(255, 255, 255, 0.62);
}

.auth-card .field-control input {
  height: 54px;
  font-size: 0.94rem;
}

.auth-card .field-control input#institution-code {
  color: var(--atlas-green-ink);
  font-weight: 650;
}

.password-icon {
  width: 22px;
  height: 22px;
}

.auth-password-requirements {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 154, 69, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(201, 154, 69, 0.07);
  color: var(--text-muted);
}

.auth-password-requirements [data-icon] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--atlas-gold);
}

.auth-password-requirements p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.auth-password-requirements strong {
  color: var(--atlas-green-ink);
  font-weight: 800;
}

.auth-form__support {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.auth-remember {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  cursor: not-allowed;
}

.auth-remember input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--atlas-green);
}

.auth-remember span,
.auth-remember strong,
.auth-remember small,
.auth-recovery small {
  display: block;
}

.auth-remember strong,
.auth-recovery {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.auth-remember small,
.auth-recovery small {
  margin-top: 3px;
  font-size: 0.59rem;
  font-weight: 650;
  line-height: 1.25;
}

.auth-recovery {
  min-height: var(--touch-target);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  color: var(--atlas-gold);
  text-align: right;
  cursor: pointer;
  text-decoration: none;
}

.auth-recovery small {
  color: var(--text-muted);
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  padding-inline: 22px;
  font-size: 0.98rem;
}

.auth-submit > [data-icon] {
  margin-left: auto;
}

.auth-submit__demo {
  padding: 3px 7px;
  border: 1px solid rgba(248, 243, 235, 0.3);
  border-radius: var(--radius-pill);
  color: var(--atlas-ivory);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.auth-form__status {
  min-height: 36px;
  margin: 12px 0 0;
  text-align: center;
}

.auth-form__status[data-state="success"] {
  color: var(--atlas-green);
  font-weight: 700;
}

.auth-signup-confirmation {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
}

.auth-signup-confirmation input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--atlas-green);
}

.auth-trust {
  position: relative;
  z-index: 2;
  width: 80.6%;
  min-height: 164px;
  display: grid;
  grid-template-columns: 43.9% 56.1%;
  margin: 10px 4% 0 15.4%;
  overflow: hidden;
  border-color: rgba(18, 62, 52, 0.08);
  border-radius: clamp(22px, 2.2vw, 32px);
  background: rgba(255, 253, 249, 0.83);
  box-shadow: 0 18px 46px rgba(57, 43, 25, 0.07);
}

.auth-trust::after {
  position: absolute;
  right: -42px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201, 154, 69, 0.16);
  border-radius: 50%;
  content: "";
}

.auth-trust__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 34px clamp(26px, 3.5vw, 50px);
}

.auth-trust__item--purpose {
  position: relative;
  padding-right: clamp(88px, 10vw, 144px);
}

.auth-trust__item--purpose::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 1px;
  background: var(--border-subtle);
  content: "";
}

.auth-trust__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 154, 69, 0.25);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--atlas-gold);
  box-shadow: 0 8px 20px rgba(57, 43, 25, 0.06);
}

.auth-trust__icon [data-icon] {
  width: 27px;
  height: 27px;
}

.auth-trust h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-trust p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.auth-page__note {
  margin: 18px var(--page-gutter) 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 992px) {
  .auth-stage {
    min-height: 1100px;
  }

  .auth-brand {
    padding: 108px 38px 64px 64px;
  }

  .auth-brand__signature {
    width: 330px;
  }

  .auth-manifesto {
    margin-top: 54px;
  }

  .auth-manifesto h1 {
    font-size: 2.7rem;
  }

  .auth-manifesto p {
    margin-top: 24px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .auth-principles {
    gap: 10px;
    padding-top: 50px;
  }

  .auth-principle .trust-icon {
    width: 54px;
    height: 54px;
  }

  .auth-principle small {
    display: none;
  }

  .auth-card {
    margin-top: 58px;
  }

  .auth-tab {
    flex-direction: column;
    gap: 4px;
  }

  .auth-trust {
    width: 88%;
    margin-right: 4%;
    margin-left: 8%;
  }

  .auth-trust__item {
    padding-inline: 28px;
  }

  .auth-trust__item--purpose {
    padding-right: 70px;
  }
}

@media (max-width: 991px) {
  .auth-page__shell {
    padding-bottom: 40px;
  }

  .auth-stage {
    display: block;
    min-height: 0;
  }

  .auth-stage::before {
    inset: -8% -24% 64% 20%;
  }

  .auth-axis {
    display: none;
  }

  .auth-brand {
    min-height: 0;
    display: block;
    padding: 28px 32px 18px;
  }

  .auth-brand__signature {
    width: 190px;
  }

  .auth-brand__logo--principal,
  .auth-manifesto,
  .auth-principles {
    display: none;
  }

  .auth-brand__logo--horizontal {
    display: block;
  }

  .auth-access {
    padding: 0 32px 48px;
  }

  .auth-help {
    margin: 0 0 18px auto;
  }

  .auth-card {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 42px 40px;
  }

  .auth-trust {
    width: min(calc(100% - 64px), 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
  }

  .auth-trust__item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 28px 24px;
  }

  .auth-trust__item--purpose {
    padding-right: 44px;
  }

  .auth-trust__icon {
    width: 48px;
    height: 48px;
  }

  .auth-page__note {
    max-width: 620px;
    margin-inline: auto;
    padding-inline: 32px;
  }
}

@media (max-width: 640px) {
  .auth-brand {
    padding-inline: 24px;
  }

  .auth-brand__signature {
    width: 176px;
  }

  .auth-access {
    padding-inline: 24px;
  }

  .auth-card {
    padding: 36px 28px;
  }

  .auth-card__header h2 {
    font-size: 2.15rem;
  }

  .auth-tab {
    min-height: 68px;
    flex-direction: column;
    gap: 5px;
  }

  .auth-form__support {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .auth-remember,
  .auth-recovery {
    width: 100%;
  }

  .auth-recovery {
    align-items: flex-start;
    text-align: left;
  }

  .auth-trust {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
  }

  .auth-trust__item--purpose::before {
    top: 0;
    right: 24px;
    bottom: auto;
    left: 24px;
    width: auto;
    height: 1px;
  }
}

@media (max-width: 430px) {
  .auth-page__shell {
    padding-bottom: 30px;
  }

  .auth-brand {
    padding: 20px 16px 12px;
  }

  .auth-brand__signature {
    width: 156px;
  }

  .auth-access {
    padding: 0 16px 34px;
  }

  .auth-help {
    margin-bottom: 14px;
  }

  .auth-help small {
    display: none;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: 23px;
  }

  .auth-card__header h2 {
    font-size: 2rem;
  }

  .auth-card__gold-rule {
    width: 54px;
    margin-top: 17px;
  }

  .auth-card__header p {
    margin-top: 18px;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .auth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .auth-tab {
    min-width: 0;
    padding-inline: 3px;
    font-size: 0.82rem;
  }

  .auth-tab--unavailable small {
    padding-inline: 4px;
    font-size: 0.48rem;
  }

  .auth-demo-note {
    margin-top: 22px;
    padding: 11px 12px;
  }

  .auth-form {
    margin-top: 22px;
  }

  .auth-form__fields {
    gap: 20px;
  }

  .auth-card .field-control {
    padding-inline: 12px;
  }

  .auth-card .field-control input {
    font-size: 0.88rem;
  }

  .auth-password-requirements {
    padding: 9px 10px;
  }

  .auth-password-requirements p {
    font-size: 0.67rem;
  }

  .auth-submit {
    min-height: 56px;
    padding-inline: 16px;
    font-size: 0.9rem;
  }

  .auth-submit__demo {
    padding-inline: 5px;
  }

  .auth-trust {
    width: calc(100% - 32px);
    border-radius: 22px;
  }

  .auth-trust__item,
  .auth-trust__item--purpose {
    padding: 24px 20px;
  }

  .auth-trust__item--purpose::before {
    right: 20px;
    left: 20px;
  }

  .auth-page__note {
    padding-inline: 20px;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    backdrop-filter: none;
  }
}
