﻿body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f7fb;
    margin: 0;
    padding: 0;
    direction: rtl; /* لأن الصفحة بالعربي */
    /* لو النافبار ثابت يمين 250px */
   /* padding-right: 250px; *//* يحجز مساحة للنافبار */
    box-sizing: border-box;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    flex-direction: row;
    flex-wrap: nowrap;
}

.login-container {
    background-color: #0000001c;
    padding: 50px;
    width: 70%; /* أقل من 100% لأن النافبار موجود */
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* باقي التنسيقات مثل ما هي */

.company-info {
    margin-top: 20px;
}

    .company-info h2 {
        font-size: 1.8em;
        color: forestgreen;
        margin-bottom: 15px;
    }

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: moveUpDown 2s infinite alternate;
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.login-form h6 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    text-align: right; /* النص داخل الحقول يكون من اليسار */
}

    .form-group label {
        font-size: 1.1em;
        color: #333;
        display: block;
        margin-bottom: 5px;
        text-align: right; /* العناوين (الليبل) تكون من اليمين */
    }


.form-control {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
}

    .form-control:focus {
        border-color: #4fa111;
        outline: none;
    }

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #4fa111;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
}

    .btn-login:hover {
        background-color: #388e0c;
    }

.header-section {
    margin-bottom: 20px;
}

.header-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* استجابة الشاشة */

@media (max-width: 992px) {
    body {
        padding-right: 0; /* ازالة حجز النافبار */
    }

    .login-container {
        width: 90%; /* العرض يوسع */
        padding: 30px;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .login-container {
        width: 150%;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        height: 110vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.text-center.mt-3 {
    margin-top: 30px; /* رفع المسافة من الأعلى */
    text-align: center;
}

    .text-center.mt-3 a {
        font-size: 1.3em; /* تكبير الخط */
        color: #4fa111; /* لون أخضر */
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .text-center.mt-3 a:hover {
            color: #388e0c; /* لون عند المرور */
            text-decoration: underline;
            cursor: pointer;
        }
.position-relative {
    position: relative;
}

.password-input {
    padding-left: 15px;
    padding-right: 50px; /* مساحة للأيقونة داخل الحقل */
}

.toggle-password {
    position: absolute;
    top: 65%;
    left: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #4caf50;
    font-size: 1.1rem;
    padding: 0;
}
