    :root {
            --primary: #d20000;
            --primary-dark: #a80000;
            --primary-light: #eeafaf;
            --primary-gradient: linear-gradient(135deg, #d20000 0%, #a80000 100%);
            --white: #ffffff;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-500: #64748b;
            --gray-600: #475569;
            --gray-700: #334155;
            --gray-800: #1e293b;
            --gray-900: #0f172a;
            --dark-bg: #0f172a;
            --dark-card: #1e293b;
            --dark-text: #e2e8f0;
            --error: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
            --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-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        html, body {
            height: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-text-size-adjust: 100%;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        body {
            font-family: 'Poppins', 'Inter', sans-serif;
            background: var(--gray-50);
            min-height: 100vh;
            padding: 16px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 20px;
            touch-action: manipulation;
        }
        
        /* Enhanced Background with Animated Gradients */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(23, 162, 184, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(19, 132, 150, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(184, 230, 234, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
            z-index: -2;
            animation: backgroundShift 20s ease-in-out infinite;
        }
        
        body.dark-mode {
            background: var(--dark-bg);
            color: var(--dark-text);
        }
        
        body.dark-mode::before {
            background: 
                radial-gradient(circle at 20% 50%, rgba(23, 162, 184, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(19, 132, 150, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(184, 230, 234, 0.08) 0%, transparent 50%),
                linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
        }
        
        @keyframes backgroundShift {
            0%, 100% { 
                transform: translateX(0) translateY(0);
            }
            25% { 
                transform: translateX(-5px) translateY(-10px);
            }
            50% { 
                transform: translateX(10px) translateY(5px);
            }
            75% { 
                transform: translateX(-8px) translateY(8px);
            }
        }
        
        /* Container Responsivo */
        .register-container {
            width: 100%;
            z-index: 10;
            position: relative;
            max-width: 560px;
        }
        
        /* Card principal responsivo */
        .register-card {
            width: 100%;
            margin: 0 auto;
            border: none;
            border-radius: 24px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: var(--shadow-2xl);
            overflow: hidden;
            position: relative;
            animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
            margin-bottom: 40px;
        }
        
        body.dark-mode .register-card {
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid rgba(23, 162, 184, 0.1);
            box-shadow: 
                0 25px 50px -12px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(23, 162, 184, 0.1);
        }
        
        /* Enhanced Header with Gradient */
        .card-header {
            background: var(--primary-gradient);
            color: white;
            text-align: center;
            padding: 32px 24px;
            border-bottom: none;
            position: relative;
            overflow: hidden;
        }
        
        .card-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }
        
        .card-header .logo {
            width: auto;
            height: 60px;
            background: none;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            overflow: hidden;
        }
        
        .card-header .logo img {
            width: auto;
            height: 60px;
            max-width: 200px;
            object-fit: contain;
            border-radius: 0;
        }
        
        .card-header h2 {
            font-weight: 600;
            margin: 0;
            font-size: 1.75rem;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .card-header p {
            margin: 8px 0 0 0;
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .card-body {
            padding: 32px 24px;
            position: relative;
        }
        
        body.dark-mode .card-body {
            color: var(--dark-text);
        }
        
        /* Enhanced Form Elements */
        .form-label {
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--gray-700);
            font-size: 0.9rem;
            display: block;
        }
        
        body.dark-mode .form-label {
            color: var(--gray-300);
        }
        
        .input-group {
            position: relative;
            margin-bottom: 8px;
        }
        
        .input-group-text {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray-400);
            font-size: 16px;
            z-index: 10;
            pointer-events: none;
        }
        
        .form-control {
            width: 100%;
            height: 48px;
            border-radius: 12px;
            border: 1px solid var(--gray-200);
            padding: 12px 16px 12px 44px;
            font-size: 16px; /* Prevents zoom on iOS */
            background: rgba(255, 255, 255, 0.8);
            color: var(--gray-900);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            font-weight: 400;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            outline: none;
            user-select: text;
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            touch-action: manipulation;
        }
        
        body.dark-mode .form-control {
            background: rgba(255, 255, 255, 0.05);
            border-color: var(--gray-600);
            color: var(--dark-text);
        }
        
        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
            background: rgba(255, 255, 255, 1);
            outline: none;
        }
        
        body.dark-mode .form-control:focus {
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
        }
        
        .form-control:active,
        .form-control:hover {
            border-color: var(--primary);
        }
        
        /* Two column layout for large fields */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        
        @media (max-width: 576px) {
            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }
        }
        
        /* Enhanced Button */
        .btn-register {
            background: var(--primary-gradient);
            border: none;
            color: white;
            padding: 14px 20px;
            font-size: 1rem;
            font-weight: 500;
            border-radius: 12px;
            width: 100%;
            margin-top: 16px;
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .btn-register:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn-register:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Enhanced Links */
        .login-link {
            color: var(--primary);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
            touch-action: manipulation;
        }
        
        .login-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
        
        body.dark-mode .login-link {
            color: var(--primary-light);
        }
        
        .terms-link {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            touch-action: manipulation;
        }
        
        .terms-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
        
        /* Enhanced Password Toggle */
        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray-400);
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: all 0.3s ease;
            z-index: 10;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .password-toggle:hover {
            background: rgba(23, 162, 184, 0.1);
            color: var(--primary);
        }
        
        /* Enhanced Theme Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 24px;
            left: 24px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--primary-gradient);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .theme-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
        }
        
        /* Pop-up Modal Styles */
        .modal-content {
            border: none;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            box-shadow: var(--shadow-2xl);
        }
        
        body.dark-mode .modal-content {
            background: rgba(30, 41, 59, 0.95);
            color: var(--dark-text);
        }
        
        .modal-header {
            background: var(--primary-gradient);
            color: white;
            border-radius: 16px 16px 0 0;
            border-bottom: none;
            padding: 20px 24px;
        }
        
        .modal-header .btn-close {
            filter: invert(1);
            opacity: 0.8;
        }
        
        .modal-body {
            padding: 24px;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .modal-body h5 {
            color: var(--primary);
            margin-bottom: 16px;
            font-weight: 600;
        }
        
        body.dark-mode .modal-body h5 {
            color: var(--primary-light);
        }
        
        .modal-body ul {
            padding-left: 20px;
        }
        
        .modal-body li {
            margin-bottom: 8px;
            line-height: 1.6;
        }
        
        /* Toast Notifications */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            max-width: 360px;
            width: calc(100% - 40px);
        }
        
        .toast {
            border: none;
            border-radius: 12px;
            backdrop-filter: blur(20px);
            overflow: hidden;
            margin-bottom: 12px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: var(--shadow-lg);
            animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            font-family: 'Poppins', sans-serif;
            position: relative;
        }
        
        body.dark-mode .toast {
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid rgba(23, 162, 184, 0.1);
        }
        
        .toast.success {
            border-left: 4px solid var(--success);
            background: rgba(16, 185, 129, 0.1);
        }
        
        .toast.error {
            border-left: 4px solid var(--error);
            background: rgba(239, 68, 68, 0.1);
        }
        
        .toast-header {
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            background: transparent;
            color: var(--gray-900);
            font-weight: 600;
            padding: 16px 20px 8px;
            font-size: 1rem;
        }
        
        body.dark-mode .toast-header {
            color: var(--dark-text);
            border-bottom-color: rgba(255, 255, 255, 0.1);
        }
        
        .toast-body {
            padding: 8px 20px 16px;
            color: var(--gray-700);
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        body.dark-mode .toast-body {
            color: var(--gray-300);
        }
        
        /* Keyframe Animations */
        @keyframes cardEntrance {
            0% {
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        @keyframes toastSlideIn {
            0% {
                transform: translateX(100%);
                opacity: 0;
            }
            100% {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        /* Mobile Responsive - Corrigir problemas de touch */
        @media (max-width: 576px) {
            html, body {
                height: auto;
                min-height: 100vh;
                overflow-y: auto;
                position: static;
            }
            
            body {
                padding: 12px;
                align-items: flex-start;
                padding-top: 20px;
                padding-bottom: 60px;
            }
            
            .register-card {
                max-width: 100%;
                margin: 0 0 40px 0;
            }
            
            .card-header {
                padding: 24px 20px;
            }
            
            .card-header h2 {
                font-size: 1.5rem;
            }
            
            .card-body {
                padding: 24px 20px;
            }
            
            .form-control {
                height: 48px;
                font-size: 16px; /* Prevents zoom on iOS */
                padding: 14px 16px 14px 44px;
            }
            
            .btn-register {
                padding: 14px 16px;
                font-size: 1rem;
                height: 52px;
            }
            
            .theme-toggle {
                width: 44px;
                height: 44px;
                bottom: 20px;
                left: 20px;
                font-size: 16px;
            }
            
            /* Fix for input fields on mobile */
            input[type="text"],
            input[type="email"],
            input[type="password"],
            input[type="tel"] {
                font-size: 16px !important;
                -webkit-appearance: none;
                border-radius: 12px;
                background-clip: padding-box;
            }
        }
        
        /* Desktop - Ensure fixed size */
        @media (min-width: 768px) {
            .register-card {
                width: 560px;
                max-width: none;
            }
        }
        
        /* Prevent zoom on double tap */
        @media screen and (max-width: 768px) {
            * {
                touch-action: manipulation;
            }
        }