@font-face {
    font-family: 'Tajawal';
    src: url('../../admin/fonts/subset-Tajawal-Regular.woff2') format('woff2'),
    url('../../admin/fonts/subset-Tajawal-Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary-color: #14b8a6;      /* Teal */
    --secondary-color: #5b6ee1;    /* Blue */
    --text-main: #1e293b;          /* رمادي غامق للنصوص */
    --text-secondary: #64748b;     /* رمادي فاتح للوصف */
    --glass-bg: rgba(255, 255, 255, 0.75); /* زجاج أبيض شبه شفاف */
    --glass-border: rgba(255, 255, 255, 0.8); /* حدود بيضاء */
    --input-bg: rgba(255, 255, 255, 0.6); /* خلفية الحقول */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f1f5f9;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}



/* === الكارد الزجاجي الفاتح === */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    min-height: 500px;
    display: flex;
    border-radius: 24px;

    /* تأثير الزجاج الثلجي (Frosted Glass) */
    background: var(--glass-bg);
    backdrop-filter: blur(20px); /* تغبيش قوي */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #fff; /* حدود بيضاء نقية */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); /* ظل ناعم جداً */
    overflow: hidden;
}

/* === القسم الأيمن: النموذج === */
.form-section {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-main);
}

.login-header {
    margin-bottom: 30px;
    text-align: right;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--primary-color); /* لون التيل المميز */
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* تنسيق الحقول - نسخة فاتحة */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #cbd5e1; /* حدود رمادية فاتحة */
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s;
}

/* تأثير التركيز Focus */
.input-wrapper input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15); /* هالة تيل خفيفة */
    outline: none;
}

.input-wrapper input:focus + i {
    color: var(--primary-color);
}

/* زر الدخول */
.btn-login {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.4);
}

/* === القسم الأيسر: البراند === */
.brand-section {
    flex: 1;
    /* خلفية متدرجة خفيفة جداً لتمييز القسم */
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(91, 110, 225, 0.05));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.5); /* خط فاصل */
}

/* زخرفة خلفية ناعمة */
.brand-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.full-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.5s ease;
    z-index: 2;
}

.full-logo:hover {
    transform: scale(1.05);
}

.brand-text h1 {
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 800;
    z-index: 2;
}

/* للتجاوب مع الجوال */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column-reverse;
        width: 95%;
        height: auto;
    }
    .brand-section {
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .form-section { padding: 30px 20px; }
}
