.auth-redesign {
  --auth-ink: #202124;
  --auth-muted: #686b73;
  --auth-surface: #fff;
  --auth-canvas: #f4f5f7;
  --auth-border: #dfe2e7;
  --auth-dark: #111315;
  --auth-gold: #d79d20;
  --auth-gold-hover: #b98110;
  --auth-focus: #1f66d1;
  --auth-error: #b42318;
  --auth-success: #237a45;
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(480px, 600px);
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--auth-ink);
  background: var(--auth-canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--auth-canvas, #f4f5f7);
}

.auth-redesign *,
.auth-redesign *::before,
.auth-redesign *::after {
  box-sizing: border-box;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 720px;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  color: #fff;
  background: var(--auth-dark);
}

.auth-brand::after {
  position: absolute;
  top: 70px;
  right: -320px;
  width: min(66vw, 840px);
  aspect-ratio: 1;
  background: url("/assets/img/traffic-sign-3.10.svg") center / contain no-repeat;
  opacity: .32;
  content: "";
  pointer-events: none;
}

.auth-brand__logo,
.auth-brand__copy {
  position: relative;
  z-index: 1;
}

.auth-brand__logo {
  display: inline-block;
  width: min(100%, 360px);
  padding: .875rem 1.125rem;
  border-radius: 10px;
  background: #fff;
}

.auth-brand__logo img,
.auth-mobile-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-brand__copy {
  max-width: 34rem;
}

.auth-brand__copy h2 {
  max-width: 12ch;
  margin: .75rem 0 1rem;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.auth-brand__copy > p:last-child {
  max-width: 33rem;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-eyebrow {
  margin: 0;
  color: var(--auth-gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-workspace {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 720px;
  padding: 3.375rem clamp(1.5rem, 5vw, 4.5rem);
  background: var(--auth-surface);
}

.auth-card {
  width: 100%;
  max-width: 456px;
}

.auth-card--registration {
  padding-block: 1rem;
}

.auth-mobile-logo {
  display: none;
}

.auth-heading {
  margin-bottom: 1.875rem;
}

.auth-heading h1,
.auth-restricted h1 {
  margin: .55rem 0 .75rem;
  color: var(--auth-ink);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.auth-heading > p:last-child,
.auth-restricted > p {
  max-width: 42ch;
  margin: 0;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-form {
  margin: 0;
}

.auth-field {
  position: relative;
  margin-bottom: 1.125rem;
}

.auth-field label {
  display: block;
  margin-bottom: .45rem;
  color: var(--auth-ink);
  font-size: .875rem;
  font-weight: 600;
}

.auth-field .form-control {
  width: 100%;
  min-height: 48px;
  padding: .72rem .875rem;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  color: var(--auth-ink);
  background: #fff;
  box-shadow: none;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-field .form-control:hover {
  border-color: #a9afb8;
}

.auth-field .form-control:focus,
.auth-field .form-control:focus-visible {
  border-color: var(--auth-focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 102, 209, .2);
}

.auth-field.has-error .form-control {
  border-color: var(--auth-error);
}

.auth-field.has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .16);
}

.auth-field__hint {
  display: block;
  margin-top: .4rem;
  color: var(--auth-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.auth-field__error {
  min-height: 0;
  margin: .4rem 0 0;
  color: var(--auth-error);
  font-size: .8rem;
  line-height: 1.4;
}

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

.auth-password {
  position: relative;
}

.auth-password .form-control {
  padding-right: 6.2rem;
}

.auth-password__toggle {
  position: absolute;
  right: .7rem;
  top: 2.06rem;
  min-height: 34px;
  padding: .25rem .45rem;
  border: 0;
  border-radius: 5px;
  color: #4d535c;
  background: transparent;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-password__toggle:hover {
  color: var(--auth-ink);
  background: #f0f1f3;
}

.auth-password__toggle:focus-visible,
.auth-text-action:focus-visible,
.auth-back:focus-visible,
.auth-switch a:focus-visible,
.auth-brand__logo:focus-visible,
.auth-mobile-logo:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 3px;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.auth-button--primary {
  color: #17130a;
  background: var(--auth-gold);
}

.auth-button--primary:hover {
  color: #fff;
  background: var(--auth-gold-hover);
  text-decoration: none;
}

.auth-button--secondary {
  margin-top: 1.5rem;
  color: var(--auth-ink);
  border-color: var(--auth-border);
  background: #fff;
}

.auth-button--secondary:hover {
  color: var(--auth-ink);
  border-color: #a9afb8;
  background: #f7f8f9;
  text-decoration: none;
}

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

.auth-button:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 3px;
}

.auth-button[disabled] {
  color: #858a92;
  background: #e4e6e9;
  cursor: not-allowed;
  transform: none;
}

.auth-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  margin-left: .55rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin .75s linear infinite;
}

.auth-form.is-submitting .auth-spinner {
  display: inline-block;
}

.auth-recovery {
  margin-top: 1rem;
  text-align: center;
}

.auth-text-action {
  min-height: 44px;
  padding: .5rem;
  border: 0;
  color: #3d4652;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-text-action:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

.auth-recovery__note {
  margin-top: .65rem;
  padding: 1rem;
  border-left: 3px solid var(--auth-gold);
  color: var(--auth-muted);
  background: #f7f7f5;
  font-size: .875rem;
  line-height: 1.55;
  text-align: left;
}

.auth-recovery__note strong {
  color: var(--auth-ink);
}

.auth-recovery__note p {
  margin: .3rem 0 0;
}

.auth-switch {
  margin: 1.6rem 0 0;
  color: var(--auth-muted);
  font-size: .9rem;
  line-height: 1.55;
  text-align: center;
}

.auth-switch a,
.auth-back {
  color: #2f527f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(47, 82, 127, .35);
  text-underline-offset: .2em;
}

.auth-switch a:hover,
.auth-back:hover {
  color: #183a67;
}

.auth-apps {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--auth-border);
}

.auth-apps__title {
  margin: 0 0 .65rem;
  color: var(--auth-muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.auth-apps__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
}

.auth-apps__link {
  display: block;
  min-width: 0;
  border-radius: 8px;
}

.auth-apps__link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48px;
}

.auth-apps__link:hover {
  filter: brightness(1.12);
}

.auth-apps__link:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 3px;
}

.auth-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: .875rem;
}

.auth-notice,
.auth-comment {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 3px solid var(--auth-gold);
  background: #f7f7f5;
}

.auth-notice strong,
.auth-comment strong {
  color: var(--auth-ink);
  font-size: .9rem;
}

.auth-notice p,
.auth-comment p {
  margin: .3rem 0 0;
  color: var(--auth-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.auth-privacy-note {
  margin: .25rem 0 1.125rem;
  color: var(--auth-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.auth-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  border: 2px solid var(--auth-error);
  border-radius: 50%;
  color: var(--auth-error);
  font-size: 1.2rem;
  font-weight: 800;
}

.auth-comment {
  margin-top: 1.5rem;
  margin-bottom: 0;
  border-left-color: var(--auth-error);
}

.auth-comment p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 920px) {
  .auth-redesign {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
  }

  .auth-brand {
    display: none;
  }

  .auth-workspace {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.875rem 1.5rem 2.75rem;
  }

  .auth-mobile-logo {
    display: block;
    width: min(100%, 320px);
    margin: 0 auto 1.875rem;
  }

  .auth-card--registration {
    padding-block: 0;
  }
}

@media (max-width: 480px) {
  .auth-workspace {
    padding: 1.375rem 1rem 2.25rem;
  }

  .auth-mobile-logo {
    margin-bottom: 1.5rem;
  }

  .auth-heading {
    margin-bottom: 1.5rem;
  }

  .auth-heading h1,
  .auth-restricted h1 {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  .auth-apps__links {
    grid-template-columns: 1fr;
    max-width: 190px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-redesign *,
  .auth-redesign *::before,
  .auth-redesign *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
