/* Google/Microsoft social login buttons, shared by the login and register
 * pages (app/views/shared/_omniauth_buttons.html.erb and
 * _omniauth_provider_icon.html.erb). Kept separate from auth.css since this
 * is a distinct feature (see tasks/03-social-login.md), not generic form
 * styling. */

.auth__divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.auth__divider span {
  padding: 0 0.75rem;
}

.auth__omniauth {
  display: flex;
  flex-direction: column;
}

.btn--omniauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #3c4043;
  border-color: var(--color-border);
  margin-top: 0.6rem;
}

.btn--omniauth:hover {
  border-color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn--google {
  border-color: #dadce0;
}

.btn--microsoft {
  border-color: #8c8c8c;
}

.omniauth-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Linked-identity list on the user details page (app/views/users/show.html.erb) */
.identity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.identity-list__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  width: fit-content;
}

.identity-list__date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.identity-list__item .btn--unlink {
  margin-left: 0.75rem;
}
