
        :root {
            --primary: #1a1a1a;
            --secondary: #4a4a4a;
            --light: #f8fafc;
            --white: #ffffff;
            --border: #e2e8f0;
            --hover: #f1f5f9;
            --success: #059669;
            --text-light: #64748b;
            --error: #dc2626;
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            color: var(--primary);
            background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            padding-top: 4rem;
            overflow-x: hidden;
        }
        
        /* Enhanced fade-in animation for container - same as login page */
        .register-container {
            background: var(--white);
            border-radius: 20px;
            box-shadow: var(--shadow-xl);
            border: 1px solid var(--border);
            overflow: hidden;
            width: 100%;
            max-width: 1400px !important;
            margin: 1rem;
            margin-top: 1rem;
            position: relative;
            opacity: 0;
            animation: fadeIn 0.8s ease-out forwards;
        }
        
        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(20px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }
        
        .back-home {
            position: absolute;
            top: 1.5rem;
            left: 1.5rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: var(--white);
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            border-radius: 12px;
            border: 1px solid var(--border);
            transition: all 0.2s ease;
            z-index: 10;
        }
        
        .back-home:hover {
            background: var(--primary);
            color: var(--white);
            transform: translateY(-1px);
        }
        
        .register-header {
            padding: 1.5rem 4rem 1rem;
            text-align: center;
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 0 0.75rem 0;
            padding: 0;
        }
        
        .logo-icon {
            width: 70px;
            height: 45px;
            padding: 0;
            overflow: hidden;
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
        }
        
        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            margin: 0;
            padding: 0;
        }
        
        .logo-icon.no-border {
            border: none;
        }
        
        .brand-text {
            text-align: center;
            padding: 0;
            margin: 0 0 0.75rem 0;
        }
        
        .brand-title {
            font-size: 2.2rem;
            font-weight: 800;
            margin: 0;
            color: #ffcc00;
            font-family: 'Poppins', sans-serif;
        }
        
        .title-style {
            font-size: 2.2rem;
            font-weight: 800;
            margin: 0;
            color: #0080ff;
            font-family: 'Poppins', sans-serif;
        }
        
        .brand-subtitle {
            font-size: 0.85rem;
            color: var(--text-light);
            margin: 0;
            padding: 0;
        }
        
        .register-header h4 {
            font-size: 1.75rem;
            margin: 0.5rem 0 0.5rem;
            color: var(--primary);
        }
        
        .register-header p {
            color: var(--text-light);
            margin: 0;
            font-size: 0.9rem;
        }
        
        .register-body {
            padding: 1rem 4rem 2rem;
        }
        
        .mb-3 {
            margin-bottom: 1rem;
        }
        
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--primary);
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        /* Enhanced form controls with animations - same as login page */
        .form-control {
            height: 50px;
            padding: 0.7rem 1rem;
            border: 1.5px solid var(--border);
            border-radius: 12px;
            background: var(--white);
            font-size: 1rem;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
            outline: none;
            transform: translateY(-2px);
        }
        
        .password-container {
            position: relative;
            width: 100%;
        }
        
        .password-container .form-control {
            padding-right: 3rem;
        }
        
        /* Enhanced toggle password with animation - same as login page */
        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: var(--text-light);
            background: none;
            border: none;
            font-size: 1rem;
            transition: all 0.2s ease;
        }
        
        .toggle-password:hover {
            color: var(--primary);
            transform: translateY(-50%) scale(1.1);
        }
        
        /* Enhanced button animations - same as login page */
        .btn-primary {
            background: var(--primary);
            color: var(--white);
            border: none;
            padding: 0.7rem 1.5rem;
            font-weight: 500;
            border-radius: 12px;
            transition: all 0.3s ease;
            width: 100%;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            height: 50px;
        }
        
        .btn-primary:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }
        
        .form-footer {
            text-align: center;
            margin-top: 1.25rem;
            font-size: 0.9rem;
            color: var(--text-light);
        }
        
        .form-footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }
        
        .form-footer a:hover {
            color: var(--secondary);
        }
        
        /* Enhanced alert animations - same as login page */
        .alert {
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            border-radius: 12px;
            font-weight: 500;
            font-size: 0.85rem;
            border: none;
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
        }
        
        .alert-danger {
            background: #fef2f2;
            color: var(--error);
            border-left: 3px solid var(--error);
        }
        
        .alert-success {
            background: #f0fdf4;
            color: var(--success);
            border-left: 3px solid var(--success);
        }
        
        .me-2 {
            margin-right: 0.5rem;
        }
        
        /* Enhanced spinner animation - same as login page */
        .spinner {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Enhanced password strength indicator with animations */
        .password-strength {
            height: 4px;
            width: 100%;
            background: var(--border);
            border-radius: 2px;
            margin-top: 0.5rem;
            overflow: hidden;
        }
        
        .strength-meter {
            height: 100%;
            width: 0;
            transition: width 0.3s ease;
            border-radius: 2px;
        }
        
        .strength-0 { width: 20%; background: var(--error); }
        .strength-1 { width: 40%; background: #fd7e14; }
        .strength-2 { width: 60%; background: #ffc107; }
        .strength-3 { width: 80%; background: #20c997; }
        .strength-4 { width: 100%; background: var(--success); }
        
        .password-strength-text {
            font-size: 0.75rem;
            margin-top: 0.25rem;
            color: var(--text-light);
            transition: color 0.3s ease;
        }
        
        .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .form-check-label {
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        .form-check-label a {
            color: var(--primary);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .form-check-label a:hover {
            color: var(--secondary);
        }
        
        .text-muted {
            color: var(--text-light) !important;
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }
        
        /* Enhanced fade-out animation - same as login page */
        .fade-out {
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }
        
        /* Height-based responsive design */
        @media (max-height: 800px) {
            body {
                padding: 0.5rem;
                padding-top: 5rem;
                align-items: flex-start;
                justify-content: center;
                overflow-y: auto;
            }
            
            .register-container {
                margin: 0.5rem auto;
                margin-top: 1.5rem;
                position: static;
            }
            
            .back-home {
                position: fixed;
                top: 0.5rem;
                left: 0.5rem;
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
                z-index: 1000;
            }
            
            .register-header {
                padding: 1.5rem 2.5rem 0.75rem;
            }
            
            .register-header h4 {
                font-size: 1.5rem;
                margin: 0.75rem 0 0.25rem;
            }
            
            .brand-title, .title-style {
                font-size: 1.8rem;
            }
            
            .logo-icon {
                width: 60px;
                height: 40px;
            }
            
            .register-body {
                padding: 0.75rem 2.5rem 1.5rem;
            }
            
            .mb-3 {
                margin-bottom: 0.75rem;
            }
            
            .form-footer {
                margin-top: 1rem;
            }
        }
        
        @media (max-height: 700px) {
            .register-header {
                padding: 1rem 2rem 0.5rem;
            }
            
            .register-header h4 {
                font-size: 1.3rem;
                margin: 0.5rem 0 0.25rem;
            }
            
            .register-header p {
                font-size: 0.8rem;
            }
            
            .brand-title, .title-style {
                font-size: 1.6rem;
            }
            
            .logo-icon {
                width: 50px;
                height: 35px;
            }
            
            .register-body {
                padding: 0.5rem 2rem 1.25rem;
            }
            
            .form-control, .btn-primary {
                height: 45px;
                font-size: 0.9rem;
            }
            
            .mb-3 {
                margin-bottom: 0.6rem;
            }
        }
        
        @media (max-height: 600px) {
            body {
                padding-top: 3.5rem;
            }
            
            .register-container {
                margin-top: 0.75rem;
            }
            
            .register-header {
                padding: 0.75rem 2rem 0.25rem;
            }
            
            .register-header h4 {
                font-size: 1.2rem;
                margin: 0.25rem 0;
            }
            
            .brand-title, .title-style {
                font-size: 1.4rem;
            }
            
            .logo-icon {
                width: 40px;
                height: 30px;
                margin-bottom: 0.5rem;
            }
            
            .register-body {
                padding: 0.5rem 2rem 1rem;
            }
            
            .form-control, .btn-primary {
                height: 40px;
                font-size: 0.85rem;
            }
            
            .mb-3 {
                margin-bottom: 0.5rem;
            }
            
            .form-footer {
                margin-top: 0.75rem;
                font-size: 0.8rem;
            }
        }
        
        /* Comprehensive responsive design for all devices */
        
        /* Large desktops (1400px+) */
        @media (min-width: 1400px) {
            .register-container {
                max-width: 1400px;
            }
            .register-header {
                padding: 2rem 5rem 1.5rem;
            }
            .register-body {
                padding: 1.5rem 5rem 2.5rem;
            }
        }
        
        /* Standard desktops (1200px - 1399px) */
        @media (min-width: 1200px) and (max-width: 1399px) {
            .register-container {
                max-width: 95vw;
            }
            .register-header {
                padding: 1.5rem 4rem 1rem;
            }
            .register-body {
                padding: 1rem 4rem 2rem;
            }
        }
        
        /* Laptops (992px - 1199px) */
        @media (min-width: 992px) and (max-width: 1199px) {
            .register-container {
                max-width: 90vw;
            }
            .register-header {
                padding: 1.5rem 3rem 1rem;
            }
            .register-body {
                padding: 1rem 3rem 2rem;
            }
        }
        
        /* Tablets landscape & small laptops (768px - 991px) */
        @media (min-width: 768px) and (max-width: 991px) {
            .register-container {
                max-width: 85vw;
                margin: 1rem auto;
            }
            .register-header {
                padding: 1.5rem 2.5rem 1rem;
            }
            .register-body {
                padding: 1rem 2.5rem 2rem;
            }
            .back-home {
                top: 1rem;
                left: 1rem;
                padding: 0.625rem 1rem;
                font-size: 0.875rem;
            }
        }
        
        /* Tablets portrait & large phones (576px - 767px) */
        @media (min-width: 576px) and (max-width: 767px) {
            .register-container {
                max-width: 90vw;
                margin: 0.5rem auto;
            }
            .register-header {
                padding: 1.5rem 2rem 1rem;
            }
            .register-body {
                padding: 1rem 2rem 1.5rem;
            }
            .back-home {
                top: 0.75rem;
                left: 0.75rem;
                padding: 0.5rem 0.875rem;
                font-size: 0.8rem;
            }
            .form-control, .btn-primary {
                height: 48px;
                font-size: 0.95rem;
            }
        }
        
        /* Mobile phones (up to 575px) */
        @media (max-width: 575px) {
            body {
                padding: 0.25rem;
                padding-top: 3rem;
            }
            .register-container {
                max-width: 95vw;
                margin: 0.25rem auto;
                border-radius: 16px;
            }
            .register-header {
                padding: 1rem 1.5rem 0.75rem;
            }
            .register-body {
                padding: 0.75rem 1.5rem 1.5rem;
            }
            .back-home {
                position: fixed;
                top: 0.5rem;
                left: 0.5rem;
                padding: 0.5rem 0.75rem;
                font-size: 0.75rem;
                z-index: 1000;
            }
            .brand-title, .title-style {
                font-size: 1.6rem;
            }
            .register-header h4 {
                font-size: 1.3rem;
                margin: 0.5rem 0 0.25rem;
            }
            .form-control, .btn-primary {
                height: 45px;
                font-size: 0.9rem;
            }
            .mb-3 {
                margin-bottom: 0.75rem;
            }
            .gender-options {
                justify-content: center;
                gap: 4px;
            }
            .gender-label {
                min-width: 55px;
                padding: 6px 8px;
                font-size: 0.75rem;
            }
            .gender-label i {
                font-size: 12px;
            }
        }
        
        /* Extra small phones (up to 375px) */
        @media (max-width: 375px) {
            .register-container {
                max-width: 98vw;
                margin: 0.125rem auto;
                border-radius: 12px;
            }
            .register-header {
                padding: 0.75rem 1rem 0.5rem;
            }
            .register-body {
                padding: 0.5rem 1rem 1rem;
            }
            .brand-title, .title-style {
                font-size: 1.4rem;
            }
            .register-header h4 {
                font-size: 1.1rem;
            }
            .form-control, .btn-primary {
                height: 42px;
                font-size: 0.85rem;
            }
            .gender-label {
                min-width: 50px;
                padding: 4px 6px;
                font-size: 0.7rem;
            }
        }
        
        /* iPad specific adjustments */
        @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
            .register-container {
                max-width: 80vw;
            }
            .register-header {
                padding: 2rem 3rem 1.5rem;
            }
            .register-body {
                padding: 1.5rem 3rem 2rem;
            }
        }
        
        /* Landscape orientation adjustments */
        @media screen and (orientation: landscape) and (max-height: 600px) {
            body {
                padding-top: 2rem;
            }
            .register-container {
                margin-top: 0.5rem;
            }
            .register-header {
                padding-top: 1rem;
                padding-bottom: 0.5rem;
            }
            .register-body {
                padding-top: 0.5rem;
                padding-bottom: 1rem;
            }
            .brand-title, .title-style {
                font-size: 1.4rem;
            }
            .register-header h4 {
                font-size: 1.2rem;
                margin: 0.25rem 0;
            }
        }
        
        @media (max-width: 480px) {
            .back-home {
                position: fixed;
                top: 0.5rem;
                left: 0.5rem;
                padding: 0.5rem 0.75rem;
                font-size: 0.8rem;
                z-index: 1000;
            }
            
            .register-container {
                margin: 0.5rem;
            }
            
            .register-header {
                padding: 1.5rem 1.25rem 0.75rem;
            }
            
            .register-body {
                padding: 1rem 1.25rem 1.75rem;
            }
        }
        
        /* Combined height and width constraints */
        @media (max-width: 480px) and (max-height: 600px) {
            .back-home {
                position: fixed;
                top: 0.25rem;
                left: 0.25rem;
                padding: 0.375rem 0.5rem;
                font-size: 0.7rem;
            }
            
            .register-header {
                padding: 1rem 1rem 0.5rem;
            }
            
            .register-body {
                padding: 0.5rem 1rem 1rem;
            }
            
            .brand-title, .title-style {
                font-size: 1.3rem;
            }
            
            .register-header h4 {
                font-size: 1.1rem;
            }
        }
        
        /* Enhanced Gender Radio Button Styling */
        .gender-options {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-start;
        }
        
        .gender-option {
            margin-bottom: 0 !important;
            margin-right: 0 !important;
        }
        
        .gender-option .form-check-input {
            display: none;
        }
        
        .gender-label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 12px;
            border: 1.5px solid var(--border);
            border-radius: 8px;
            background-color: var(--white);
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 70px;
            text-align: center;
            color: var(--primary);
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        .gender-label i {
            font-size: 16px;
            transition: all 0.2s ease;
        }
        
        .gender-label:hover {
            background-color: var(--hover);
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }
        
        .gender-option input[type="radio"]:checked + .gender-label {
            background-color: #dbeafe;
            border-color: #3b82f6;
            color: #1e40af;
        }
        
        .gender-option input[type="radio"]:checked + .gender-label i {
            color: #2563eb;
        }

        /* Inline error styling */
        .form-control.is-invalid,
        .form-check-input.is-invalid {
            border-color: #dc2626;
            box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
        }

        .gender-options.is-invalid .gender-label {
            border-color: #dc2626;
            background-color: #fef2f2;
        }

        .invalid-feedback {
            display: block;
            width: 100%;
            margin-top: 0.25rem;
            font-size: 0.75rem;
            color: #dc2626;
        }

        .invalid-feedback.d-block {
            display: block !important;
        }

        /* Hide password strength when there's an error */
        .form-control.is-invalid ~ .password-strength,
        .form-control.is-invalid ~ .password-strength-text {
            display: none;
        }

        /* Bootstrap grid responsive adjustments */
        @media (max-width: 991px) {
            .col-md-4, .col-md-6 {
                margin-bottom: 0.75rem;
            }
            
            .col-md-4:last-child, .col-md-6:last-child {
                margin-bottom: 0;
            }
        }
        
        @media (max-width: 767px) {
            .row .col-md-4, .row .col-md-6 {
                flex: 0 0 100%;
                max-width: 100%;
                margin-bottom: 1rem;
            }
            
            .row .col-md-4:last-child, .row .col-md-6:last-child {
                margin-bottom: 0;
            }
        }
        
        /* Touch-friendly adjustments for mobile devices */
        @media (max-width: 767px) {
            .form-control:focus {
                transform: none; /* Remove transform on mobile for better performance */
            }
            
            .btn-primary:hover {
                transform: none; /* Remove hover transforms on touch devices */
            }
            
            .gender-label:hover {
                transform: none;
            }
        }
        
        /* High DPI display adjustments */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .register-container {
                border-width: 0.5px;
            }
            
            .form-control {
                border-width: 1px;
            }
        }

        /* AGGRESSIVE MOBILE RESPONSIVE DESIGN - REMOVE CONTAINER/BORDER */
        @media (max-width: 480px) {
            body {
                padding: 0;
                background: var(--white);
                min-height: 100vh;
                padding-top: 0;
            }
            
            .back-home {
                position: fixed;
                top: 1rem;
                left: 1rem;
                padding: 0.4rem 0.6rem;
                font-size: 0.75rem;
                z-index: 1000;
                border-radius: 6px;
            }
            
            .register-container {
                margin: 0;
                max-width: 100vw;
                width: 100vw;
                border-radius: 0 !important;
                box-shadow: none !important;
                border: none !important;
                background: var(--white) !important;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                padding-top: 0;
            }
            
            .register-header {
                padding: 3rem 1rem 0.5rem;
            }
            
            .register-header h4 {
                font-size: 1.1rem;
                margin: 0.5rem 0 0.3rem;
                font-weight: 600;
            }
            
            .register-header p {
                font-size: 0.7rem;
                margin: 0;
            }
            
            .brand-title {
                font-size: 1.3rem;
            }
            
            .title-style {
                font-size: 1.3rem;
            }
            
            .brand-subtitle {
                font-size: 0.65rem;
                margin: 0;
            }
            
            .logo-icon {
                width: 50px;
                height: 35px;
            }
            
            .brand-text {
                margin: 0 0 0.5rem 0;
            }
            
            .register-body {
                padding: 0.5rem 1rem 1.5rem;
                flex: 1;
            }
            
            .form-label {
                font-size: 0.75rem;
                margin-bottom: 0.3rem;
            }
            
            .form-control {
                height: 42px;
                font-size: 0.8rem;
                padding: 0.5rem 0.8rem;
                border-radius: 8px;
            }
            
            .password-container .form-control {
                padding-right: 2.5rem;
            }
            
            .toggle-password {
                font-size: 0.85rem;
                right: 10px;
            }
            
            .btn-primary {
                height: 42px;
                font-size: 0.8rem;
                padding: 0.5rem 1rem;
                border-radius: 8px;
            }
            
            .alert {
                font-size: 0.7rem;
                padding: 0.5rem 0.8rem;
                border-radius: 8px;
            }
            
            .form-footer {
                font-size: 0.75rem;
                margin-top: 1rem;
            }
            
            .mb-3 {
                margin-bottom: 0.8rem;
            }
            
            .form-check-label {
                font-size: 0.75rem;
            }
            
            .text-muted {
                font-size: 0.65rem;
            }
            
            .password-strength-text {
                font-size: 0.65rem;
            }
            
            .gender-label {
                font-size: 0.75rem;
                padding: 6px 8px;
                min-width: 60px;
            }
            
            .gender-label i {
                font-size: 14px;
            }
            
            /* Bootstrap grid adjustments for mobile */
            .row .col-md-4, .row .col-md-6 {
                flex: 0 0 100%;
                max-width: 100%;
                margin-bottom: 0.8rem;
            }
            
            .row .col-md-4:last-child, .row .col-md-6:last-child {
                margin-bottom: 0;
            }
        }
        
        @media (max-width: 360px) {
            .register-header {
                padding: 2.5rem 0.8rem 0.3rem;
            }
            
            .register-body {
                padding: 0.3rem 0.8rem 1rem;
            }
            
            .brand-title {
                font-size: 1.1rem;
            }
            
            .title-style {
                font-size: 1.1rem;
            }
            
            .register-header h4 {
                font-size: 1rem;
                margin: 0.3rem 0 0.2rem;
            }
            
            .register-header p {
                font-size: 0.65rem;
            }
            
            .brand-subtitle {
                font-size: 0.6rem;
            }
            
            .logo-icon {
                width: 45px;
                height: 30px;
            }
            
            .form-control,
            .btn-primary {
                height: 40px;
                font-size: 0.75rem;
            }
            
            .form-label {
                font-size: 0.7rem;
            }
            
            .alert {
                font-size: 0.65rem;
            }
            
            .form-footer {
                font-size: 0.7rem;
            }
            
            .text-muted {
                font-size: 0.6rem;
            }
            
            .password-strength-text {
                font-size: 0.6rem;
            }
            
            .gender-label {
                font-size: 0.7rem;
                padding: 5px 6px;
                min-width: 55px;
            }
            
            .gender-label i {
                font-size: 12px;
            }
        }
