
        /* CSS Variables - Blue and Black Theme (Dark Mode) */
        :root {
            /* New Blue/Black/Dark Theme Variables */
            --bg: #121212;               /* Deep Black/Background */
            --panel: #1f2937;            /* Dark Slate Gray Card */
            --text-light: #ffffff;       /* Pure White text */
            --text-dark: #d1d5db;        /* Light Gray primary text on card */
            --muted: #9ca3af;            /* Muted gray for secondary text */

            --brand: #3b82f6;            /* Vibrant Electric Blue Accent */
            --brand-hover: #2563eb;      /* Slightly Darker Blue Hover */
            
            --input-bg: #374151;         /* Darker input background */
            --input-border: #4b5563;     /* Darker input border */

            /* Theme Usage */
            --bg-color: var(--bg);
            --card-bg: var(--panel);
            --text-primary: var(--text-dark); 
            --text-secondary: var(--muted);
            --text-placeholder: var(--muted);
            --border-color: var(--input-border);
            --accent-color: var(--brand);
            --accent-hover: var(--brand-hover);
            --button-text: #ffffff; 

            /* Styling */
            --radius: 16px;
            --shadow: 0 10px 30px rgba(0,0,0,0.5); /* Stronger shadow for dark theme */
            --success-color: #10b981; /* Standard Green */
            --error-color: #dc2626;   /* Standard Red */
            --ring: rgba(59, 130, 246, 0.4); /* Use the new blue for the ring */
        }

        /* General Reset and Body Styling */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            /* Uses custom dark theme */
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-color);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            color: var(--text-primary);
            padding: 20px;
        }

        /* Main Login Card Container */
        .main-container {
            background: var(--card-bg);
            padding: 0;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            max-width: 900px;
            width: 80%;
            display: flex; /* Key for side-by-side layout */
            align-items: stretch;
            animation: fadeIn 0.8s ease-in-out;
            border: 1px solid var(--input-border); 
            overflow: hidden;
        }
        
        /* Left side: Visual/Logo Section (Accent Section) */
        .logo-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            /* Using the vibrant blue brand color for the background gradient */
            background: linear-gradient(135deg, #1e3a8a, var(--brand)); /* Deep Navy to Vibrant Blue Gradient */ 
            position: relative;
            color: var(--text-light); /* White text on blue background */
        }
        
        /* Image/Logo Placeholder Styling */
        .logo-circle-wrapper {
            width: 250px;
            height: 250px;
            overflow: hidden;
            border-radius: 50%;
            border: 4px solid var(--text-light); 
            box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2); 
            margin-bottom: 20px;
            background: rgba(255, 255, 255, 0.1);
        }

        .logo-section img {
            width: 100%; 
            height: 100%;
            object-fit: cover;
            border-radius: 0;
            box-shadow: none;
            border: none;
        }

        .logo-content {
            text-align: center;
            margin-top: 20px;
        }

        .logo-content h1 {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            font-size: 32px;
            color: var(--text-light); 
            margin-bottom: 5px;
            text-transform: uppercase;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }
        .logo-content p {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.9); 
            font-weight: 400;
            opacity: 0.9;
        }

        /* Right side: Form Section */
        .form-section {
            flex: 1;
            padding: 50px 60px;
            width: 100%;
            background: var(--card-bg); 
            position: relative;
        }

        /* Title */
        h2 {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            text-align: center;
            margin-bottom: 35px;
            font-size: 30px;
            color: var(--accent-color); /* Use the blue accent color */
            text-transform: uppercase;
        }

         .input-group {
            position: relative;
            margin-bottom: 25px;
        }

        .input-group input {
            width: 100%;
            padding: 16px 50px 16px 55px; 
            border: 1px solid var(--input-border);
            border-radius: var(--radius);
            font-size: 16px;
            transition: all 0.3s ease;
            background-color: var(--input-bg); /* Dark input background */
            color: var(--text-primary); 
            outline: none;
        }

        .input-group input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px var(--ring);
            background-color: var(--card-bg); /* Match card background on focus */
        }

        .input-group input::placeholder {
            color: var(--text-placeholder);
            opacity: 1;
        }

        .input-group i {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary); 
            font-size: 18px;
        }
        .input-group i.fa-envelope,
        .input-group i.fa-user,
        .input-group i.fa-lock { 
            left: 20px; 
            color: var(--accent-color); /* Make icons blue for visibility */
        }
        .toggle-password {
            right: 20px;
            cursor: pointer;
            color: var(--text-secondary) !important;
        }
        .toggle-password:hover {
            color: var(--accent-color) !important;
        }

        /* Button Styling (matches register.css .btn-primary and default.php .landing-btn-primary) */
        .custom-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
            background-size: 180% 180%;
            background-position: 0% 0%;
            color: var(--button-text);
            border: none;
            border-radius: var(--radius);
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); /* Blue shadow */
            transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
            margin-top: 10px;
            display: block;
        }

        .custom-btn:hover {
            background-position: 100% 100%;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
            color: var(--button-text);
            text-decoration: none;
        }
        
        /* --- CUSTOM CHECKBOX STYLING --- */
        .form-group .custom-checkbox {
            display: flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
            padding-left: 0;
            margin: 0;
        }
        .custom-checkbox input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }
        .checkbox-label {
            display: flex;
            align-items: center;
            position: relative;
            font-size: 15px;
            color: var(--text-secondary);
            font-weight: 500;
            transition: color 0.2s;
        }
        .checkbox-label:hover {
            color: var(--accent-color); /* Hover text turns blue */
        }

        /* Custom Checkmark (the visible box) */
        .checkbox-label::before {
            content: '';
            display: inline-block;
            width: 18px;
            height: 18px;
            margin-right: 12px;
            border: 2px solid var(--input-border);
            border-radius: 4px;
            background-color: var(--input-bg);
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        /* Checkmark inside the box (the tick) */
        .checkbox-label::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%) scale(0);
            width: 8px;
            height: 8px;
            background-color: var(--button-text); /* White tick */
            clip-path: polygon(14% 44%, 0% 65%, 50% 100%, 100% 16%, 80% 0%, 43% 60%);
            transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }

        /* Checked state */
        .custom-checkbox input[type="checkbox"]:checked + .checkbox-label::before {
            background-color: var(--accent-color); /* Blue when checked */
            border-color: var(--accent-color);
        }
        .custom-checkbox input[type="checkbox"]:checked + .checkbox-label::after {
            transform: translateY(-50%) scale(1);
        }
        .custom-checkbox:hover .checkbox-label::before {
            border-color: var(--accent-color);
        }
        /* --- END CUSTOM CHECKBOX STYLING --- */

        /* Back to Home (landing page) — floating button, outside the login card */
        .back-home-btn {
            position: fixed;
            top: 24px;
            left: 24px;
            z-index: 1040;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px 10px 14px;
            background: var(--card-bg);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            border-radius: 999px;
            box-shadow: var(--shadow);
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
        }
        .back-home-btn:hover {
            color: var(--accent-color);
            border-color: var(--accent-color);
            transform: translateX(-3px);
            text-decoration: none;
        }
        .back-home-btn i {
            font-size: 13px;
        }
        @media (max-width: 600px) {
            .back-home-btn {
                top: 14px;
                left: 14px;
                padding: 8px 14px 8px 12px;
                font-size: 13px;
            }
        }

        /* Utility Links */
        .utility-links {
            text-align: center;
            margin-top: 20px;
            font-size: 15px;
            color: var(--text-secondary);
        }

        .utility-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            padding: 0 5px;
            transition: color 0.2s;
        }

        .utility-links a:hover {
            color: var(--accent-color); /* Links hover blue */
        }
        
        .utility-links span {
            color: var(--text-placeholder);
        }
        
        /* Google Button Styling */
        .google-login-separator {
            text-align: center;
            margin: 25px 0 20px 0;
            color: var(--text-secondary);
            font-size: 14px;
            position: relative;
        }

        .google-login-separator::before,
        .google-login-separator::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 40%;
            height: 1px;
            background: var(--input-border); 
        }
        .google-login-separator::before { left: 0; }
        .google-login-separator::after { right: 0; }
        
        .google-login {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 15px;
            background: #ffffff; /* Google button remains white for contrast */
            border: 1px solid var(--input-border);
            border-radius: var(--radius);
            padding: 12px;
            text-decoration: none;
            color: #141418; /* Dark text for Google button */
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
            transition: background 0.2s, box-shadow 0.2s;
        }
        .google-login:hover {
            background: #f0f0f0;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            text-decoration: none;
            color: #141418;
        }
        .google-login img {
            margin-right: 15px;
            width: 20px;
            height: 20px;
        }


        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Custom Modal Styles (For PHP Messages) */
        .custom-modal-overlay {
            display: none; 
            position: fixed; 
            z-index: 1050;
            left: 0; top: 0; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.8); /* Darker overlay for dark mode */
            justify-content: center; align-items: center;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .custom-modal-overlay.show { display: flex; opacity: 1; }
        .custom-modal-content {
            background: var(--card-bg); 
            color: var(--text-primary); 
            padding: 40px 30px; 
            border-radius: var(--radius);
            /* Default border is blue, success/error overrides in JS */
            border-top: 5px solid var(--accent-color); 
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
            text-align: center; 
            width: 380px; 
            max-width: 90%;
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }
        .custom-modal-overlay.show .custom-modal-content {
            transform: scale(1);
        }
        .modal-icon i { font-size: 40px; margin-bottom: 15px; }
        .modal-icon.error { color: var(--error-color); }
        .modal-icon.success { color: var(--success-color); }
        .modal-title { color: var(--text-primary); font-weight: 600; font-size: 20px; margin-bottom: 5px; }
        .modal-message { color: var(--text-secondary); margin-bottom: 20px; }
        .modal-button {
            background-color: var(--accent-color); color: white;
            padding: 10px 25px; font-size: 16px; font-weight: 600;
            border-radius: 8px;
            width: auto;
            text-transform: none;
            letter-spacing: normal;
        }
        .modal-button:hover {
            background-color: var(--brand-hover);
        }


        /* Mobile Responsiveness (Preserved) */
        @media (max-width: 768px) {
            .main-container {
                flex-direction: column;
                max-width: 450px;
                width: 100%; /* Use full width on mobile */
            }
            /* Hiding the big logo section entirely on small screens */
            .logo-section {
                display: none; 
            }
            .form-section {
                padding: 40px 30px;
                max-width: 100%;
            }
            .google-login-separator::before,
            .google-login-separator::after {
                width: 30%;
            }
        }