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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 1rem;
            overflow: hidden;
            background: #f5f5f5;
            position: relative;
            width: 100%;
            max-width: 100vw;
        }

        /* Animated Bubbles Background - REMOVED for no flicker */
        body::before {
            display: none !important; /* Disabled - no flicker */
        }

        .bubbles-container {
            display: none !important; /* Disabled - no flicker */
        }

        .bubble {
            display: none !important; /* Disabled - no flicker */
        }

        .bubble:nth-child(1) {
            width: 120px;
            height: 120px;
            left: 10%;
            top: 20%;
            animation-delay: 0s;
        }

        .bubble:nth-child(2) {
            width: 80px;
            height: 80px;
            left: 80%;
            top: 60%;
            animation-delay: 2s;
        }

        .bubble:nth-child(3) {
            width: 150px;
            height: 150px;
            left: 60%;
            top: 10%;
            animation-delay: 4s;
        }

        .bubble:nth-child(4) {
            width: 100px;
            height: 100px;
            left: 20%;
            top: 70%;
            animation-delay: 6s;
        }

        .bubble:nth-child(5) {
            width: 90px;
            height: 90px;
            left: 85%;
            top: 30%;
            animation-delay: 8s;
        }

        .bubble:nth-child(6) {
            width: 110px;
            height: 110px;
            left: 50%;
            top: 80%;
            animation-delay: 10s;
        }

        @@keyframes float-bubble {
            0%, 100% {
                transform: translate(0, 0) scale(1);
                opacity: 0.3;
            }
            25% {
                transform: translate(30px, -30px) scale(1.1);
                opacity: 0.4;
            }
            50% {
                transform: translate(-20px, 20px) scale(0.9);
                opacity: 0.35;
            }
            75% {
                transform: translate(20px, 30px) scale(1.05);
                opacity: 0.4;
            }
        }

        /* Main Container - Joined Cards */
        .login-container-main {
            display: flex;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            z-index: 1;
            position: relative;
            max-height: 85vh;
            box-sizing: border-box;
        }

        /* Left Panel - Red Card (40%) */
        .login-visual-panel {
            width: 40%;
            position: relative;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 2.5rem 2rem;
            min-height: 550px;
        }

        .visual-content-wrapper {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .visual-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.2;
        }

        .visual-background::before {
            content: '';
            position: absolute;
            width: 350px;
            height: 350px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
            top: -80px;
            left: -80px;
        }

        .visual-background::after {
            content: '';
            position: absolute;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
            bottom: -40px;
            right: -40px;
        }

        .visual-content {
            position: relative;
            z-index: 2;
            color: white;
            width: 100%;
        }

        .brand-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            background: white;
            border-radius: 12px;
            padding: 1rem 1.5rem;
            margin-bottom: 2.5rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            width: fit-content;
        }

        .brand-badge-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
        }

        .brand-badge-text {
            display: flex;
            flex-direction: column;
        }

        .brand-badge-text .brand-name {
            font-weight: 800;
            font-size: 1.25rem;
            color: #111827;
            line-height: 1.2;
        }

        .brand-badge-text .brand-subtitle {
            font-weight: 500;
            font-size: 0.75rem;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .visual-title {
            font-size: 2.25rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
            color: white;
        }

        .visual-description {
            font-size: 0.9375rem;
            line-height: 1.6;
            opacity: 0.95;
            margin-bottom: 2rem;
            max-width: 100%;
            color: white;
        }

        .visual-features {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .visual-features li {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            font-size: 0.875rem;
            opacity: 0.95;
            font-weight: 500;
            color: white;
        }
        
        .visual-features li i {
            color: white;
            margin-right: 0.875rem;
            font-size: 1.25rem;
        }

        .visual-features li:last-child {
            margin-bottom: 0;
        }

        .visual-features li i {
            font-size: 1.375rem;
            margin-right: 0.875rem;
            width: 28px;
            flex-shrink: 0;
            opacity: 1;
        }

        /* Right Panel - White Form Card (60%) */
        .login-form-panel {
            width: 60%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 2.5rem;
            overflow: hidden;
            position: relative;
            min-height: 550px;
        }

        .login-card {
            width: 100%;
            max-width: 450px;
            background: transparent;
            padding: 0;
            margin: 0 auto;
            box-shadow: none;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            box-sizing: border-box;
        }


        .role-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            background: #f3f4f6;
            padding: 0.25rem;
            border-radius: 12px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .role-tab {
            flex: 1;
            padding: 0.6875rem 0.875rem;
            border: none;
            background: transparent;
            border-radius: 8px;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .role-tab.active {
            background: white;
            color: #dc2626;
            color: var(--primary, #dc2626);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .role-tab:hover:not(.active) {
            color: #111827;
        }

        .client-portal-link {
            color: #dc2626;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.2s ease;
            display: inline-flex;
            align-items: center;
        }

        .client-portal-link:hover {
            color: #991b1b;
            text-decoration: underline;
        }

        .login-header {
            margin-bottom: 1.5rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .login-header h1 {
            font-size: 1.75rem;
            font-weight: 700;
            color: #111827;
            color: var(--text-primary, #111827);
            margin-bottom: 0.375rem;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .login-header p {
            color: #6b7280;
            color: var(--text-muted, #6b7280);
            font-size: 0.8125rem;
            font-weight: 400;
            line-height: 1.5;
            margin: 0;
        }

        .form-group-modern {
            margin-bottom: 1rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        .form-group-modern:last-of-type {
            margin-bottom: 1.25rem;
        }

        .role-selector {
            margin-bottom: 1.5rem;
            width: 100%;
        }

        .form-label-modern {
            display: flex;
            align-items: center;
            font-weight: 600;
            font-size: 0.8125rem;
            color: #111827;
            color: var(--text-primary, #111827);
            margin-bottom: 0.625rem;
        }

        .form-label-modern i {
            color: #dc2626;
            color: var(--primary, #dc2626);
            margin-right: 0.5rem;
            font-size: 1.125rem;
        }

        .form-control-modern {
            width: 100%;
            max-width: 100%;
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            border: 1.5px solid #e5e7eb;
            border-radius: 8px;
            background: white;
            color: #111827;
            color: var(--text-primary, #111827);
            transition: all 0.2s ease;
            box-sizing: border-box;
        }

        .form-control-modern:hover {
            border-color: #d1d5db;
        }

        .form-control-modern:focus {
            border-color: #dc2626;
            border-color: var(--primary, #dc2626);
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
            outline: none;
        }

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

        .password-input-wrapper {
            position: relative;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .password-input-wrapper .form-control-modern {
            padding-right: 3rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .password-toggle {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #6b7280;
            color: var(--text-muted, #6b7280);
            cursor: pointer;
            padding: 0.5rem;
            transition: color 0.2s ease;
            font-size: 1.125rem;
        }

        .password-toggle:hover {
            color: #dc2626;
            color: var(--primary, #dc2626);
        }

        .show-password-wrapper {
            display: flex;
            align-items: center;
            margin-top: 0.375rem;
            margin-bottom: 1.25rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .show-password-checkbox {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 0.875rem;
            color: #6b7280;
            color: var(--text-muted, #6b7280);
        }

        .show-password-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 0.5rem;
            cursor: pointer;
            accent-color: #dc2626;
        }

        .btn-login {
            width: 100%;
            max-width: 100%;
            padding: 0.75rem 1.25rem;
            background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
            background: var(--gradient-primary, linear-gradient(135deg, #dc2626 0%, #991b1b 100%));
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1.25rem;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
            box-sizing: border-box;
        }

        .btn-login:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
        }

        .btn-login:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
        }

        .alert-danger-modern {
            background: rgba(239, 68, 68, 0.1);
            border: 2px solid #dc2626;
            border: 2px solid var(--danger, #dc2626);
            color: #dc2626;
            color: var(--danger, #dc2626);
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .text-danger {
            font-size: 0.8125rem;
            margin-top: 0.5rem;
            display: block;
            color: #dc2626;
            color: var(--danger, #dc2626);
        }

        .login-footer {
            margin-top: 1.25rem;
            text-align: center;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        #loginForm {
            width: 100%;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            box-sizing: border-box;
        }

        .forgot-password-link {
            color: #6b7280;
            color: var(--text-muted, #6b7280);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .forgot-password-link:hover {
            color: #dc2626;
            color: var(--primary, #dc2626);
        }

        /* Responsive Design */
        @@media (max-width: 1200px) {
            body {
                padding: 1.5rem;
            }

            .login-container-main {
                max-width: 100%;
            }
        }

        @@media (max-width: 992px) {
            body {
                padding: 1rem;
                overflow-x: hidden;
            }

            .login-container-main {
                flex-direction: column;
                max-width: 100%;
                max-height: none;
                border-radius: 20px;
            }

            .login-visual-panel {
                display: none; /* Hide visual panel on mobile/tablet */
            }

            .visual-content-wrapper {
                max-width: 100%;
            }

            .brand-badge {
                margin-bottom: 2rem;
            }

            .visual-title {
                font-size: 2.25rem;
                margin-bottom: 1rem;
            }

            .visual-description {
                font-size: 0.9375rem;
                margin-bottom: 2rem;
            }

            .visual-features li {
                margin-bottom: 1rem;
                font-size: 0.875rem;
            }

            .login-form-panel {
                width: 100%;
                padding: 2rem 1.75rem;
                min-height: auto;
                justify-content: center;
                align-items: center;
                border-radius: 20px; /* Add border radius when visual panel is hidden */
            }

            .login-card {
                max-width: 100%;
            }

            .login-header h1 {
                font-size: 1.75rem;
                margin-bottom: 0.375rem;
            }

            .login-header {
                margin-bottom: 1.5rem;
            }

            .login-header-top {
                margin-bottom: 1.25rem;
            }

            .role-tabs {
                margin-bottom: 1.5rem;
            }

            .form-group-modern {
                margin-bottom: 1.125rem;
            }

            .show-password-wrapper {
                margin-bottom: 1.125rem;
            }

            .btn-login {
                margin-top: 1.25rem;
            }
        }

        @@media (max-width: 768px) {
            body {
                padding: 0.75rem;
            }

            .login-container-main {
                border-radius: 16px;
            }

            .login-visual-panel {
                padding: 2rem 1.5rem;
                min-height: auto;
            }

            .brand-badge {
                padding: 0.875rem 1.25rem;
                margin-bottom: 1.75rem;
            }

            .visual-title {
                font-size: 2rem;
            }

            .visual-description {
                font-size: 0.875rem;
                margin-bottom: 1.75rem;
            }

            .visual-features li {
                margin-bottom: 0.875rem;
            }

            .login-form-panel {
                padding: 2rem 1.5rem;
                align-items: flex-start;
            }

            .login-header-top {
                margin-bottom: 1.25rem;
            }

            .login-header h1 {
                font-size: 1.75rem;
                margin-bottom: 0.5rem;
            }

            .login-header {
                margin-bottom: 1.75rem;
            }

            .role-tabs {
                margin-bottom: 1.75rem;
            }

            .form-group-modern {
                margin-bottom: 1.25rem;
            }

            .show-password-wrapper {
                margin-bottom: 1.25rem;
            }

            .btn-login {
                margin-top: 1.5rem;
            }
        }

        @@media (max-width: 576px) {
            body {
                padding: 0.5rem;
                overflow-x: hidden;
            }

            .login-container-main {
                border-radius: 12px;
                max-width: 100%;
            }

            .login-visual-panel {
                padding: 1.75rem 1.25rem;
                min-height: auto;
            }

            .brand-badge {
                padding: 0.75rem 1rem;
                margin-bottom: 1.5rem;
                gap: 0.625rem;
            }

            .brand-badge-icon {
                width: 28px;
                height: 28px;
                font-size: 1.125rem;
            }

            .brand-badge-text .brand-name {
                font-size: 0.9375rem;
            }

            .brand-badge-text .brand-subtitle {
                font-size: 0.625rem;
            }

            .visual-title {
                font-size: 1.75rem;
                margin-bottom: 0.875rem;
            }

            .visual-description {
                font-size: 0.8125rem;
                margin-bottom: 1.5rem;
                line-height: 1.5;
            }

            .visual-features li {
                font-size: 0.8125rem;
                margin-bottom: 0.75rem;
            }

            .visual-features li i {
                font-size: 1.25rem;
                width: 24px;
                margin-right: 0.75rem;
            }

            .login-form-panel {
                padding: 1.5rem 1.25rem;
                overflow-x: hidden;
            }

            .login-card {
                max-width: 100%;
            }

            .login-header {
                margin-bottom: 1.5rem;
            }

            .login-header h1 {
                font-size: 1.5rem;
                margin-bottom: 0.375rem;
            }

            .login-header p {
                font-size: 0.8125rem;
            }

            .login-header-top {
                margin-bottom: 1.25rem;
            }

            .role-tabs {
                flex-direction: column;
                gap: 0.25rem;
                margin-bottom: 1.5rem;
                padding: 0.25rem;
                max-width: 100%;
            }

            .role-tab {
                padding: 0.625rem 1rem;
                font-size: 0.8125rem;
            }

            .form-group-modern {
                margin-bottom: 1.25rem;
                max-width: 100%;
            }
            
            .form-group-modern:last-of-type {
                margin-bottom: 1.5rem;
            }

            .form-label-modern {
                font-size: 0.8125rem;
                margin-bottom: 0.625rem;
            }

            .form-control-modern,
            .form-select-modern {
                padding: 0.8125rem 0.875rem;
                font-size: 0.875rem;
                max-width: 100%;
            }

            .password-input-wrapper {
                max-width: 100%;
            }

            .show-password-wrapper {
                margin-top: 0.375rem;
                margin-bottom: 1rem;
                max-width: 100%;
            }

            .show-password-checkbox {
                font-size: 0.8125rem;
            }

            .btn-login {
                padding: 0.875rem 1.25rem;
                font-size: 0.875rem;
                margin-top: 1.5rem;
                max-width: 100%;
            }

            .login-footer {
                margin-top: 1rem;
                max-width: 100%;
            }

            .forgot-password-link {
                font-size: 0.8125rem;
            }

            #loginForm {
                max-width: 100%;
            }
        }
