.auth-antibot {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: calc(var(--app-radius-lg) - 4px);
  background: linear-gradient(180deg, #ffffff 0%, var(--app-primary-soft) 100%);
  box-shadow: var(--app-shadow-soft);
}

.auth-antibot[hidden] {
  display: none !important;
}

.auth-antibot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-antibot__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-text);
}

.auth-antibot__status {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--app-muted);
  line-height: 1.45;
}

.auth-antibot__switch {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--app-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-antibot__switch:hover,
.auth-antibot__switch:focus-visible {
  color: #1a4f7f;
}

.auth-antibot__error {
  margin-top: 0.85rem;
}

.auth-antibot__manual {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--app-border);
}

.auth-antibot__manual-text {
  margin: 0 0 0.9rem;
  color: var(--app-text);
  line-height: 1.45;
}

.auth-antibot__manual-text strong {
  color: var(--app-primary);
}

.auth-antibot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-antibot__option {
  min-height: 3rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface);
  color: var(--app-text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-antibot__option:hover,
.auth-antibot__option:focus-visible {
  border-color: var(--app-primary);
  background: #fdfefe;
}

.auth-antibot__option.is-selected {
  border-color: var(--app-primary);
  background: var(--app-primary);
  color: #fff;
}

.auth-auth-link {
  color: var(--app-primary);
}

.auth-auth-link:hover,
.auth-auth-link:focus-visible {
  color: #1a4f7f;
}

@media (max-width: 992px) {
  .auth-antibot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .auth-antibot {
    padding: 0.9rem;
  }

  .auth-antibot__head {
    align-items: flex-start;
  }

  .auth-antibot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
