/* إعادة ضبط أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

/* خلفية الصفحة */
body {
    background-color: #2b2b2b; /* رمادي داكن فاتح */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* صندوق تسجيل الدخول - أكبر + صورة خلفية */
.body-log {
    width: 450px;
    background-color: rgba(20, 20, 20, 0.85); /* خلفية داكنة نصف شفافة */
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease-in-out;

    /* صورة الخلفية */
    background-image: url('../Asset/login-bg.jpg'); /* ضع مسار الصورة هنا */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* تأثير عند التمرير */
.body-log:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 218, 32, 0.2);
}

/* الرأس */
.header-login {
    height: 150px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(28, 28, 28, 0.8); /* شفافية لتوضيح الصورة قليلاً */
}

.header-login img {
    width: 60%;
    max-height: 100px;
    object-fit: contain;
}

/* جسم الصفحة */
.body-login {
    padding: 30px;
    background-color: rgba(20, 20, 20, 0.75); /* خلفية شفافة لتوضيح الإدخال */
    border-radius: 0 0 20px 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* حقول الإدخال */
.input-email,
.input-password {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 17px;
    background-color: rgba(47, 47, 47, 0.85);
    color: #fff;
    transition: 0.2s;
}

input::placeholder {
    color: #c0c0c0;
}

input:focus {
    background-color: rgba(59, 59, 59, 0.85);
    box-shadow: 0 0 0 2px #ffda20;
}

/* حاوية كلمة المرور */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #c0c0c0;
    font-size: 18px;
}

/* زر تسجيل الدخول */
.login-submit {
    background-color: #ffda20;
    color: #000;
    font-weight: bold;
    padding: 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s;
}

.login-submit:hover {
    background-color: #ffeb66;
    transform: scale(1.03);
}

/* رسالة الخطأ */
.loging-error {
    color: #ff5555;
    font-size: 16px;
    text-align: center;
    margin-top: -10px;
}