        /* Fonts are loaded via HTML head instead of @import for better performance */

        :root {
            --bg-color: #f5f5f5;
            --text-color: #333;
            --primary-color: #FF6B35;
            --secondary-color: #6c757d;
            --light-gray: #e9ecef;
            --border-color: #dee2e6;
            --chat-bg: #fff;
            --system-msg-bg: #f8f9fa;
            --user-msg-bg: #FF6B35;
            --user-msg-text: #fff;
            --input-bg: #fff;
            --input-border: #dee2e6;
            --button-hover: #FF8551;
            --progress-bg: #e9ecef;
            --progress-fill: #FF6B35;
            --chat-header-bg: #FF6B35;
            --chat-header-text: #fff;
        }

        
        body {
            font-family: "Montserrat", sans-serif;
        }

        /* Override body flex from reset.css for auth page */
        body.page-default {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background: #f5f5f5;
            display: block; /* Override flex from reset.css */
        }
        
        /* Header Layout Styles */
        .thematic-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px !important;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--bg-color, #f5f5f5);
            border-bottom: 1px solid var(--border-color, #ddd);
            z-index: 100;
            transition: background 0.3s ease, border-color 0.3s ease;
        }


        .header-left {
            display: flex;
            align-items: center;
        }

        .header-center {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            pointer-events: none;
        }

        .header-center .logo {
            pointer-events: auto;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            justify-content: space-between;
        }

        /* Logo Styles */
        .logo a {
            font-size: 1.2rem !important;
            font-weight: 700;
            color: var(--text-color, #333);
            text-decoration: none;
            transition: color 0.3s ease;
        }


        .logo a:hover {
            color: var(--primary-color, #FF6B35);
        }

        /* Auth System Styles */
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
            z-index: 10000;
        }

        .auth-btn {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 700;
            transition: all 0.3s ease;
            cursor: pointer;
            background: transparent;
            color: #666;
        }

        .auth-btn:hover {
            color: var(--primary-color, #FF6B35);
            transform: translateY(-2px);
        }

        .auth-btn.primary {
            background: var(--primary-color, #FF6B35);
            color: white;
        }

        .auth-btn.primary:hover {
            background: var(--button-hover, #FF8551);
        }

        .user-dropdown-content.show {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }


        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 1rem;
            z-index: 10000;
            position: relative;
        }



        /* Footer Styles */
        footer {
            padding: 20px 10px;
            text-align: center;
            width: 100%;
            color: #333;
            flex-shrink: 0;
            background: #fff;
            box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
        }


        .footer-content {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #333;
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: color 0.3s ease;
            font-family: "Montserrat", sans-serif;
        }


        .footer-links a:hover {
            color: #666;
        }

        .footer-divider {
            color: #333;
            font-size: 1.2rem;
            font-weight: 300;
            font-family: "Montserrat", sans-serif;
        }


        .footer-social {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .footer-social a {
            color: #333;
            font-size: 1.2rem;
            transition: transform 0.3s ease, color 0.3s ease;
        }


        .footer-social a:hover {
            color: #666;
            transform: scale(1.2);
        }

        .footer-copyright {
            font-size: 0.8rem;
            color: #666;
            margin-top: 1rem;
            font-family: "Montserrat", sans-serif;
        }


        /* Auth Page Styles */
        .auth-container {
            min-height: 70vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            margin-top: 80px; /* Space for fixed header */
        }

        /* Compact Form Styles */
        .compact-form-group {
            margin-bottom: 1.5rem;
            text-align: left;
        }

        .compact-form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #333;
            font-size: 0.9rem;
            font-family: "Montserrat", sans-serif;
        }

        .compact-form-group input {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            font-family: "Montserrat", sans-serif;
            box-sizing: border-box;
        }

        .compact-form-group input:focus {
            outline: none;
            border-color: #FF6B35;
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        /* Compact Button Styles */
        .compact-btn {
            width: 100%;
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: "Montserrat", sans-serif;
            margin-bottom: 0.5rem;
        }

        .compact-btn-primary {
            background: #FF6B35;
            color: white;
        }

        .compact-btn-primary:hover {
            background: #FF8551;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        }

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

        .compact-btn-google {
            background: white;
            color: #333;
            border: 2px solid #e1e5e9;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .compact-btn-google:hover {
            border-color: #FF6B35;
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
        }

        .compact-btn-google span {
            font-weight: 700;
            color: #4285f4;
        }

        /* Compact Divider */
        .compact-divider {
            text-align: center;
            margin: 1.5rem 0;
            position: relative;
            color: #666;
        }

        .compact-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #e1e5e9;
        }

        .compact-divider span {
            background: white;
            padding: 0 1rem;
            position: relative;
            z-index: 1;
        }

        .auth-card {
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            padding: 3rem;
            width: 100%;
            max-width: 450px;
            text-align: center;
            border: 1px solid #e1e5e9;
            font-family: "Montserrat", sans-serif;
        }

        .auth-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .auth-logo {
            font-size: 3rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 0.5rem;
            font-family: "Montserrat", sans-serif;
        }

        .auth-subtitle {
            color: #666;
            font-size: 1.1rem;
            font-family: "Montserrat", sans-serif;
        }

        .auth-tabs {
            display: flex;
            margin-bottom: 1rem;
            border-radius: 6px;
            overflow: hidden;
            background: #f8f9fa;
        }

        .auth-tab {
            flex: 1;
            padding: 0.4rem;
            text-align: center;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-family: "Montserrat", sans-serif;
            font-size: 0.8rem;
        }

        .auth-tab.active {
            background: #FF6B35;
            color: white;
        }

        .auth-tab:hover:not(.active) {
            background: rgba(255, 107, 53, 0.1);
            color: #FF6B35;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #333;
            font-family: "Montserrat", sans-serif;
        }

        .form-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: "Montserrat", sans-serif;
        }

        .form-input:focus {
            outline: none;
            border-color: #FF6B35;
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
            transform: translateY(-2px);
        }

        .auth-button {
            width: 100%;
            padding: 0.8rem 2rem;
            background: #FF6B35;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: "Montserrat", sans-serif;
            margin-bottom: 1rem;
        }

        .auth-button:hover {
            background: #FF8551;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        }

        .auth-button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .divider {
            text-align: center;
            margin: 1.5rem 0;
            position: relative;
            color: #666;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #e1e5e9;
        }

        .divider span {
            background: white;
            padding: 0 1rem;
        }

        .google-button {
            width: 100%;
            padding: 1rem;
            background: white;
            color: #333;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-family: "Montserrat", sans-serif;
        }

        .google-button:hover {
            border-color: #FF6B35;
            transform: translateY(-2px);
        }

        .auth-footer {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e1e5e9;
        }

        .auth-footer a {
            color: #666;
            text-decoration: none;
            font-weight: 500;
            font-family: "Montserrat", sans-serif;
        }

        .auth-footer a:hover {
            text-decoration: underline;
        }

        .error-message {
            background: #fee;
            color: #c33;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border: 1px solid #fcc;
            font-family: "Montserrat", sans-serif;
        }

        .success-message {
            background: #efe;
            color: #3c3;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border: 1px solid #cfc;
            font-family: "Montserrat", sans-serif;
        }

        /* Newsletter and Privacy Checkbox Styles */
        .checkbox-group {
            margin-bottom: 1.5rem;
        }

        .checkbox-label {
            display: flex;
            align-items: flex-start;
            cursor: pointer;
            font-size: 0.8rem;
            color: #666;
            font-family: "Montserrat", sans-serif;
            line-height: 1.4;
            word-wrap: break-word;
            hyphens: none;
        }

        .checkbox-label input[type="checkbox"] {
            display: none;
        }

        .checkmark {
            width: 18px;
            height: 18px;
            border: 2px solid #e1e5e9;
            border-radius: 4px;
            margin-right: 10px;
            position: relative;
            background: #fff;
            transition: all 0.3s ease;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .checkbox-label input[type="checkbox"]:checked + .checkmark {
            background: #FF6B35;
            border-color: #FF6B35;
        }

        .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-label:hover .checkmark {
            border-color: #FF6B35;
        }

        .privacy-link {
            color: #666;
            text-decoration: underline;
            cursor: pointer;
            font-weight: 500;
            white-space: nowrap;
        }

        .privacy-link:hover {
            color: #FF6B35;
        }

        .checkbox-group.has-error .checkmark {
            border-color: #dc3545;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
            animation: checkbox-shake-pulse 0.5s ease-in-out;
        }

        .checkbox-group.has-error .checkbox-label {
            color: #dc3545;
        }

        .checkbox-error {
            display: none;
            color: #dc3545;
            font-size: 0.75rem;
            font-weight: 600;
            margin: -1rem 0 1.2rem 28px;
            font-family: "Montserrat", sans-serif;
            animation: fadeIn 0.3s ease-in-out;
        }

        .checkbox-error.visible {
            display: block;
        }

        @keyframes checkbox-shake-pulse {
            0% { 
                transform: translateX(0) scale(1);
                box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
            }
            10% { 
                transform: translateX(-6px) scale(1.05);
                box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.3);
            }
            20% { 
                transform: translateX(6px) scale(1.05);
                box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.3);
            }
            30% { 
                transform: translateX(-6px) scale(1.05);
                box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.3);
            }
            40% { 
                transform: translateX(6px) scale(1.05);
                box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.3);
            }
            50% { 
                transform: translateX(-4px) scale(1.02);
                box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25);
            }
            60% { 
                transform: translateX(4px) scale(1.02);
                box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25);
            }
            70% { 
                transform: translateX(-2px) scale(1.01);
                box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
            }
            80% { 
                transform: translateX(2px) scale(1.01);
                box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
            }
            100% { 
                transform: translateX(0) scale(1);
                box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
            }
        }

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

        /* Privacy Policy Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            background-color: #fff;
            margin: 5% auto;
            padding: 2rem;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            font-family: "Montserrat", sans-serif;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #e1e5e9;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #333;
        }

        .close {
            color: #666;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
        }

        .close:hover {
            color: #333;
        }

        .modal-body {
            color: #666;
            line-height: 1.6;
        }

        .modal-body h3 {
            color: #333;
            font-size: 1.1rem;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .modal-body p {
            margin-bottom: 1rem;
        }

        .modal-body ul {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }

        .modal-body li {
            margin-bottom: 0.5rem;
        }

        @media (max-width: 768px) {
            .modal-content {
                margin: 10% auto;
                padding: 16px;
                width: calc(100% - 16px);
                border-radius: 8px;
            }
            
            .modal-title {
                font-size: 1.3rem;
                line-height: 1.3;
            }
            
            .checkbox-label {
                font-size: 0.75rem;
                line-height: 1.3;
            }
            
            .privacy-link {
                white-space: nowrap;
                display: inline;
            }
        }



        /* New Auth Page Layout */
        .auth-page-layout {
            display: flex;
            min-height: 100vh;
            background: #f5f5f5;
            width: 100%;
            overflow-x: hidden;
        }

        .auth-page-layout .auth-logo {
            position: fixed;
            top: 20px;
            left: 25%;
            transform: translateX(-50%);
            z-index: 1000;
        }

        .auth-page-layout .auth-logo a {
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            text-decoration: none;
            font-family: "Montserrat", sans-serif;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .auth-left-panel {
            flex: 1;
            background: #FF6B35; /* Orange */
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            position: relative;
            min-height: 100vh;
        }

        .steps-container {
            max-width: 500px;
            color: white;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        .steps-container h2 {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
            font-family: "Montserrat", sans-serif;
            color: white;
        }

        .steps-container p {
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 0;
            font-family: "Montserrat", sans-serif;
            color: white;
            opacity: 0.9;
        }

        .steps-indicators {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1.5rem;
        }

        .step-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
        }

        .step-dot.active {
            background: white;
            border-color: white;
            transform: scale(1.2);
        }

        .auth-right-panel {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            background: white;
            min-height: 100vh;
        }

        .compact-login-container {
            width: 100%;
            max-width: 400px;
            padding: 0 1rem;
        }

        .compact-login-header {
            text-align: left;
            margin-bottom: 2rem;
        }

        .compact-login-header h1 {
            font-size: 2rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 0.5rem;
            font-family: "Montserrat", sans-serif;
        }

        .compact-login-header p {
            color: #666;
            margin-bottom: 0;
            font-family: "Montserrat", sans-serif;
        }

        /* User Info & Dropdown */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(102, 102, 102, 0.1);
            border-radius: 20px;
            border: 1px solid rgba(102, 102, 102, 0.2);
            color: #666;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .user-info:hover {
            background: rgba(102, 102, 102, 0.2);
            transform: translateY(-2px);
        }

        .user-avatar {
            width: 24px;
            height: 24px;
            background: #666;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
            color: white;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .auth-page-layout {
                flex-direction: column;
            }

            .auth-left-panel {
                display: none;
            }

            .auth-page-layout .auth-logo {
                position: relative;
                top: 0;
                left: 0;
                text-align: center;
                margin-bottom: 2rem;
            }

            .thematic-header {
                padding: 10px 15px !important;
            }
            
            .header-left {
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
            
            .header-right {
                gap: 0.5rem;
                justify-content: space-between;
            }
            
            .auth-buttons {
                gap: 0.5rem;
                margin-right: auto;
            }
            
            .auth-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }
            
            .user-info {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
                margin-left: auto;
            }
            
            .user-info span {
                display: none;
            }
            
            .user-avatar {
                width: 20px;
                height: 20px;
                font-size: 0.7rem;
            }
            
            .user-dropdown-content {
                top: 70px;
                left: 15px;
                right: auto;
                min-width: 120px;
            }
            
            .user-dropdown-content a,
            .user-dropdown-content button {
                padding: 10px 12px;
                font-size: 0.8rem;
            }
            
            .logo a {
                font-size: 1.1rem !important;
            }
            
            .header-links-content {
                top: 70px;
                right: 15px;
                min-width: 180px;
                max-width: calc(100vw - 30px);
                padding: 12px;
                width: auto;
            }
            
            .header-links {
                width: 100vw;
                height: 100vh;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
            }
            
            .header-links a {
                padding: 10px 0;
                font-size: 0.8rem;
            }
            
            .auth-container {
                padding: 1rem;
                min-height: 50vh;
                margin-top: 70px;
            }
            
            .auth-card {
                padding: 2rem;
                margin: 0.5rem;
                border-radius: 15px;
            }
            
            .auth-logo {
                font-size: 2rem;
            }
            
            .footer-content {
                flex-direction: column;
                gap: 10px;
            }
            
            .footer-links a {
                font-size: 0.8rem;
            }
            
            .footer-divider {
                display: none;
            }
            
            .footer-social a {
                font-size: 1rem;
            }
            
        }
    
