.auth-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px;
  place-items: center;
  background: var(--canvas);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(400px, 1.12fr);
  width: min(960px, 100%);
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 34, 56, .12);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 48px;
  overflow: hidden;
  background: var(--brand-strong);
  color: #fff;
}

.auth-brand::after {
  position: absolute;
  right: -128px;
  bottom: -118px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, .045),
    0 0 0 96px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.auth-brand__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-brand__mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 56, 91, .2);
  place-items: center;
}

.auth-brand__mark img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.auth-brand__name {
  max-width: 180px;
  font-size: .9375rem;
  font-weight: 780;
  letter-spacing: .035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.auth-brand__product {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin: 96px 0 18px;
  font-size: 2.65rem;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.auth-brand__description {
  position: relative;
  z-index: 1;
  max-width: 31ch;
  margin: 0;
  color: rgba(255, 255, 255, .98);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.auth-brand__security {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 29ch;
  margin: 48px 0 0;
  color: rgba(255, 255, 255, .98);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-brand__security svg {
  flex: 0 0 20px;
}

.auth-content {
  display: grid;
  min-width: 0;
  padding: 48px 64px;
  background: var(--surface);
  place-items: center;
}

.auth-panel {
  width: min(100%, 390px);
}

.auth-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.auth-progress__steps {
  display: flex;
  gap: 5px;
}

.auth-progress__step {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.auth-progress__step--active,
.auth-progress__step--complete {
  background: var(--brand-strong);
}

.auth-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.auth-intro {
  max-width: 42ch;
  margin: 13px 0 28px;
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.auth-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger), transparent 62%);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--danger), transparent 94%);
  color: var(--danger);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}

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

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field__label {
  color: var(--ink);
  font-size: .875rem;
  font-weight: 680;
}

.auth-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.auth-input::placeholder {
  color: #596d80;
  opacity: 1;
}

.auth-input:hover {
  border-color: #8aa5b8;
}

.auth-input:focus {
  border-color: var(--focus);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus), transparent 82%);
}

.auth-input--code {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: .3em;
  text-align: center;
}

.auth-submit,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
  cursor: pointer;
}

.auth-submit:hover {
  border-color: #066ca8;
  background: #066ca8;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.auth-secondary:hover {
  border-color: #8aa5b8;
  background: var(--canvas);
}

.auth-note,
.auth-back {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.auth-back a {
  font-weight: 650;
}

@media (max-width: 760px) {
  .auth-page {
    display: block;
    padding: 14px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 28px);
    border-radius: 16px;
  }

  .auth-brand {
    display: block;
    min-height: 214px;
    padding: 26px;
  }

  .auth-brand::after {
    right: -96px;
    bottom: -188px;
    width: 300px;
    height: 300px;
  }

  .auth-brand__mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .auth-brand__mark img {
    width: 42px;
    height: 42px;
  }

  .auth-brand__product {
    max-width: none;
    margin: 30px 0 8px;
    font-size: 1.75rem;
  }

  .auth-brand__description {
    max-width: 34ch;
    font-size: .9375rem;
    line-height: 1.5;
  }

  .auth-brand__security {
    display: none;
  }

  .auth-content {
    padding: 34px 26px 40px;
    place-items: start center;
  }

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

@media (max-width: 390px) {
  .auth-page {
    padding: 0;
  }

  .auth-shell {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .auth-brand {
    min-height: 200px;
    padding: 22px;
  }

  .auth-content {
    padding: 30px 22px 36px;
  }

  .auth-panel h1 {
    font-size: 1.75rem;
  }
}
