/*
 * Sign-in, welcome, error and development-login pages (loaded through pageCss on those pages only).
 */

.tb-auth-card {
  max-width: 34rem;
  margin: var(--tb-space-6) auto;
}

.tb-auth-steps {
  padding-inline-start: var(--tb-space-5);
  margin-block: var(--tb-space-4);
}

.tb-google-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.tb-dev-users {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Welcome step: avatar grid of big radio buttons. */
.tb-avatar-picker {
  border: 0;
  padding: 0;
  margin: 0;
}

.tb-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: var(--tb-space-3);
}

.tb-avatar-option {
  display: block;
  cursor: pointer;
}

.tb-avatar-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  font-size: 2.5rem;
  line-height: 1;
  border: 3px solid var(--tb-border);
  border-radius: var(--tb-radius-lg);
  background: var(--tb-surface-2);
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.tb-avatar-option:hover .tb-avatar-choice {
  border-color: var(--tb-primary);
}

.tb-avatar-option input:checked + .tb-avatar-choice {
  border-color: var(--tb-primary);
  background: var(--tb-surface);
  box-shadow: 0 0 0 3px var(--tb-primary);
  transform: scale(1.06);
}

.tb-avatar-option input:focus-visible + .tb-avatar-choice {
  outline: 3px solid var(--tb-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tb-avatar-choice {
    transition: none;
  }
}

/* Language switch at the top of the sign-in pages. */
.tb-lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: var(--tb-space-3);
  margin-bottom: var(--tb-space-3);
  font-size: 0.9375rem;
}

.tb-lang-switch a[aria-current="true"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--tb-text);
}
