        :root {
            --primary-color: #2496ed;
            --dark-color: #1e293b;
            --light-color: #f8fafc;
            --danger-color: #ef4444;
            --success-color: #10b981;
            --border-radius: 8px;
            --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            
            /* Light theme colors */
            --bg-color: #f1f5f9;
            --card-color: white;
            --text-color: #1e293b;
            --input-bg: white;
            --input-border: #e2e8f0;
        }
        
        [data-theme="dark"] {
            --bg-color: #0f172a;
            --card-color: #1e293b;
            --text-color: #f8fafc;
            --input-bg: #334155;
            --input-border: #475569;
            --dark-color: #f8fafc;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        .container {
            background-color: var(--card-color);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 2.5rem;
            width: 100%;
            max-width: 450px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        h1 {
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 2rem;
            font-weight: 700;
            font-size: 1.8rem;
        }
        
        .error {
            background-color: #fee2e2;
            color: var(--danger-color);
            padding: 1rem;
            border-radius: var(--border-radius);
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        [data-theme="dark"] .error {
            background-color: #7f1d1d;
            color: #fecaca;
        }
        
        .error i {
            font-size: 1.2rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }
        
        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-color);
        }
        
        input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--input-border);
            border-radius: var(--border-radius);
            font-size: 1rem;
            transition: all 0.3s ease;
            background-color: var(--input-bg);
            color: var(--text-color);
        }
        
        input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(36, 150, 237, 0.2);
        }
        
        button {
            width: 100%;
            padding: 0.75rem;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 0.5rem;
        }
        
        button:hover {
            background-color: #1d7bc7;
            transform: translateY(-2px);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        .brand {
            text-align: center;
            margin-top: 1.5rem;
            color: #64748b;
            font-size: 0.9rem;
        }
        
        [data-theme="dark"] .brand {
            color: #94a3b8;
        }
        
        .theme-toggle {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            color: var(--text-color);
            cursor: pointer;
            font-size: 1.2rem;
            width: auto;
            padding: 0.5rem;
        }
        
        .theme-toggle:hover {
            transform: scale(1.1);
        }

/* Language Selector - Dropdown */
        .language-selector {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            z-index: 100;
            max-height: 40px; /* Fixed height */
        }
        
        .language-dropdown {
            position: relative;
            min-width: 120px;
            height: 100%;
        }
        
        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--card-color);
            border: 1px solid var(--input-border);
            border-radius: var(--border-radius);
            padding: 8px 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-color);
            height: 100%;
            box-sizing: border-box;
        }
        
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 5px);
            right: 0;
            width: max-content;
            max-width: 200px;
            max-height: 300px;
            overflow-y: auto;
            background: var(--card-color);
            border: 1px solid var(--input-border);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 100;
            padding: 5px 0;
            margin: 0;
            scrollbar-width: thin;
            scrollbar-color: #2496ed transparent;
        }
        
        .language-dropdown[aria-expanded="true"] .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-menu li {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .dropdown-menu li a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        
        /* Container adjustments */
        .container {
            position: relative;
            padding-top: 1.5rem; /* Reduced from 4.5rem */
            min-height: auto; /* Remove fixed min-height */
        }
        
        .language-name {
            white-space: nowrap;
        }
        
        /* Dark mode adjustments */
        [data-theme="dark"] .dropdown-menu {
            border-color: #475569;
        }
        
        [data-theme="dark"] .dropdown-menu li a:hover {
            background-color: rgba(36, 150, 237, 0.2);
        }

        /* RTL Support */
        [lang="ar"], [lang="he"] {
            direction: rtl;
            text-align: right;
        }

        [lang="ar"] .dropdown-toggle,
        [lang="he"] .dropdown-toggle {
            flex-direction: row-reverse;
        }

        [lang="ar"] .dropdown-menu li a,
        [lang="he"] .dropdown-menu li a {
            flex-direction: row-reverse;
            justify-content: flex-end;
        }

        [lang="ar"] .fa-chevron-down,
        [lang="he"] .fa-chevron-down {
            margin-left: 0;
            margin-right: auto;
        }
        
        @media (max-width: 480px) {
            .language-selector {
                top: 1rem;
                left: 1rem;
            }

            .language-selector {
                top: 1rem;
                right: 1rem;
            }

            .dropdown-toggle {
                padding: 6px 10px;
            }

            .language-name {
                max-width: 80px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: inline-block;
            }

            .lang-btn {
                width: 28px;
                height: 28px;
            }

            .container {
                padding: 1.5rem;
            }
            
            h1 {
                font-size: 1.5rem;
            }
            
            .theme-toggle {
                top: 1rem;
                right: 1rem;
            }
        }
