/*
 * SOCIAL LOGIN BUTTONS - DNAR STANDALONE
 * 📋 CONTAINS: Universal neutral social login button styles
 * 🎯 PURPOSE: Replace inline styles in login templates
 * 📏 SIZE: ~100 lines | GZIPPED: ~2KB
 *
 * WCAG 2.1 AA Compliant | Touch target minimum 44px
 *
 * CREATED: Nov 27, 2025
 * PORTED FROM: MULTI project apps/static/css/components/buttons-social-login.css
 *
 * USAGE:
 * 1. Include this CSS in base template or auth pages
 * 2. Replace inline style="" attributes with class="btn-social-login"
 * 3. Icons should use alt="" role="presentation" for decorative
 */

/* =================================================================
   BASE SOCIAL LOGIN BUTTON
   Matches DNAR brand colors (#0F75BD)
   ================================================================= */

.btn-social-login {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  /* Sizing - WCAG 2.5.5 minimum 44px touch target */
  min-height: 48px;
  padding: 12px 16px;
  width: fit-content;

  /* Colors - DNAR brand */
  background-color: #fefefc;
  color: #000000;
  border: 1px solid #0F75BD;

  /* Typography */
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;

  /* Visual - DNAR pill style */
  border-radius: 50px;
  box-shadow: none;

  /* Interaction */
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;

  /* Performance-optimized transitions */
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

/* Icon within button */
.btn-social-login img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* =================================================================
   INTERACTION STATES
   ================================================================= */

/* Hover - Subtle feedback */
.btn-social-login:hover {
  background-color: #f0f0f0;
  border-color: #0a5a94;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #000000;
}

/* Focus - WCAG 2.4.7 Level AA compliant */
.btn-social-login:focus,
.btn-social-login:focus-visible {
  outline: 3px solid #0F75BD;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(15, 117, 189, 0.2);
  background-color: #fefefc;
}

/* Active/Pressed - Tactile feedback */
.btn-social-login:active {
  background-color: #e0e0e0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   CONTAINER STYLING
   ================================================================= */

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}

/* =================================================================
   RESPONSIVE - Mobile full width
   ================================================================= */

@media (max-width: 576px) {
  .btn-social-login {
    width: 100%;
    justify-content: center;
  }
}

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .btn-social-login {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-social-login {
    border-width: 2px;
  }

  .btn-social-login:focus,
  .btn-social-login:focus-visible {
    outline-width: 4px;
  }
}
