@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* الوان اساسية موحدة للنظام */
:root {
    --primary: #00D084;          /* اخضر مينت فخم */
    --primary-dark: #00B371;
    --gray-25: #f5f7fb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-700: #374151;
}

/* خلفية عامة انيقة */
.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    background-color: #f3f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* توسيط الكرت في الصفحة */
.login-page {
    width: 100%;
    padding: 40px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-wrapper {
    max-width: 480px;
    width: 100%;
}

/* الكرت بتصميم ناعم وعصري */
.login-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(27, 37, 89, 0.05), 0 20px 48px rgba(0, 0, 0, 0.02);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
}

/* ضبط حاوية اللوجو */
.login-logo {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(0, 208, 132, 0.1);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.1);
    padding: 10px;
}

.logo-icon {
    background: var(--primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: white;
}

/* العناوين */
.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.4;
    color: #1B2559;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #A3AED0;
    font-weight: 600;
    margin-bottom: 35px;
}

/* تنسيق الحقول والأيقونات الداخلية */
.input-with-icon {
    position: relative;
    width: 100%;
}

/* الأيقونة اليمين (مستخدم/قفل) */
.input-icon-inner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #A3AED0;
    z-index: 5;
    pointer-events: none;
}

/* أيقونة العين (يسار) */
.password-toggle {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #A3AED0;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

.login-input {
    height: 55px;
    width: 100%;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    background-color: #f4f7fe;
    font-size: 0.95rem;
    font-weight: 700;
    padding-right: 50px !important; /* مساحة للأيقونة اليمين */
    padding-left: 50px !important;  /* مساحة لأيقونة العين */
    color: #1B2559;
    transition: 0.3s;
}

.login-input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1);
    outline: none;
}

/* زر الدخول */
.btn-login {
    width: 100%;
    margin-top: 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 208, 132, 0.2);
    transition: 0.3s;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 208, 132, 0.3);
}

.login-footer-text {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #A3AED0;
    font-weight: 600;
}

/* فاصل جمالي */
.login-card::after {
    content: "";
    display: block;
    margin: 30px auto 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
}