/* التنسيقات الأساسية */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --error-bg: #fef2f2;
    --error-text: #dc2626;
}

body.login-body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.icon-circle {
    background: #eff6ff;
    color: var(--primary-color);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.login-header h2 {
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: right;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.login-btn:hover {
    background-color: var(--primary-hover);
}

#error {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    display: none; /* يتم إظهاره عبر JS عند الخطأ */
}

/* إذا امتلأ div الخطأ نصاً، يتم تنسيقه تلقائياً */
#error:not(:empty) {
    display: block;
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #fee2e2;
}