/* ==========================================================================
           RESET & BASE STYLES
           ========================================================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Arial', sans-serif;
            background: #f8fafc;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            line-height: 1.6;
        }

        /* ==========================================================================
           HEADER STYLES
           ========================================================================== */
        .header {
            background: white;
            padding: 1rem 2rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: transform 0.2s ease;
        }

        .logo:hover {
            transform: scale(1.02);
        }

        .logo img {
            height: 40px;
            width: auto;
        }

        .header-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .btn-header {
           padding: 0.4rem 1rem;
           border-radius: 8px;
           text-decoration: none;
           font-weight: 500;
           transition: all 0.2s ease;
           border: none;
           cursor: pointer;
           font-size: 0.875rem;
           white-space: nowrap;
       }

        .btn-login {
            background: #005BF0;
            color: white;
        }

        .btn-login:hover {
            background: #005BF0;
            color: white;
        }

        .btn-signup {
            background: #f3f4f6;
            color: #374151;
        }

        .btn-signup:hover {
            background: #e5e7eb;
            color: #374151;
        }

        /* ==========================================================================
           MAIN CONTENT STYLES
           ========================================================================== */
        .page-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .signup-container {
            background: white;
            border-radius: 16px;
            padding: 3rem 2.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            width: 100%;
            max-width: 600px;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
            animation: fadeInUp 0.6s ease-out;
        }

        .signup-container:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            transform: translateY(-2px);
        }

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

        .page-title {
            font-size: 2rem;
            font-weight: 700;
            color: #1f2937;
            text-align: center;
            margin-bottom: 2rem;
        }

        /* ==========================================================================
           FORM STYLES
           ========================================================================== */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: #374151;
            margin-bottom: 0.5rem;
        }

        .form-control {
            width: 100%;
            padding: 0.875rem 1rem 0.875rem 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 1rem;
            background: white;
            transition: all 0.2s ease;
            outline: none;
            position: relative;
        }

        .form-control:focus {
            border-color: #005BF0;
            box-shadow: 0 0 0 3px rgba(0, 91, 240, 0.1);
            transform: translateY(-1px);
        }

        .form-control::placeholder {
            color: #9ca3af;
        }

        .form-control.is-invalid {
            border-color: #ef4444;
            animation: shake 0.5s ease-in-out;
        }

        /* Input Icons */
        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #a0aec0;
            transition: color 0.3s ease;
            z-index: 2;
        }

        .form-control:focus + .input-icon {
            color: #005BF0;
        }

        /* ==========================================================================
           RADIO BUTTON STYLES
           ========================================================================== */
        .account-type-group {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
            padding: 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .form-check:hover {
            border-color: #005BF0;
            background-color: #f8f9ff;
        }

        .form-check.selected {
            border-color: #005BF0;
            background-color: #f0f4ff;
        }

        .form-check-input {
            width: 20px;
            height: 20px;
            border: 2px solid #e5e7eb;
            border-radius: 50%;
            cursor: pointer;
            position: relative;
            margin: 0;
            appearance: none;
            background: white;
        }

        .form-check-input:checked {
            background-color: #005BF0;
            border-color: #005BF0;
        }

        .form-check-input:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
        }

        .form-check-label {
            font-size: 0.875rem;
            font-weight: 500;
            color: #374151;
            cursor: pointer;
            user-select: none;
        }

        /* ==========================================================================
           CUSTOM SELECT STYLES
           ========================================================================== */
        .custom-select-wrapper {
            position: relative;
        }

        .custom-select-wrapper select {
            appearance: none;
            background-image: url("data:image/svg+xml, %3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 1rem center;
            background-repeat: no-repeat;
            background-size: 1.5em 1.5em;
            padding: 0.875rem 3rem 0.875rem 1rem;
        }

        .custom-select-wrapper .input-icon {
            left: 1rem;
        }

        /* ==========================================================================
           SUBMIT BUTTON STYLES
           ========================================================================== */
        .btn-primary {
            width: 100%;
            background: linear-gradient(135deg, #005BF0, #005BF0);
            color: white;
            border: none;
            padding: 0.875rem 2rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 1rem;
            position: relative;
            overflow: hidden;
            min-width: 120px;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 91, 240, 0.3);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-primary:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
        }

        /* ==========================================================================
           CHECKBOX STYLES
           ========================================================================== */
        .checkbox-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin: 1.5rem 0;
        }

        .checkbox-wrapper input[type="checkbox"] {
            width: 18px;
            height: 18px;
            border: 2px solid #e5e7eb;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 0.125rem;
            appearance: none;
            background: white;
            position: relative;
        }

        .checkbox-wrapper input[type="checkbox"]:checked {
            background-color: #005BF0;
            border-color: #005BF0;
        }

        .checkbox-wrapper input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .checkbox-label {
            font-size: 0.875rem;
            color: #374151;
            line-height: 1.5;
        }

        .checkbox-label a {
            color: #005BF0;
            text-decoration: none;
            font-weight: 500;
        }

        .checkbox-label a:hover {
            color: #005BF0;
            text-decoration: underline;
        }

        /* ==========================================================================
           FOOTER LINK STYLES
           ========================================================================== */
        .signin-link-wrapper {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e5e7eb;
            color: #6b7280;
            font-size: 0.875rem;
        }

        .signin-link {
            color: #005BF0;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s ease;
        }

        .signin-link:hover {
            color: #005BF0;
            text-decoration: underline;
        }

        /* ==========================================================================
           ERROR STATES
           ========================================================================== */
        .error .form-control,
        .form-control.is-invalid {
            border-color: #ef4444;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% {
                transform: translateX(0);
            }
            25% {
                transform: translateX(-5px);
            }
            75% {
                transform: translateX(5px);
            }
        }

        .error-message,
        .invalid-feedback {
            color: #ef4444;
            font-size: 0.75rem;
            margin-top: 0.25rem;
            display: none;
        }

        .error .error-message,
        .form-control.is-invalid ~ .invalid-feedback {
            display: block;
        }

        .text-danger,
        .alert-error {
            color: #ef4444;
            font-size: 0.875rem;
            margin: 1rem 0;
            padding: 0.75rem;
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 8px;
        }

        /* ==========================================================================
           LOADING STATE
           ========================================================================== */
        .loading {
            pointer-events: none;
            opacity: 0.7;
        }

        .loading .btn-primary {
            background: #9ca3af;
            cursor: not-allowed;
        }

        /* ==========================================================================
           ACCESSIBILITY
           ========================================================================== */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Focus styles for better accessibility */
        .form-control:focus,
        .btn-primary:focus,
        .form-check-input:focus,
        .checkbox-wrapper input[type="checkbox"]:focus {
            outline: 2px solid #005BF0;
            outline-offset: 2px;
        }

        /* ==========================================================================
           RECAPTCHA STYLES
           ========================================================================== */
        .recaptcha-container {
            margin: 1rem 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Fix reCAPTCHA badge positioning */
        .grecaptcha-badge {
            position: fixed !important;
            bottom: 14px !important;
            right: 14px !important;
            z-index: 999999 !important;
            opacity: 0.8 !important;
            transition: opacity 0.3s ease !important;
        }

        .grecaptcha-badge:hover {
            opacity: 1 !important;
        }

        /* Custom reCAPTCHA container */
        .g-recaptcha {
            margin: 1rem 0;
        }

        /* Fix for overlapping content */
        body {
            padding-bottom: 80px; /* Add space for reCAPTCHA badge */
        }

        /* ==========================================================================
           RESPONSIVE DESIGN
           ========================================================================== */
        @media (max-width: 768px) {
            .page-wrapper {
                padding: 0px;
            }
            
            .header {
                padding: 1rem;
            }

            .signup-container {
                margin: 1rem;
                padding: 2rem 1.5rem;
            }

            .page-title {
                font-size: 1.5rem;
            }

            .account-type-group {
                flex-direction: column;
                gap: 1rem;
            }

            .form-control {
                padding: 0.875rem 1rem 0.875rem 3rem;
            }

            body {
                padding-bottom: 100px;
            }

            .grecaptcha-badge {
                bottom: 10px !important;
                right: 10px !important;
                transform: scale(0.9) !important;
            }
        }

        /* Mobile Responsive Design - Enhanced */
        @media (max-width: 640px) {
            .header {
                padding: 0.75rem;
            }
            
            .logo img {
                height: 32px;
            }
            
            .btn-header {
                padding: 0.4rem 1rem;
                font-size: 0.875rem;
            }
            
            .page-wrapper {
                padding: 0.5rem;
                align-items: flex-start;
                padding-top: 2rem;
            }
            
            .signup-container {
                padding: 1.5rem 1rem;
                margin: 0;
                max-width: none;
                border-radius: 12px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }
            
            .page-title {
                font-size: 1.5rem;
                margin-bottom: 1.25rem;
            }
            
            .form-group {
                margin-bottom: 1rem;
            }
            
            .form-control {
                padding: 0.75rem 0.875rem 0.75rem 2.75rem;
                font-size: 0.9rem;
            }
            
            .input-icon {
                left: 0.875rem;
            }
            
            .btn-primary {
                padding: 0.875rem;
                font-size: 0.95rem;
            }
            
            .signin-link-wrapper {
                padding-top: 1.25rem;
                font-size: 0.8rem;
            }

            .account-type-group {
                gap: 0.75rem;
            }

            .form-check {
                padding: 0.75rem;
            }

            .custom-select-wrapper select {
                padding: 0.75rem 2.75rem 0.75rem 2.75rem;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 480px) {
            .header-actions {
                gap: 0.25rem;
            }
            
            .btn-header {
                padding: 0.3rem 0.6rem;
                font-size: 0.75rem;
            }
            
            .page-wrapper {
                padding: 0.25rem;
                padding-top: 1.5rem;
            }
            
            .signup-container {
                padding: 1.25rem 0.875rem;
            }
            
            .page-title {
                font-size: 1.375rem;
            }
            
            .form-control {
                padding: 0.7rem 0.75rem 0.7rem 2.5rem;
            }
            
            .input-icon {
                left: 0.75rem;
            }

            .custom-select-wrapper select {
                padding: 0.7rem 2.5rem 0.7rem 2.5rem;
            }
        }

        /* Landscape orientation adjustments */
        @media (max-height: 600px) and (orientation: landscape) {
            .page-wrapper {
                padding: 0.5rem;
                align-items: center;
            }
            
            .signup-container {
                padding: 1rem;
            }
            
            .page-title {
                font-size: 1.25rem;
                margin-bottom: 1rem;
            }
            
            .form-group {
                margin-bottom: 0.75rem;
            }
            
            .signin-link-wrapper {
                padding-top: 1rem;
            }
        }

        /* Tablet adjustments */
        @media (min-width: 641px) and (max-width: 1024px) {
            .header {
                padding: 1rem 1.5rem;
            }
            
            .logo img {
                height: 36px;
            }
            
            .btn-header {
                padding: 0.5rem 1.25rem;
                font-size: 0.9rem;
            }
            
            .signup-container {
                padding: 2.5rem 2rem;
                max-width: 600px;
            }
            
            .page-title {
                font-size: 1.875rem;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .form-control,
            .btn-primary {
                border-width: 1px;
            }
        }

        /* Touch device improvements */
        @media (hover: none) and (pointer: coarse) {
            .form-control {
                min-height: 48px;
            }
            
            .btn-primary {
                min-height: 48px;
            }
       

            .form-check {
                min-height: 48px;
            }

            .form-check-input {
                min-width: 24px;
                min-height: 24px;
            }

            .checkbox-wrapper input[type="checkbox"] {
                min-width: 24px;
                min-height: 24px;
            }
        }
          /* Fix reCAPTCHA badge positioning */
    .grecaptcha-badge {
        position: fixed !important;
        bottom: 14px !important;
        right: 14px !important;
        z-index: 999999 !important;
        opacity: 0.8 !important;
        transition: opacity 0.3s ease !important;
    }

    .grecaptcha-badge:hover {
        opacity: 1 !important;
    }

    /* Alternative: Hide the badge completely (not recommended) */
    .grecaptcha-badge {
        visibility: hidden !important;
    }

    /* Better approach: Move badge to inline position */
    .g-recaptcha {
        margin: 1rem 0;
    }

    /* Custom reCAPTCHA container */
    .recaptcha-container {
        margin: 1rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Mobile responsive fix */
    @media (max-width: 768px) {
        .grecaptcha-badge {
            bottom: 10px !important;
            right: 10px !important;
            transform: scale(0.9) !important;
        }
    }
