/* Social Login Buttons - Enhanced Design */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
  width: 100%;
}

.btn-google,
.btn-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 16px;
  width: 100%;
  min-height: 56px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-google {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-color: #4285F4;
  color: #333;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-google:hover {
  background: linear-gradient(135deg, #4285F4, #3367D6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
  border-color: #3367D6;
}

.btn-google:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.3);
}

.btn-facebook {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-color: #1877F2;
  color: #333;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.btn-facebook:hover {
  background: linear-gradient(135deg, #1877F2, #166FE5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
  border-color: #166FE5;
}

.btn-facebook:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.3);
}

/* Enhanced SVG Icons */
.btn-google svg,
.btn-facebook svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-google:hover svg,
.btn-facebook:hover svg {
  transform: scale(1.1);
}

/* Button Text Styling */
.btn-google span,
.btn-facebook span {
  flex: 1;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading State */
.btn-google.loading,
.btn-facebook.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-google.loading::after,
.btn-facebook.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus States for Accessibility */
.btn-google:focus,
.btn-facebook:focus {
  outline: 3px solid rgba(66, 133, 244, 0.3);
  outline-offset: 2px;
}

.btn-facebook:focus {
  outline-color: rgba(24, 119, 242, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .social-login {
    gap: 10px;
    margin: 12px 0;
  }
  
  .btn-google,
  .btn-facebook {
    padding: 14px 18px;
    font-size: 15px;
    min-height: 52px;
    gap: 10px;
  }
  
  .btn-google svg,
  .btn-facebook svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .btn-google,
  .btn-facebook {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 48px;
    gap: 8px;
  }
  
  .btn-google svg,
  .btn-facebook svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  .btn-google,
  .btn-facebook {
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
  }
  
  .btn-google span,
  .btn-facebook span {
    font-size: 13px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-google,
  .btn-facebook {
    border-width: 3px;
  }
  
  .btn-google:hover,
  .btn-facebook:hover {
    outline: 2px solid currentColor;
    outline-offset: 1px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .btn-google,
  .btn-facebook {
    transition: none;
  }
  
  .btn-google:hover,
  .btn-facebook:hover {
    transform: none;
  }
  
  .btn-google svg,
  .btn-facebook svg {
    transition: none;
  }
  
  .btn-google:hover svg,
  .btn-facebook:hover svg {
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .btn-google,
  .btn-facebook {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  }
  
  .btn-google {
    color: #4285F4;
  }
  
  .btn-facebook {
    color: #1877F2;
  }
}

/* Enhanced accessibility */
.btn-google:focus-visible,
.btn-facebook:focus-visible {
  outline: 3px solid #4285F4;
  outline-offset: 2px;
}

.btn-facebook:focus-visible {
  outline-color: #1877F2;
}

/* Error state */
.btn-google.error,
.btn-facebook.error {
  border-color: #ff4444;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.05));
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
