/*
 * الهوية البصرية — وزارة الداخلية العراقية
 * ألوان وخط مطابقان للموقع الرسمي moi.gov.iq
 * سماوي #6DD0F7 | كحلي #03447A | ذهبي #BBA616 | خط Cairo
 */
:root {
    --moi-sky: #6DD0F7;
    --moi-sky-light: #E8F7FD;
    --moi-sky-deep: #4BB8E8;
    --moi-navy: #03447A;
    --moi-navy-mid: #045A9E;
    --moi-navy-light: #056BB8;
    --moi-gold: #BBA616;
    --moi-gold-light: #D4BE2A;
    --moi-gold-dark: #8F820F;
    --moi-green: #1E7B34;
    --moi-white: #ffffff;
    --moi-bg: #F0FAFE;
    --moi-bg-panel: #E8F7FD;

    --primary: var(--moi-navy);
    --primary-light: var(--moi-navy-light);
    --primary-dark: #02325A;
    --accent: var(--moi-gold);
    --accent-light: var(--moi-gold-light);
    --bg: var(--moi-bg);
    --border: #A8DDF0;

    --moi-gradient: linear-gradient(135deg, #02325A 0%, #03447A 45%, #045A9E 100%);
    --moi-gradient-gold: linear-gradient(135deg, #8F820F 0%, #BBA616 50%, #D4BE2A 100%);
    --moi-gradient-header: linear-gradient(135deg, #02325A 0%, #03447A 50%, #045A9E 100%);
    --moi-gradient-sky: linear-gradient(160deg, #03447A 0%, #045A9E 35%, #6DD0F7 100%);
}

/* ─── شعار الوزارة (PNG الرسمي) ─── */
.moi-brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.moi-brand-logo-lg {
    width: 130px;
    height: 130px;
}

.moi-brand-text strong {
    color: inherit;
}

.moi-brand-text small {
    opacity: 0.88;
}

.moi-brand-gold-line {
    height: 3px;
    background: var(--moi-gradient-gold);
    border-radius: 2px;
}

.moi-brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-topbar .moi-brand-text strong {
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.app-topbar .moi-brand-text small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.88);
}

.sidebar-header {
    border-bottom: 2px solid var(--moi-gold);
    background: linear-gradient(180deg, var(--moi-sky-light) 0%, #fff 100%);
}

.app-topbar .user-badge {
    background: var(--moi-gradient-gold);
    color: var(--moi-navy);
    border: none;
    font-weight: 800;
}

.footer a:hover {
    color: var(--moi-gold-light) !important;
    text-decoration: underline;
}

/* ─── صفحة الهبوط ─── */
.landing-hero {
    min-height: 100vh;
    background: var(--moi-gradient-sky);
    color: white;
    display: flex;
    flex-direction: column;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(187, 166, 22, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(109, 208, 247, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.landing-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.landing-inner { max-width: 900px; text-align: center; }

.landing-logo,
.landing-inner .moi-brand-logo-lg {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.landing-gold-line {
    width: 80px;
    height: 4px;
    background: var(--moi-gradient-gold);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.landing-inner h1 { font-size: 2.1rem; margin-bottom: 0.75rem; font-weight: 800; }
.landing-inner .moi-subtitle { font-size: 1rem; opacity: 0.95; margin-bottom: 0.5rem; color: var(--moi-gold-light); font-weight: 700; }
.landing-inner p { font-size: 1.05rem; opacity: 0.88; line-height: 1.8; margin-bottom: 2rem; }

.landing-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.landing-feat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(187, 166, 22, 0.35);
    padding: 1.25rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.landing-feat:hover { background: rgba(255, 255, 255, 0.16); }
.landing-feat-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.landing-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--moi-gold);
    position: relative;
    z-index: 1;
}

.landing-footer a {
    color: var(--moi-sky);
    text-decoration: none;
    font-weight: 700;
}

.landing-footer a:hover {
    color: var(--moi-gold-light);
    text-decoration: underline;
}
