/* ==========================================
   Social Authentication Styles
   ========================================== */

/* Social Login Buttons */
.social-login-container {
  margin: 20px 0;
}

.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #6B7280;
  font-size: 14px;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.social-divider span {
  padding: 0 16px;
  background: #F9FAFB;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.social-button:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.social-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.social-button-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.social-button-text {
  flex: 1;
  text-align: center;
}

/* Google Button Specific */
.social-button.google {
  border-color: #4285F4;
  color: #4285F4;
}

.social-button.google:hover {
  background: #4285F4;
  color: white;
}

/* Microsoft Button Specific */  
.social-button.microsoft {
  border-color: #00A4EF;
  color: #00A4EF;
}

.social-button.microsoft:hover {
  background: #00A4EF;
  color: white;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .social-button {
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .social-button-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
  }
}

/* Loading Spinner */
.social-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error/Success Messages */
.auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.auth-message.error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.auth-message.success {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.auth-message.info {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

/* Login Form Enhancements */
.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-button {
  width: 100%;
  padding: 12px 16px;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.form-button:hover {
  background: #2563EB;
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-form {
    padding: 16px;
  }
  
  .social-button-text {
    font-size: 15px;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .social-button {
    background: #1F2937;
    color: #F9FAFB;
    border-color: #374151;
  }
  
  .social-button:hover {
    background: #374151;
    border-color: #4B5563;
  }
  
  .social-divider span {
    background: #1F2937;
    color: #9CA3AF;
  }
}