:root {
            --primary-color: #8a42ff;
            --secondary-color: #2b2b36;
            --border-radius: 10px;
            --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column; /* Changed from center alignment */
        }

        /* Registration Page Wrapper */
        .registration-page-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            width: 100%;
        }

        /* Registration Container */
        .register-container {
            display: flex;
            width: 100%;
            max-width: 1200px;
            min-height: 700px;
            margin: 20px auto; /* Center horizontally */
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            align-self: center; /* Center vertically within flex container */
        }

        /* Registration Container */
        .register-container {
            display: flex;
            width: 100%;
            max-width: 1200px;
            min-height: 700px;
            margin: 20px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
        }

        /* Left Side - Branding */
        .register-left {
            flex: 1;
            background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a24 100%);
            color: white;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .register-left::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: url('https://preview.wstacks.com/Ctrl Tasq/assets/presets/default/images/footer-dots2.svg');
            background-size: 600px;
            opacity: 0.1;
            animation: float 20s linear infinite;
        }

        @keyframes float {
            0% { transform: translateX(0) translateY(0) rotate(0deg); }
            100% { transform: translateX(-100px) translateY(-100px) rotate(360deg); }
        }

        .register-logo {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }

        .register-logo img {
            max-width: 180px;
            height: auto;
        }

        .register-tagline {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
            z-index: 1;
        }

        .register-tagline h1 {
            font-size: 28px;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #fff, var(--primary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .register-tagline p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
        }

        /* Statistics */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }

        .stat-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius);
            padding: 20px;
            text-align: center;
            transition: var(--transition);
        }

        .stat-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-5px);
        }

        .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Features List */
        .features-list {
            position: relative;
            z-index: 1;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius);
            transition: var(--transition);
        }

        .feature-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }

        .feature-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .feature-text h4 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .feature-text p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
        }

        /* Right Side - Registration Form */
        .register-right {
            flex: 1;
            background: white;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: auto;
            max-height: 700px;
            padding-top: 750px;
        }

        .register-form-container {
            max-width: 400px;
            margin: 0 auto;
            width: 100%;
        }

        .register-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .register-header h2 {
            color: var(--secondary-color);
            font-size: 28px;
            margin-bottom: 10px;
        }

        .register-header p {
            color: #6c757d;
            font-size: 16px;
        }

        /* Registration Steps */
        .registration-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            position: relative;
        }

        .registration-steps::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background: #e9ecef;
            z-index: 1;
        }

        .step {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
        }

        .step-number {
            width: 30px;
            height: 30px;
            background: #e9ecef;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            font-weight: 600;
            color: #6c757d;
            transition: var(--transition);
        }

        .step.active .step-number {
            background: var(--primary-color);
            color: white;
        }

        .step.completed .step-number {
            background: #10b981;
            color: white;
        }

        .step-label {
            font-size: 12px;
            color: #6c757d;
        }

        .step.active .step-label {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* Form */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: var(--secondary-color);
            font-weight: 600;
            font-size: 14px;
        }

        .form-label .required {
            color: #ff4757;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 14px;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(138, 66, 255, 0.1);
        }

        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
            font-size: 16px;
        }

        .input-with-icon .form-control {
            padding-left: 45px;
        }

        .password-field {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #6c757d;
            cursor: pointer;
            font-size: 16px;
        }

        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        /* Username Check */
        .username-check-container {
            position: relative;
        }

        .check-btn {
            position: absolute;
            right: 5px;
            top: 5px;
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: var(--border-radius);
            font-size: 12px;
            cursor: pointer;
            transition: var(--transition);
        }

        .check-btn:hover {
            background: #7a32e6;
        }

        .check-btn.loading {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Referral Section */
        .referral-container {
            margin: 25px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            border: 1px solid #e9ecef;
        }

        .referral-user, .referral-code {
            margin-top: 10px;
            padding: 10px;
            background: rgba(138, 66, 255, 0.1);
            border-radius: var(--border-radius);
            color: var(--primary-color);
            font-size: 14px;
        }

        /* Captcha Section */
        .captcha-container {
            margin: 25px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            border: 1px solid #e9ecef;
        }

        .captcha-header {
            margin-bottom: 15px;
        }

        .captcha-header h4 {
            color: var(--secondary-color);
            margin-bottom: 5px;
        }

        .captcha-header p {
            color: #6c757d;
            font-size: 14px;
        }

        .captcha-body {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .captcha-image {
            flex: 1;
            height: 60px;
            background: white;
            border-radius: var(--border-radius);
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .captcha-refresh-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            font-size: 14px;
        }

        .captcha-refresh-btn:hover {
            background: #5a6268;
        }

        .captcha-refresh-btn.loading {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Terms & Conditions */
        .terms-container {
            margin: 25px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            border: 1px solid #e9ecef;
        }

        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .terms-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-color);
            cursor: pointer;
            margin-top: 3px;
            flex-shrink: 0;
        }

        .terms-text {
            color: #6c757d;
            font-size: 14px;
            line-height: 1.5;
        }

        .terms-text a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .terms-text a:hover {
            text-decoration: underline;
        }

        /* Buttons */
        

        .btn--primary {
            background: var(--primary-color);
            color: white;
            width: 100%;
        }

        .btn--primary:hover {
            background: #7a32e6;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(138, 66, 255, 0.2);
        }

        .btn--primary:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn--secondary {
            background: #6c757d;
            color: white;
        }

        .btn--secondary:hover {
            background: #5a6268;
        }

        /* Error Messages */
        .form-error {
            color: #ff4757;
            font-size: 12px;
            margin-top: 5px;
            display: block;
            min-height: 18px;
        }

        .form-success {
            color: #10b981;
            font-size: 12px;
            margin-top: 5px;
            display: block;
            min-height: 18px;
        }

        /* Login Link */
        .login-link {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .login-link p {
            color: #6c757d;
            font-size: 14px;
        }

        .login-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .login-link a:hover {
            text-decoration: underline;
        }

        /* Form Steps */
        .form-step {
            display: none;
        }

        .form-step.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        /* Navigation Buttons */
        .form-navigation {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .form-navigation 

        /* Password Strength */
        .password-strength {
            height: 4px;
            background: #e9ecef;
            border-radius: 2px;
            margin-top: 5px;
            overflow: hidden;
        }

        .strength-meter {
            height: 100%;
            width: 0;
            border-radius: 2px;
            transition: var(--transition);
        }

        .strength-weak { background: #ff4757; width: 25%; }
        .strength-fair { background: #ffa502; width: 50%; }
        .strength-good { background: #2ed573; width: 75%; }
        .strength-strong { background: #1e90ff; width: 100%; }

        .strength-text {
            font-size: 12px;
            color: #6c757d;
            margin-top: 5px;
            text-align: right;
        }

        /* Success Message */
        .success-message {
            text-align: center;
            padding: 40px 20px;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 32px;
            color: white;
        }

        /* Error States */
        .form-control.error {
            border-color: #ff4757;
        }

        /* Animations */
        .fade-in {
            animation: fadeIn 0.5s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        
        /* Responsive Design for registration */
        @media (max-width: 992px) {
            .register-container {
                flex-direction: column;
                min-height: auto;
                max-width: 500px;
                margin: 20px auto;
            }
            
            .register-left,
            .register-right {
                padding: 30px;
            }
            
            .register-left {
                order: 1;
            }
            
            .register-right {
                order: 2;
                max-height: none;
                padding-top: 40px; /* Reset padding-top */
            }
            
            .stats-container {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 768px) {
            .stats-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .registration-page-wrapper {
                padding: 10px;
            }
            
            .register-container {
                margin: 10px auto;
            }
            
            .register-left,
            .register-right {
                padding: 20px;
            }
        }
        
        
        /* Footer */
        .main-footer {
            background: linear-gradient(180deg, var(--secondary-color) 0%, #1a1a24 100%);
            color: white;
            padding: 80px 0 30px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 800;
            color: white;
            margin-bottom: 20px;
        }

        .footer-logo .logo-icon {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            color: white;
        }

        .footer-about {
            opacity: 0.8;
            margin-bottom: 25px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

        .footer-heading {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 3px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent-color);
            padding-left: 5px;
        }

        .footer-contact li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 15px;
            color: rgba(255, 255, 255, 0.8);
        }

        .footer-contact li i {
            margin-right: 10px;
            color: var(--accent-color);
            margin-top: 5px;
        }

        .copyright {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 30px;
            margin-top: 50px;
            text-align: center;
            opacity: 0.7;
            font-size: 0.9rem;
        }
        /* Responsive Footer */
        @media (max-width: 992px) {
            .main-footer {
                padding: 50px 0 25px;
            }
            
            .col-lg-4, .col-lg-3, .col-lg-2 {
                flex: 0 0 50%;
                max-width: 50%;
            }
            
            .mb-5 {
                margin-bottom: 2.5rem !important;
            }
        }

        @media (max-width: 768px) {
            .main-footer {
                padding: 40px 0 20px;
            }
            
            .col-lg-4, .col-lg-3, .col-lg-2, .col-md-6 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            .footer-heading {
                font-size: 16px;
            }
            
            .footer-about {
                font-size: 13px;
            }
            
            .footer-links a,
            .footer-contact span {
                font-size: 13px;
            }
            
            .copyright p {
                font-size: 12px;
            }
        }

        @media (max-width: 576px) {
            .main-footer {
                padding: 30px 0 15px;
            }
            
            .social-links {
                justify-content: center;
            }
            
            .footer-logo {
                justify-content: center;
            }
            
            .footer-heading {
                text-align: center;
            }
            
            .footer-heading::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .footer-links {
                text-align: center;
            }
            
            .footer-contact li {
                justify-content: center;
                text-align: center;
            }
        }
        
        /* Header Styles */
        .main-header {
            background: white;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            /* position: fixed; */
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: var(--transition);
            width: 100%;
        }

        .main-header.scrolled {
            padding: 10px 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .navbar {
            padding: 20px 0;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-color);
        }

        .navbar-brand .logo-icon {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            color: white;
        }

        .nav-link {
            font-weight: 500;
            padding: 10px 20px !important;
            margin: 0 5px;
            border-radius: var(--border-radius-sm);
            transition: var(--transition);
        }

        .nav-link:hover, .nav-link.active {
            background: rgba(138, 66, 255, 0.1);
            color: var(--primary-color);
        }

        .navbar-toggler {
            border: none;
            padding: 8px 10px;
            border-radius: var(--border-radius-sm);
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28138, 66, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

