/* Complete Affiliate Registration Page CSS Fix */
/* This file provides all the Tailwind utility classes and CSS variables needed */

/* CSS Variables mapping for HSL color system */
:root {
    --primary: 220, 67%, 58%; /* #4668e0 converted to HSL */
    --secondary: 149, 58%, 46%; /* #32b67a converted to HSL */
    --accent: 158, 81%, 39%; /* #10b981 converted to HSL */
    --dark: 221, 35%, 20%; /* #202842 converted to HSL */
    --light: 232, 100%, 97%; /* #f7f9ff converted to HSL */
    --muted-foreground: 210, 11%, 46%; /* #6c757d converted to HSL */
    --border: 210, 18%, 87%; /* #dee2e6 converted to HSL */
    --background: 0, 0%, 100%; /* white */
    --card: 0, 0%, 100%; /* white */
    --muted: 210, 18%, 87%; /* #e9ecef converted to HSL */
}

/* Page-specific background for affiliate registration */
.page-affiliate-registration {
    background: linear-gradient(135deg, hsla(var(--primary), 0.03) 0%, hsla(var(--secondary), 0.03) 50%, hsla(var(--accent), 0.03) 100%) !important;
    min-height: 100vh !important;
}

/* Utility Classes - Layout & Spacing */
.min-h-screen { min-height: 100vh !important; }
.h-screen { height: 100vh !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

/* Container */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

/* Flexbox utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-6 { gap: 24px !important; }
.gap-8 { gap: 32px !important; }

/* Grid utilities */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }

/* Responsive grid */
@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Width utilities */
.w-4 { width: 16px !important; }
.w-5 { width: 20px !important; }
.w-6 { width: 24px !important; }
.w-8 { width: 32px !important; }
.w-12 { width: 48px !important; }
.w-16 { width: 64px !important; }
.w-20 { width: 80px !important; }
.w-24 { width: 96px !important; }

/* Height utilities */
.h-4 { height: 16px !important; }
.h-5 { height: 20px !important; }
.h-6 { height: 24px !important; }
.h-8 { height: 32px !important; }
.h-12 { height: 48px !important; }
.h-16 { height: 64px !important; }
.h-20 { height: 80px !important; }
.h-24 { height: 96px !important; }

/* Max width utilities */
.max-w-sm { max-width: 384px !important; }
.max-w-md { max-width: 448px !important; }
.max-w-lg { max-width: 512px !important; }
.max-w-xl { max-width: 576px !important; }
.max-w-2xl { max-width: 672px !important; }
.max-w-3xl { max-width: 768px !important; }
.max-w-4xl { max-width: 896px !important; }
.max-w-5xl { max-width: 1024px !important; }
.max-w-6xl { max-width: 1152px !important; }
.max-w-7xl { max-width: 1280px !important; }

/* Margin utilities */
.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 12px !important; }
.m-4 { margin: 16px !important; }
.m-6 { margin: 24px !important; }
.m-8 { margin: 32px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mx-4 { margin-left: 16px !important; margin-right: 16px !important; }
.my-4 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-8 { margin-top: 32px !important; margin-bottom: 32px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-8 { margin-top: 32px !important; }
.mt-16 { margin-top: 64px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-12 { margin-bottom: 48px !important; }
.ml-2 { margin-left: 8px !important; }
.mr-2 { margin-right: 8px !important; }

/* Padding utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-6 { padding: 24px !important; }
.p-8 { padding: 32px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-6 { padding-left: 24px !important; padding-right: 24px !important; }
.px-8 { padding-left: 32px !important; padding-right: 32px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-6 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-12 { padding-top: 48px !important; padding-bottom: 48px !important; }
.py-16 { padding-top: 64px !important; padding-bottom: 64px !important; }
.pt-12 { padding-top: 48px !important; }
.pt-16 { padding-top: 64px !important; }
.pt-24 { padding-top: 96px !important; }
.pt-32 { padding-top: 128px !important; }
.pt-48 { padding-top: 192px !important; }
.pb-8 { padding-bottom: 32px !important; }
.pb-12 { padding-bottom: 48px !important; }
.pb-16 { padding-bottom: 64px !important; }

/* Text utilities */
.text-xs { font-size: 12px !important; line-height: 16px !important; }
.text-sm { font-size: 14px !important; line-height: 20px !important; }
.text-base { font-size: 16px !important; line-height: 24px !important; }
.text-lg { font-size: 18px !important; line-height: 28px !important; }
.text-xl { font-size: 20px !important; line-height: 28px !important; }
.text-2xl { font-size: 24px !important; line-height: 32px !important; }
.text-3xl { font-size: 30px !important; line-height: 36px !important; }
.text-4xl { font-size: 36px !important; line-height: 40px !important; }
.text-5xl { font-size: 48px !important; line-height: 1 !important; }

/* Responsive text */
@media (min-width: 768px) {
    .md\\:text-5xl { font-size: 48px !important; line-height: 1 !important; }
}

/* Font weights */
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

/* Text alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Text colors */
.text-primary { color: hsl(var(--primary)) !important; }
.text-secondary { color: hsl(var(--secondary)) !important; }
.text-accent { color: hsl(var(--accent)) !important; }
.text-white { color: white !important; }
.text-black { color: black !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-muted-foreground { color: hsl(var(--muted-foreground)) !important; }

/* Background colors */
.bg-white { background-color: white !important; }
.bg-transparent { background-color: transparent !important; }
.bg-primary { background-color: hsl(var(--primary)) !important; }
.bg-secondary { background-color: hsl(var(--secondary)) !important; }
.bg-accent { background-color: hsl(var(--accent)) !important; }
.bg-muted { background-color: hsl(var(--muted)) !important; }

/* Background colors with opacity */
.bg-white\\/50 { background-color: hsla(0, 0%, 100%, 0.5) !important; }
.bg-white\\/80 { background-color: hsla(0, 0%, 100%, 0.8) !important; }
.bg-white\\/90 { background-color: hsla(0, 0%, 100%, 0.9) !important; }
.bg-primary\\/5 { background-color: hsla(var(--primary), 0.05) !important; }
.bg-primary\\/10 { background-color: hsla(var(--primary), 0.1) !important; }
.bg-primary\\/20 { background-color: hsla(var(--primary), 0.2) !important; }
.bg-secondary\\/5 { background-color: hsla(var(--secondary), 0.05) !important; }
.bg-secondary\\/10 { background-color: hsla(var(--secondary), 0.1) !important; }
.bg-secondary\\/20 { background-color: hsla(var(--secondary), 0.2) !important; }
.bg-accent\\/5 { background-color: hsla(var(--accent), 0.05) !important; }
.bg-accent\\/10 { background-color: hsla(var(--accent), 0.1) !important; }
.bg-accent\\/20 { background-color: hsla(var(--accent), 0.2) !important; }
.bg-muted\\/20 { background-color: hsla(var(--muted), 0.2) !important; }

/* Background gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important; }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important; }

/* Gradient stops */
.from-primary { --tw-gradient-from: hsl(var(--primary)) !important; --tw-gradient-to: hsla(var(--primary), 0) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-primary\\/5 { --tw-gradient-from: hsla(var(--primary), 0.05) !important; --tw-gradient-to: hsla(var(--primary), 0) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-primary\\/10 { --tw-gradient-from: hsla(var(--primary), 0.1) !important; --tw-gradient-to: hsla(var(--primary), 0) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-secondary\\/5 { --tw-gradient-to: hsla(var(--secondary), 0) !important; --tw-gradient-stops: var(--tw-gradient-from), hsla(var(--secondary), 0.05), var(--tw-gradient-to) !important; }
.to-secondary { --tw-gradient-to: hsl(var(--secondary)) !important; }
.to-secondary\\/10 { --tw-gradient-to: hsla(var(--secondary), 0.1) !important; }
.to-accent\\/5 { --tw-gradient-to: hsla(var(--accent), 0.05) !important; }

/* Border radius */
.rounded { border-radius: 4px !important; }
.rounded-sm { border-radius: 2px !important; }
.rounded-md { border-radius: 6px !important; }
.rounded-lg { border-radius: 8px !important; }
.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.rounded-3xl { border-radius: 24px !important; }
.rounded-full { border-radius: 9999px !important; }

/* Borders */
.border { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-l { border-left-width: 1px !important; }
.border-r { border-right-width: 1px !important; }
.border-gray-200 { border-color: #e5e7eb !important; }
.border-gray-300 { border-color: #d1d5db !important; }
.border-primary { border-color: hsl(var(--primary)) !important; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }

/* Backdrop filter */
.backdrop-blur-sm { backdrop-filter: blur(4px) !important; }
.backdrop-blur { backdrop-filter: blur(8px) !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; }
.backdrop-blur-lg { backdrop-filter: blur(16px) !important; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-all { transition-property: all !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }

/* Hover effects */
.hover\\:bg-primary\\/80:hover { background-color: hsla(var(--primary), 0.8) !important; }
.hover\\:bg-primary\\/90:hover { background-color: hsla(var(--primary), 0.9) !important; }
.hover\\:text-primary\\/80:hover { color: hsla(var(--primary), 0.8) !important; }

/* Display utilities */
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.hidden { display: none !important; }

/* Position utilities */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Z-index utilities */
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 50%, hsl(var(--accent)) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block !important;
}

/* Form styling for affiliate registration */
.affiliate-registration-form input[type="text"],
.affiliate-registration-form input[type="email"],
.affiliate-registration-form input[type="url"],
.affiliate-registration-form input[type="password"],
.affiliate-registration-form textarea,
.affiliate-registration-form select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid hsl(var(--border)) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    margin-bottom: 16px !important;
    background: white !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.affiliate-registration-form input[type="text"]:focus,
.affiliate-registration-form input[type="email"]:focus,
.affiliate-registration-form input[type="url"]:focus,
.affiliate-registration-form input[type="password"]:focus,
.affiliate-registration-form textarea:focus,
.affiliate-registration-form select:focus {
    outline: none !important;
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.1) !important;
}

.affiliate-registration-form label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: hsl(var(--dark)) !important;
}

.affiliate-registration-form input[type="submit"],
.affiliate-registration-form button[type="submit"] {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 16px !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.affiliate-registration-form input[type="submit"]:hover,
.affiliate-registration-form button[type="submit"]:hover {
    background: linear-gradient(135deg, hsla(var(--primary), 0.9) 0%, hsla(var(--secondary), 0.9) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px hsla(var(--primary), 0.3) !important;
}

/* Specific fixes for the affiliate registration template */
.page-affiliate-registration section:first-of-type {
    background: linear-gradient(90deg, hsla(var(--primary), 0.1) 0%, hsla(var(--secondary), 0.1) 100%) !important;
    padding: 80px 0 40px 0 !important;
    text-align: center !important;
}

/* Make sure all the template elements render correctly */
.page-affiliate-registration .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

/* Ensure proper styling for all elements */
.page-affiliate-registration * {
    box-sizing: border-box !important;
}

/* Compact hero section */
.page-affiliate-registration section:first-of-type .max-w-3xl {
    max-width: 768px !important;
    margin: 0 auto !important;
}

.page-affiliate-registration section:first-of-type h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
}

.page-affiliate-registration section:first-of-type p {
    font-size: 18px !important;
    margin-bottom: 24px !important;
}

/* Compact benefits grid - force horizontal layout */
.page-affiliate-registration section:first-of-type .grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}

/* Ensure cards display side by side on tablets and up */
@media (min-width: 640px) {
    .page-affiliate-registration section:first-of-type .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.page-affiliate-registration section:first-of-type .bg-white\\/80 {
    padding: 16px !important;
    margin-bottom: 0 !important;
}

.page-affiliate-registration section:first-of-type .bg-white\\/80 h3 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.page-affiliate-registration section:first-of-type .bg-white\\/80 p {
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

/* Additional responsive utilities */
@media (max-width: 768px) {
    .page-affiliate-registration section:first-of-type {
        padding: 60px 0 30px 0 !important;
    }
    
    .page-affiliate-registration section:first-of-type h1 {
        font-size: 28px !important;
    }
    
    .page-affiliate-registration section:first-of-type .bg-white\\/80 {
        padding: 12px !important;
    }
    
    /* On mobile, stack the cards vertically */
    .page-affiliate-registration section:first-of-type .grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .text-4xl {
        font-size: 28px !important;
        line-height: 32px !important;
    }
    
    .text-3xl {
        font-size: 24px !important;
        line-height: 28px !important;
    }
    
    .text-2xl {
        font-size: 20px !important;
        line-height: 24px !important;
    }
    
    .px-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .py-16 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .py-8 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    
    .p-8 {
        padding: 24px !important;
    }
    
    .p-6 {
        padding: 20px !important;
    }
    
    .gap-6 {
        gap: 16px !important;
    }
    
    .gap-8 {
        gap: 20px !important;
    }
    
    .mb-12 {
        margin-bottom: 32px !important;
    }
    
    .grid-cols-1 {
        grid-template-columns: 1fr !important;
    }
} 