.auth-local-message {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-local-message.is-error {
  background: rgba(255, 69, 69, 0.1);
  color: var(--red, #ff4545);
}

.auth-local-message.is-success {
  background: rgba(25, 168, 79, 0.12);
  color: #158846;
}

.auth-primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--page-bg, #f2f4f8);
}

html[data-theme="dark"] .auth-page-shell {
  background: var(--page, #0f1218);
}

.auth-page-card {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: 18px;
  background: var(--card-bg, #fff);
  box-shadow: 0 24px 80px rgba(32, 40, 56, 0.14);
}

.auth-page-logo {
  justify-self: center;
}

.auth-page-logo img {
  width: 180px;
  height: auto;
}

.auth-page-card h1 {
  margin: 0;
  color: var(--heading, #202838);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.auth-reset-note {
  margin: 0;
  color: var(--muted, #7b8492);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.auth-page-shell--telegram {
  min-width: 0;
  min-height: 100dvh;
  display: block;
  padding: 0;
}

.auth-page-shell--telegram [data-barba="wrapper"] {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-page-shell--telegram [data-barba="container"] {
  width: 100%;
  display: grid;
  place-items: center;
}

.auth-page-card--telegram {
  width: min(340px, 100%);
  min-height: 0;
  justify-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 16px;
}

.auth-page-card--telegram .auth-page-logo img {
  width: 152px;
}

.auth-page-card--telegram h1 {
  max-width: 100%;
  font-size: 24px;
  line-height: 1.12;
}

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

.auth-telegram-widget {
  display: flex;
  justify-content: center;
  min-height: 0;
  width: 100%;
  overflow: visible;
}

.auth-telegram-widget iframe {
  max-width: 100%;
}

.auth-page-link {
  text-align: center;
  text-decoration: none;
}

.auth-page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 184px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line, #e5e9f1);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #202838);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 31, 45, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.auth-page-back:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 139, 243, 0.42);
  color: var(--blue, #268bf3);
  box-shadow: 0 12px 24px rgba(23, 31, 45, 0.1);
}

html[data-theme="dark"] .auth-page-card--telegram,
html[data-theme="dark"] .auth-page-back {
  background: var(--surface, #1e242f);
}

html[data-theme="dark"] .auth-page-back {
  border-color: var(--line, #2a323f);
  color: var(--text, #d9e1ec);
}

html[data-theme="dark"] .auth-page-back:hover {
  border-color: rgba(38, 139, 243, 0.5);
  color: #70b7ff;
}

.profile-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(143, 153, 170, 0.24);
}

.profile-facts dt {
  color: var(--muted, #7b8492);
  font-weight: 700;
}

.profile-facts dd {
  margin: 0;
  color: var(--heading, #202838);
  font-weight: 900;
  text-align: right;
}

@media (max-width: 520px) {
  .auth-page-shell--telegram [data-barba="wrapper"] {
    padding: 16px;
  }

  .auth-page-card--telegram {
    width: 100%;
    padding: 22px;
  }

  .auth-page-card--telegram h1 {
    font-size: 22px;
  }
}
