body.auth-route-active .desktop-nav,
body.auth-route-active .header-actions,
body.auth-route-active .mobile-nav {
  display: none !important;
}

body.auth-route-active .topbar {
  justify-content: flex-start;
}

body.auth-route-active .auth-page {
  display: grid;
  place-items: start center;
  padding-top: 40px;
}

body.auth-route-active .auth-card {
  width: min(100%, 520px);
}

body.auth-route-active .auth-card::before {
  display: none;
}

body.auth-route-active .auth-page .footer {
  display: none;
}

.auth-inline-error {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 110, 126, .32);
  border-radius: 12px;
  color: #ffd0d6;
  background: rgba(255, 110, 126, .09);
  font-size: 13px;
  line-height: 1.45;
}

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

.auth-provider-error {
  margin: 0;
}

.auth-password-field {
  position: relative;
}

.auth-password-field .input {
  padding-right: 92px;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.auth-provider-section.auth-provider-compact {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.auth-provider-compact .yandex-id-divider {
  margin: 0;
}

.auth-provider-compact .auth-provider-list {
  gap: 0;
}

.auth-provider-compact .auth-provider-button {
  min-height: 58px;
}

.auth-provider-compact .auth-provider-consents {
  margin-top: 2px;
}

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

.auth-yandex-registration-notice {
  margin: 0 0 16px;
}

body.auth-route-active .auth-recovery-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 640px) {
  body.auth-route-active .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.auth-route-active .auth-page {
    width: min(100% - 24px, 520px);
    padding-top: 24px;
    padding-bottom: 36px;
  }

  body.auth-route-active .auth-card {
    border-radius: 18px;
  }

  .auth-provider-compact .auth-provider-button {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
