/**
 * FlixMembers - Sistema de Design Moderno v2.0
 * Desenvolvido por Souza Tech (https://rafaelsouzatech.com.br)
 * 
 * Design System completo com:
 * - Variáveis CSS customizáveis
 * - Componentes reutilizáveis
 * - Animações suaves
 * - Suporte a Dark Mode
 * - Responsividade total (PC/Tablet/Mobile)
 */

/* ==========================================================================
   1. VARIÁVEIS CSS - SISTEMA DE CORES E TOKENS
   ========================================================================== */

:root {
    /* Cores Primárias - Gradiente Roxo/Violeta Moderno */
    --primary-50: #faf5ff;
    --primary-100: #f3e8ff;
    --primary-200: #e9d5ff;
    --primary-300: #d8b4fe;
    --primary-400: #c084fc;
    --primary-500: #a855f7;
    --primary-600: #9333ea;
    --primary-700: #7c3aed;
    --primary-800: #6b21a8;
    --primary-900: #581c87;
    
    /* Cores de Destaque - Cyan/Teal */
    --accent-50: #ecfeff;
    --accent-100: #cffafe;
    --accent-200: #a5f3fc;
    --accent-300: #67e8f9;
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;
    --accent-700: #0e7490;
    --accent-800: #155e75;
    --accent-900: #164e63;
    
    /* Cores de Sucesso */
    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    
    /* Cores de Alerta */
    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    /* Cores de Erro */
    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    
    /* Neutros - Light Mode */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px var(--primary-500);
    --shadow-glow-accent: 0 0 40px -10px var(--accent-500);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    --gradient-mixed: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    
    /* Espaçamentos */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode */
.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --text-inverse: #0f172a;
    
    --border-light: #334155;
    --border-medium: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* ==========================================================================
   2. RESET E BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==========================================================================
   3. COMPONENTES - BOTÕES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botão Primário com Gradiente */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 50px -10px var(--primary-500);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Botão Secundário */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

/* Botão Accent */
.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md), var(--shadow-glow-accent);
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 50px -10px var(--accent-500);
}

/* Botão Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Tamanhos */
.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

/* Efeito Ripple */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* ==========================================================================
   4. COMPONENTES - INPUTS
   ========================================================================== */

.input-group {
    position: relative;
    margin-bottom: var(--space-4);
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.input {
    width: 100%;
    padding: var(--space-4);
    padding-left: var(--space-12);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    outline: none;
}

.input:hover {
    border-color: var(--border-medium);
}

.input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
    background: var(--bg-card);
}

.input::placeholder {
    color: var(--text-tertiary);
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    transition: color var(--transition-base);
    pointer-events: none;
}

.input:focus ~ .input-icon,
.input-group:focus-within .input-icon {
    color: var(--primary-500);
}

/* Input com Label Flutuante */
.input-floating {
    position: relative;
}

.input-floating .input {
    padding-top: var(--space-6);
    padding-bottom: var(--space-2);
}

.input-floating .input-label {
    position: absolute;
    left: var(--space-12);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all var(--transition-base);
    margin: 0;
}

.input-floating .input:focus ~ .input-label,
.input-floating .input:not(:placeholder-shown) ~ .input-label {
    top: var(--space-3);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-500);
}

/* ==========================================================================
   5. COMPONENTES - CARDS
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-gradient {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-inverse);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
}

/* Card de Estatísticas */
.stat-card {
    position: relative;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-mixed);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-mixed);
    border-radius: var(--radius-xl);
    color: white;
    margin-bottom: var(--space-4);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    margin-top: var(--space-2);
}

.stat-change.positive {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-change.negative {
    background: var(--error-50);
    color: var(--error-600);
}

/* ==========================================================================
   6. LAYOUT - SIDEBAR
   ========================================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform var(--transition-slow);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: var(--space-6);
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-2);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sidebar-link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-light);
}

/* Mobile Sidebar */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   7. LAYOUT - HEADER
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    height: 72px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: 30;
}

@media (min-width: 1024px) {
    .header {
        margin-left: 280px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.header-icon-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-500);
}

.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.header-avatar:hover {
    border-color: var(--primary-500);
}

/* ==========================================================================
   8. LAYOUT - MAIN CONTENT
   ========================================================================== */

.main-content {
    min-height: calc(100vh - 72px);
    padding: var(--space-6);
    background: var(--bg-primary);
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 280px;
    }
}

.page-header {
    margin-bottom: var(--space-8);
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ==========================================================================
   9. COMPONENTES - TABELAS
   ========================================================================== */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: var(--space-4) var(--space-5);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table td {
    padding: var(--space-4) var(--space-5);
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   10. COMPONENTES - BADGES E TAGS
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--success-50);
    color: var(--success-600);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.badge-error {
    background: var(--error-50);
    color: var(--error-600);
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-accent {
    background: var(--accent-100);
    color: var(--accent-700);
}

/* ==========================================================================
   11. ANIMAÇÕES
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px -5px var(--primary-500); }
    50% { box-shadow: 0 0 40px -5px var(--primary-500); }
}

/* Classes de Animação */
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease-out; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.4s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.4s ease-out; }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   12. UTILITÁRIOS
   ========================================================================== */

/* Gradientes de Texto */
.text-gradient {
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Selection */
::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

.dark ::selection {
    background: var(--primary-700);
    color: white;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ==========================================================================
   13. RESPONSIVIDADE
   ========================================================================== */

/* Tablet */
@media (max-width: 1023px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: var(--space-4);
    }
}

/* Mobile */
@media (max-width: 639px) {
    .page-title {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .header {
        padding: 0 var(--space-4);
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   14. COMPONENTES ESPECÍFICOS - LOGIN
   ========================================================================== */

.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr 1fr;
    }
}

.login-hero {
    display: none;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .login-hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: var(--space-12);
    }
}

.login-hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.4;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
}

.login-hero-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-300);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.login-hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 0 0 var(--space-4) 0;
}

.login-hero-title span {
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin: 0;
}

.login-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: var(--bg-secondary);
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
}

.login-logo img {
    height: 56px;
    width: auto;
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-500);
    cursor: pointer;
}

.login-forgot {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.login-forgot:hover {
    color: var(--primary-600);
}

.login-error {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--error-50);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-xl);
    color: var(--error-600);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================================================
   15. COMPONENTES ESPECÍFICOS - ÁREA DE MEMBROS
   ========================================================================== */

.course-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.course-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.course-card:hover .course-thumbnail-overlay {
    opacity: 1;
}

.course-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.course-card:hover .course-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.course-content {
    padding: var(--space-5);
}

.course-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.course-progress {
    margin-top: var(--space-4);
}

.course-progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background: var(--gradient-mixed);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.course-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

/* ==========================================================================
   16. DARK MODE OVERRIDES
   ========================================================================== */

.dark .login-form-container {
    background: var(--bg-secondary);
}

.dark .login-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.dark .course-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.dark .stat-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}
