.local-form {
  display: grid;
  gap: 15px;
}

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

.auth-field label {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 780;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #bac3cc;
  border-radius: 11px;
  color: var(--navy-900);
  background: var(--white);
  font: inherit;
}

.auth-field input:focus-visible {
  border-color: var(--gold-500);
  outline: 3px solid rgba(199, 154, 58, 0.2);
  outline-offset: 1px;
}

.auth-field--error input {
  border-color: rgba(155, 52, 52, 0.65);
}

.auth-field small {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.45;
}

.auth-field .help-text {
  color: var(--muted);
}

.primary-auth-button {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy-900);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.primary-auth-button:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}

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

.form-switch {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.form-switch a {
  color: var(--navy-900);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 24px 0;
  color: #899098;
  font-size: 11px;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: '';
}

.notice--success {
  border-color: rgba(40, 113, 80, 0.24);
  color: #287150;
  background: rgba(40, 113, 80, 0.06);
}

.auth-card--wide {
  width: min(100%, 650px);
}

.credential-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 29, 51, 0.045);
}

.credential-card + .credential-card {
  margin-top: 16px;
}

.credential-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.credential-card__heading .eyebrow {
  margin-bottom: 5px;
}

.credential-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 550;
  line-height: 1.15;
}

.method-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef0f2;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-state--ready {
  color: #287150;
  background: #e8f3ed;
}

.method-copy,
.credential-value {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.credential-value {
  color: var(--navy-900);
  font-weight: 750;
}

.credential-card .local-form {
  margin-top: 18px;
}

.telegram-widget--settings {
  justify-items: start;
}

@media (max-width: 560px) {
  .credential-card {
    padding: 16px;
  }

  .credential-card__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .method-state {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-auth-button {
    transition: none;
  }
}
