/* ================================================
   AUTH VARIABLES - Variables CSS para autenticación
   Login, Recuperar contraseña, Restablecer contraseña
   Siguiendo la filosofía de corporativa con color-mix
   ================================================ */

:root {
  /* ==========================================================================
     COLOR PRIMARIO Y DERIVADOS (usando color-mix para cálculo automático)
     ========================================================================== */
  --auth-primary: #5170ff;
  --auth-primary-hover: color-mix(in srgb, var(--auth-primary), black 15%);
  --auth-primary-dark: color-mix(in srgb, var(--auth-primary), black 30%);
  --auth-primary-light: color-mix(in srgb, var(--auth-primary), transparent 90%);
  --auth-primary-lighter: color-mix(in srgb, var(--auth-primary), transparent 95%);
  --auth-primary-alpha-10: color-mix(in srgb, var(--auth-primary), transparent 90%);
  --auth-primary-alpha-15: color-mix(in srgb, var(--auth-primary), transparent 85%);
  --auth-primary-alpha-25: color-mix(in srgb, var(--auth-primary), transparent 75%);

  /* RGB del primario (para casos que requieran rgba) */
  --auth-primary-rgb: 81, 112, 255;

  /* ==========================================================================
     COLORES SEMÁNTICOS (con color-mix para consistencia)
     ========================================================================== */

  /* Éxito */
  --auth-success: #10b981;
  --auth-success-rgb: 16, 185, 129;
  --auth-success-dark: color-mix(in srgb, var(--auth-success), black 15%);
  --auth-success-darker: color-mix(in srgb, var(--auth-success), black 30%);
  --auth-success-light: color-mix(in srgb, var(--auth-success), white 20%);
  --auth-success-bg: color-mix(in srgb, var(--auth-success), transparent 92%);
  --auth-success-bg-solid: #ecfdf5;
  --auth-success-text: #065f46;

  /* Error/Peligro */
  --auth-error: #ef4444;
  --auth-error-rgb: 239, 68, 68;
  --auth-error-dark: color-mix(in srgb, var(--auth-error), black 15%);
  --auth-error-darker: color-mix(in srgb, var(--auth-error), black 30%);
  --auth-error-bg: color-mix(in srgb, var(--auth-error), transparent 92%);
  --auth-error-bg-solid: #fef2f2;
  --auth-error-text: #991b1b;

  /* Advertencia */
  --auth-warning: #f59e0b;
  --auth-warning-rgb: 245, 158, 11;
  --auth-warning-dark: color-mix(in srgb, var(--auth-warning), black 15%);
  --auth-warning-bg: color-mix(in srgb, var(--auth-warning), transparent 92%);
  --auth-warning-bg-solid: #fffbeb;
  --auth-warning-text: #92400e;

  /* Información */
  --auth-info: #3b82f6;
  --auth-info-rgb: 59, 130, 246;
  --auth-info-dark: color-mix(in srgb, var(--auth-info), black 15%);
  --auth-info-light: color-mix(in srgb, var(--auth-info), white 20%);
  --auth-info-bg: color-mix(in srgb, var(--auth-info), transparent 92%);
  --auth-info-bg-solid: #eff6ff;
  --auth-info-text: #1e40af;

  /* Secundario */
  --auth-secondary: #6b7280;
  --auth-secondary-dark: color-mix(in srgb, var(--auth-secondary), black 15%);
  --auth-secondary-bg: color-mix(in srgb, var(--auth-secondary), transparent 92%);

  /* ==========================================================================
     GRADIENTES (usando variables de color)
     ========================================================================== */
  --auth-gradient-primary: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
  --auth-gradient-primary-hover: linear-gradient(135deg, var(--auth-primary-hover) 0%, color-mix(in srgb, var(--auth-primary), black 40%) 100%);

  --auth-gradient-success: linear-gradient(135deg, var(--auth-success) 0%, var(--auth-success-dark) 100%);
  --auth-gradient-success-light: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  --auth-gradient-error: linear-gradient(135deg, var(--auth-error) 0%, var(--auth-error-dark) 100%);
  --auth-gradient-error-light: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  --auth-gradient-warning: linear-gradient(135deg, var(--auth-warning) 0%, var(--auth-warning-dark) 100%);
  --auth-gradient-warning-light: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  --auth-gradient-info: linear-gradient(135deg, var(--auth-info) 0%, var(--auth-info-dark) 100%);
  --auth-gradient-info-light: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);

  /* ==========================================================================
     ESCALA DE GRISES
     ========================================================================== */
  --auth-gray-50: #f9fafb;
  --auth-gray-100: #f3f4f6;
  --auth-gray-200: #e5e7eb;
  --auth-gray-300: #d1d5db;
  --auth-gray-400: #9ca3af;
  --auth-gray-500: #6b7280;
  --auth-gray-600: #4b5563;
  --auth-gray-700: #374151;
  --auth-gray-800: #1f2937;
  --auth-gray-900: #111827;

  /* ==========================================================================
     FONDOS
     ========================================================================== */
  --auth-bg-white: #ffffff;
   --auth-bg-black: #000;
  --auth-bg-light: #f8fafc;
  --auth-bg-subtle: #f5f7ff;
  --auth-bg-gray: #f1f5f9;

  /* ==========================================================================
     SOMBRAS
     ========================================================================== */
  --auth-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --auth-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --auth-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --auth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Sombras con color primario */
  --auth-shadow-btn-primary: 0 4px 8px rgba(var(--auth-primary-rgb), 0.15);
  --auth-shadow-btn-primary-hover: 0 4px 8px rgba(var(--auth-primary-rgb), 0.3);
  --auth-shadow-focus: 0 0 0 3px rgba(var(--auth-primary-rgb), 0.25);
  --auth-shadow-focus-light: 0 0 0 3px rgba(var(--auth-primary-rgb), 0.1);
  --auth-shadow-focus-success: 0 0 0 3px rgba(var(--auth-success-rgb), 0.15);
  --auth-shadow-focus-error: 0 0 0 3px rgba(var(--auth-error-rgb), 0.15);

  /* ==========================================================================
     BORDES Y RADIOS (unificados)
     ========================================================================== */
  --auth-radius-sm: 6px;
  --auth-radius-md: 8px;
  --auth-radius-default: var(--auth-radius-md);
  --auth-radius-lg: 10px;
  --auth-radius-xl: 12px;
  --auth-radius-2xl: 16px;
  --auth-radius-full: 9999px;

  --auth-border-light: #e5e7eb;
  --auth-border-default: #e2e8f0;

  /* ==========================================================================
     TRANSICIONES
     ========================================================================== */
  --auth-transition-fast: all 0.12s ease;
  --auth-transition-default: all 0.15s ease;
  --auth-transition-normal: all 0.2s ease;
  --auth-transition-smooth: all 0.25s ease;
  --auth-transition-slow: all 0.3s ease;

  /* ==========================================================================
     TIPOGRAFÍA
     ========================================================================== */
  --auth-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --auth-font-size-xs: 0.75rem;
  --auth-font-size-sm: 0.8125rem;
  --auth-font-size-base: 0.875rem;
  --auth-font-size-md: 0.9375rem;
  --auth-font-size-lg: 1rem;
  --auth-font-size-xl: 1.125rem;
  --auth-font-size-2xl: 1.25rem;
  --auth-font-size-3xl: 1.5rem;
  --auth-font-weight-normal: 400;
  --auth-font-weight-medium: 500;
  --auth-font-weight-semibold: 600;
  --auth-font-weight-bold: 700;

  /* ==========================================================================
     ESPACIADO
     ========================================================================== */
  --auth-spacing-xs: 4px;
  --auth-spacing-sm: 8px;
  --auth-spacing-md: 12px;
  --auth-spacing-default: 16px;
  --auth-spacing-lg: 20px;
  --auth-spacing-xl: 24px;
  --auth-spacing-2xl: 32px;
  --auth-spacing-3xl: 40px;
  --auth-spacing-4xl: 48px;

  /* ==========================================================================
     COMPONENTES
     ========================================================================== */
  --auth-input-height: 44px;
  --auth-input-height-mobile: 48px;
  --auth-input-padding: 0 12px 0 42px;
  --auth-input-bg: var(--auth-bg-white);
  --auth-input-bg-hover: var(--auth-gray-50);
  --auth-input-border: 1.5px solid var(--auth-gray-300);
  --auth-btn-height: 44px;
  --auth-btn-height-mobile: 48px;

  /* ==========================================================================
     EMPRESA ACTUAL (Dinámico - se actualiza con PHP/JS)
     ========================================================================== */
  --auth-company-primary: #5170ff;
  --auth-company-hover: color-mix(in srgb, var(--auth-company-primary), black 15%);
  --auth-company-dark: color-mix(in srgb, var(--auth-company-primary), black 30%);
  --auth-company-light: color-mix(in srgb, var(--auth-company-primary), transparent 90%);
  --auth-company-alpha-10: color-mix(in srgb, var(--auth-company-primary), transparent 90%);
  --auth-company-alpha-25: color-mix(in srgb, var(--auth-company-primary), transparent 75%);
}
