/**
 * @file
 * Styles for social auth login buttons on login/register forms.
 */

/* Wrapper for the social auth icons */
.social-auth-login-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0 0 0.25rem;
}

/* Each provider link as a full-width outlined button */
.social-auth-login-wrapper .social-auth.auth-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  background: #fff;
  text-decoration: none;
  color: #1C1F24;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.social-auth-login-wrapper .social-auth.auth-link:hover {
  border-color: #9CA3AF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

/* Base icon styles — override contrib grayscale hover */
.social-auth-login-wrapper .social-auth.auth-icon {
  display: block;
  flex-shrink: 0;
  filter: none;
  animation: none;
}

.social-auth-login-wrapper .social-auth.auth-icon:hover {
  filter: none;
  animation: none;
}

/*
 * Per-provider sizing.
 *
 * Google: The multicolor "G" fills the entire viewBox with no background.
 *   It's already a circular shape — no border-radius needed. Sized at 24px
 *   so its visual weight matches the 22px filled icons.
 *
 * LinkedIn: Blue square background with white "in". border-radius rounds
 *   the square into a circle. Sized at 24px so the content has breathing
 *   room after rounding.
 *
 * Facebook: Blue square background with embedded logo. Same treatment as
 *   LinkedIn.
 */

.auth-icon--google {
  width: 24px;
  height: 24px;
}

.auth-icon--linkedin {
  width: 24px !important;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.auth-icon--facebook {
  width: 24px;
  height: 30px;
  border-radius: 50%;
}

/* "Or" divider between social auth and standard form */
.social-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.75rem 0 1rem;
  color: #7B8894;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E5E7EB;
}

.social-auth-divider span {
  padding: 0 0.75rem;
}

/* Hide the block placement version if it's also rendered (avoid duplicates) */
.block--success-build-social-auth-login {
  display: none;
}
