﻿/* التنسيقات العامة */
@font-face {
    font-family: 'mohsen';
    src: url('../font/mohsen.ttf') format('truetype');
}
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --accent-color: #f6c23e;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fc;
    color: #333;
    direction: rtl;
}


.min-vh-100 {
    min-height: 100vh;
}

/* تنسيق جزء الصورة */
.login-image {
    background-image: url('../img/8d35a7f5-d91c-4c8a-bab6-137984503df9.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.image-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 0 20px;
}

    .image-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .image-content p {
        font-size: 1.2rem;
        max-width: 600px;
    }

/* تنسيق نموذج تسجيل الدخول */
.login-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 20px;
}

.logo {
    max-width: 100px;
    height: auto;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #858796 !important;
}

/* تنسيقات الحقول */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.input-group {
    margin-bottom: 0.5rem;
}

.input-group-text {
    background-color: #eaecf4;
    border: 1px solid #d1d3e2;
    border-left: none;
}

.form-control {
    border: 1px solid #d1d3e2;
    border-right: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
        border-color: #bac8f3;
    }

/* تنسيق زر إظهار/إخفاء كلمة المرور */
#togglePassword {
    border: 1px solid #d1d3e2;
    border-right: none;
}

/* تنسيق خيار تذكرني ونسيت كلمة المرور */
.form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-check-input {
    margin-left: 0.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* تنسيق زر تسجيل الدخول */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #2e59d9;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* تنسيق رابط التسجيل */
.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

    .register-link:hover {
        text-decoration: underline;
    }

/* تأثيرات للشعار */
.logo {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* تنسيقات للهواتف المحمولة */
@media (max-width: 768px) {
    .login-form-container {
        padding: 2rem;
        margin: 10px;
    }

    .image-content h1 {
        font-size: 2rem;
    }

    .image-content p {
        font-size: 1rem;
    }
}

/* تأثيرات إضافية */
.input-group:focus-within .input-group-text {
    border-color: #bac8f3;
    background-color: #f0f3ff;
}

.form-control:focus + .input-group-text {
    border-color: #bac8f3;
}
