﻿   :root {
            --primary-color: #4a73b4;
            --primary-dark: #28519e;
            --primary-light: #e8eef9;
            --primary-gradient: linear-gradient(135deg, #4a73b4 0%, #28519e 100%);
            --secondary-color: #FF9800;
            --secondary-dark: #f57c00;
            --background-color: #f0f4f8;
            --background-gradient: linear-gradient(135deg, #f0f4f8 0%, #e8eef9 100%);
            --border-color: #e0e0e0;
            --card-bg-color: #ffffff;
            --text-color: #333;
            --text-muted: #6c757d;
            --header-blue: #4a73b4;
            --light-blue: #17a2b8;
            --green-text: #01a982;
            --action-button-bg: #337ab7;
            --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --input-focus-shadow: 0 0 0 3px rgba(74, 115, 180, 0.15);
            --card-border-radius: 16px;
            --button-border-radius: 12px;
            --input-border-radius: 10px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--background-gradient);
            color: var(--text-color);
            direction: rtl;
            font-size: 14px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 240px;
            background: var(--primary-gradient);
            z-index: 0;
            clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        }

        /* כותרת עליונה */
        .header {
            background-color: transparent;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            height: 70px;
            width: 100%;
            position: relative;
            z-index: 10;
        }

        .brand {
            font-size: 1.4rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            letter-spacing: 0.5px;
        }

        .brand-icon {
            width: 34px;
            height: 34px;
            margin-left: 10px;
            background-color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 17px;
            box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        }

        .menu-icon {
            font-size: 1.5rem;
            line-height: 1;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 5px 10px;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .menu-icon:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* גריד מרכזי */
        .page-container {
            position: relative;
            z-index: 5;
            padding: 15px;
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* כרטיס כניסה */
        .login-card {
            background-color: var(--card-bg-color);
            border-radius: var(--card-border-radius);
            box-shadow: var(--box-shadow);
            padding: 35px;
            max-width: 440px;
            width: 100%;
            margin: 40px auto;
            position: relative;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.8);
        }

        /* לוגו */
        .logo-container {
            margin: 0 auto 25px;
            width: 90px;
            height: 90px;
            background: var(--primary-gradient);
            border-radius: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 6px 15px rgba(40, 81, 158, 0.25);
            position: relative;
            transform: rotate(0deg);
            transition: transform 0.3s ease;
        }

        .logo-container:hover {
            transform: rotate(5deg);
        }

        .logo-container::after {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(45deg, #4a73b4, transparent, #4a73b4);
            border-radius: 22px;
            z-index: -1;
            opacity: 0.4;
            animation: borderGlow 2s linear infinite;
        }

        @keyframes borderGlow {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 0.7; }
        }

        .logo {
            color: white;
            font-size: 42px;
            font-weight: bold;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* כותרת */
        .login-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 5px;
            text-align: center;
            color: var(--text-color);
            background: linear-gradient(to left, var(--primary-color), var(--text-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .login-subtitle {
            text-align: center;
            color: var(--text-muted);
            margin-bottom: 35px;
            font-size: 1rem;
            font-weight: 300;
        }

        /* טופס התחברות */
        .login-form {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .form-group {
            position: relative;
        }

        .form-label {
            position: absolute;
            top: -10px;
            right: 15px;
            background-color: white;
            padding: 0 8px;
            font-size: 0.9rem;
            color: var(--primary-color);
            font-weight: 500;
            border-radius: 4px;
            z-index: 1;
        }

        .form-control {
            width: 100%;
            padding: 15px 18px 15px 45px;
            border: 1px solid var(--border-color);
            border-radius: var(--input-border-radius);
            font-size: 1rem;
            outline: none;
            transition: all 0.3s;
            background-color: #fafafa;
            font-family: 'Rubik', sans-serif;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: var(--input-focus-shadow);
            background-color: white;
        }

        .form-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 18px;
            transition: color 0.3s;
        }

        .form-control:focus + .form-icon {
            color: var(--primary-color);
        }

        /* Checkbox */
        .options-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
        }

        .custom-checkbox {
            position: relative;
            display: inline-block;
            width: 18px;
            height: 18px;
            margin-left: 10px;
        }

        .custom-checkbox input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            width: 18px;
            height: 18px;
            background-color: #fafafa;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            transition: all 0.2s;
        }

        .custom-checkbox input:checked ~ .checkmark {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .custom-checkbox input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-label {
            font-size: 0.95rem;
            color: var(--text-muted);
            user-select: none;
        }

        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: color 0.2s;
        }

        .forgot-password:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* כפתור כניסה */
        .login-button-container {
            margin-top: 10px;
            position: relative;
            border-radius: var(--button-border-radius);
            overflow: hidden;
        }

        .login-button-container::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #4a73b4, #28519e, #4a73b4);
            z-index: -1;
            border-radius: calc(var(--button-border-radius) + 2px);
            animation: borderGlow 2s linear infinite;
        }

        .login-button {
            background: var(--primary-gradient);
            color: white;
            border: none;
            border-radius: var(--button-border-radius);
            padding: 16px;
            font-size: 1.05rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            position: relative;
            overflow: hidden;
            font-family: 'Rubik', sans-serif;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 10px rgba(40, 81, 158, 0.2);
        }

        .login-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 15px rgba(40, 81, 158, 0.25);
        }

        .login-button:active {
            transform: translateY(-1px);
        }

        .login-button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2), rgba(255,255,255,0) 70%);
            transform: translateX(-100%);
            transition: none;
        }

        .login-button:hover::after {
            transform: translateX(100%);
            transition: transform 0.7s linear;
        }

        /* אפשרויות התחברות נוספות */
        .alt-login {
            margin-top: 35px;
            text-align: center;
        }

        .alt-login-title {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .alt-login-title::before,
        .alt-login-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background-color: var(--border-color);
        }

        .alt-login-title::before {
            margin-left: 15px;
        }

        .alt-login-title::after {
            margin-right: 15px;
        }

        .social-login {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .social-button {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #fafafa;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
        }

        .social-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            background-color: white;
        }

        .app-info {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 15px;
        }

        .app-info a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            position: relative;
            transition: color 0.2s;
        }

        .app-info a:hover {
            color: var(--primary-color);
        }

        .app-info a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: var(--primary-color);
            transition: width 0.3s;
        }

        .app-info a:hover::after {
            width: 100%;
        }

        /* כותרת תחתונה */
        .footer {
            text-align: center;
            padding: 20px;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: auto;
            z-index: 5;
        }

        .company-info {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        .company-logo {
            width: 22px;
            height: 22px;
            border-radius: 5px;
            background-color: var(--primary-color);
            display: inline-flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            color: white;
            margin-left: 5px;
            font-weight: bold;
        }

        /* אנימציות */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .login-card {
            animation: fadeInUp 0.6s ease-out;
        }

        /* דקורציה */
        .decoration {
            position: absolute;
            z-index: -1;
        }

        .circle-1 {
            top: 20%;
            left: 10%;
            width: 60px;
            height: 60px;
            background: var(--primary-light);
            border-radius: 50%;
            opacity: 0.5;
        }

        .circle-2 {
            bottom: 15%;
            right: 5%;
            width: 80px;
            height: 80px;
            background: var(--primary-light);
            border-radius: 50%;
            opacity: 0.4;
        }

        .circle-3 {
            top: 40%;
            right: 15%;
            width: 40px;
            height: 40px;
            background: var(--secondary-color);
            border-radius: 50%;
            opacity: 0.2;
        }

        /* רספונסיביות */
        @media (max-width: 480px) {
            .login-card {
                padding: 25px;
                margin: 20px auto;
                border-radius: 12px;
            }
            
            .logo-container {
                width: 75px;
                height: 75px;
                margin-bottom: 20px;
            }
            
            .login-title {
                font-size: 1.7rem;
            }

            .options-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .options-row .forgot-password {
                margin-top: 5px;
            }

            body::before {
                height: 200px;
            }
        }
