/* صفحة الدخول — styles مستقلة (بدون اعتماد على @import) */
*, *::before, *::after { box-sizing: border-box; }

body.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #f0f4f8;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* ── اللوحة الداكنة (يمين في RTL) ── */
.login-brand-panel {
    flex: 1;
    background: linear-gradient(160deg, #0b1120 0%, #111827 50%, #0f172a 100%);
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13,148,136,0.18) 0%, transparent 65%);
    top: -120px; left: -120px;
    pointer-events: none;
}

.login-brand-panel .lb-logo {
    width: 72px; height: 72px;
    background: #0d9488;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(13,148,136,0.4);
    position: relative; z-index: 1;
}

.login-brand-panel h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    position: relative; z-index: 1;
}

.login-brand-panel > p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 380px;
    text-align: center;
    line-height: 1.75;
    margin: 0;
    position: relative; z-index: 1;
}

.login-features {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative; z-index: 1;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}

.login-feature i {
    color: #14b8a6;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── لوحة النموذج (يسار في RTL) ── */
.login-form-panel {
    flex: 0 0 460px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    box-shadow: -4px 0 40px rgba(0,0,0,0.06);
}

.login-form-inner {
    width: 100%;
    max-width: 380px;
}

.login-form-inner h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.login-form-inner .lf-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 32px;
}

.login-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.login-input-wrap i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-wrap input::placeholder { color: #94a3b8; }

.login-input-wrap input:focus {
    outline: none;
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #0d9488;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

.login-btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.35);
}

.login-demo-box {
    margin-top: 28px;
    padding: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.8;
}

.login-demo-box strong { color: #0f172a; display: block; margin-bottom: 4px; }

@media (max-width: 900px) {
    .login-page { flex-direction: column; }
    .login-brand-panel { padding: 36px 24px; min-height: auto; }
    .login-brand-panel h1 { font-size: 1.6rem; }
    .login-features { display: none; }
    .login-form-panel { flex: 1; box-shadow: none; padding: 32px 24px; }
}
