/*
 * FM6OA Institutional Identity
 * Header · Navigation · Footer
 *
 * Loads after main.css — targeted overrides only.
 * Preserves all responsive logic and component architecture.
 *
 * Color reference:
 *   Orange  #e87722  (FM6OA header bg)
 *   Charcoal #3c3c3b (nav bar bg + footer text)
 *   White   #ffffff  (footer bg, nav text on dark)
 */

/* ═══════════════════════════════════════════════════════════════
   FM6OA TYPOGRAPHY
   Droid Sans Arabic (self-hosted, Apache 2.0) — Arabic body font
   Open Sans (Google Fonts) — UI / Latin characters
   Source: https://www.fm6oa.org/
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'DroidSansArabic';
    src: url('../fonts/DroidSansArabic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base font: DroidSansArabic for all Arabic content, Open Sans for Latin/UI */
body {
    font-family: 'DroidSansArabic', 'Open Sans', sans-serif;
}

/* Replace all "Amiri" display/heading usages with DroidSansArabic */
.hero h1,
.section h2,
.site-footer h2,
.hero__seal,
.guide-hero h1,
.guide-document-card strong,
.principle-quote p,
.heritage-quote p,
.request-form-header h2,
.calendar-card strong,
.home-hero h1,
.royal-editorial blockquote p {
    font-family: 'DroidSansArabic', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL SVG ICON RESET
   Prevents the baseline gap that appears on inline SVG elements
   ═══════════════════════════════════════════════════════════════ */

.nav-social svg,
.social-link svg {
    display: block;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   INSTITUTIONAL TOP BAR — white
   ═══════════════════════════════════════════════════════════════ */

.header-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(60, 60, 59, 0.10);
    color: #3c3c3b;
}

.institution-name       { color: #3c3c3b; }
.institution-name:hover { color: #f0730f; }

.lang-link              { color: #3c3c3b; }
.lang-link:hover        { background: rgba(240, 115, 15, 0.08); color: #f0730f; }
.lang-link[aria-current="true"] {
    background: rgba(240, 115, 15, 0.12);
    color: #f0730f;
}

/* ═══════════════════════════════════════════════════════════════
   BRAND IMG — override main.css border/padding/bg on .brand img
   ═══════════════════════════════════════════════════════════════ */

.brand img {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   SITE-HEADER SHELL — strip the frosted white glass
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER MAIN — white institutional
   ═══════════════════════════════════════════════════════════════ */

.header-main {
    background-color: #ffffff;
    background-image: none;
    border-bottom: none;
    padding: 0;
    overflow: visible;
}

/* Two-row layout inside header-main:
   Row 1 — brand (logo full-height) + cta
   Row 2 (#3c3c3b) — full-width nav bar                          */
.header-main__inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    min-height: 200px; /* pins the brand-row height; logo fills this */
    align-items: stretch;
}

/* ── Brand row ────────────────────────────────────────────────── */

.brand {
    flex: 0 0 auto;
    padding: 0;
    align-self: stretch;
    order: 1;
    gap: 20px;
    margin-inline-end: auto; /* absorb all free space → pushes controls to the left */
}

.brand__logo {
    /* 100% fills .brand which fills the row (min-height: 200px above) */
    height: 100%;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    border: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Text block — centered vertically inside the full-height brand */
.brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    min-width: 0; /* allows the grid cell to shrink below content min-width */
}

/* Foundation name — top line above the platform name */
.brand__foundation {
    display: block;
    color: #f0730f;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: 2px;
}

.brand__name {
    color: #3c3c3b;
    text-shadow: none;
}

.brand__tagline {
    color: #5a5a58;
    padding-inline-start: 3.5em; /* RTL = padding-right : clears logo overlap (~6 Arabic chars) */
}

/* ── Global header search ───────────────────────────────────── */

.header-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(160px, 220px) auto;
    gap: 6px;
    align-self: center;
    order: 2;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(60, 60, 59, .18);
    border-radius: 4px;
    background: #ffffff;
    color: #3c3c3b;
    padding: 8px 11px;
    font-size: .9rem;
}

.header-search input:focus {
    outline: 3px solid rgba(240, 115, 15, .16);
    border-color: #f0730f;
}

.header-search button {
    border: 1px solid #f0730f;
    border-radius: 6px;
    background: #f0730f;
    color: #fff;
    padding: 9px 16px;
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.header-search button:hover,
.header-search button:focus {
    background: #fff;
    color: #f0730f;
    outline: none;
}

.header-search__results {
    position: absolute;
    z-index: 30;
    inset-block-start: calc(100% + 6px);
    inset-inline: 0;
    display: grid;
    gap: 6px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
    color: #3c3c3b;
    font-size: .86rem;
}

.header-search__results:not(:empty) {
    padding: 10px;
    border: 1px solid rgba(60, 60, 59, .12);
}

.header-search__results a {
    color: #0f4f44;
    font-weight: 700;
}

/* ── Menu toggle on white header ──────────────────────────────── */

.menu-toggle {
    order: 99;
    align-self: center;
    background: #ffffff;
    border-color: rgba(60, 60, 59, 0.22);
}

.menu-toggle:hover {
    background: rgba(240, 115, 15, 0.06);
    border-color: #f0730f;
}

.menu-toggle__line { background: #3c3c3b; }

/* ── CTA button on white header ───────────────────────────────── */

.header-cta-group {
    order: 4;
    align-self: center;
}

.header-sep {
    order: 3;
    align-self: center;
}

.header-cta {
    align-self: center;
    background: linear-gradient(135deg, #f0730f, #d4620c);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(240, 115, 15, 0.24);
    padding: 9px 16px;
}

.header-cta:hover {
    background: linear-gradient(135deg, #d4620c, #bf5800);
    box-shadow: 0 6px 16px rgba(240, 115, 15, 0.30);
    transform: translateY(-1px);
    color: #ffffff;
}

.header-cta:focus {
    outline-color: #f0730f;
}

/* ═══════════════════════════════════════════════════════════════
   DARK NAV BAR  —  background: #3c3c3b, full-width
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 961px) {
    .primary-nav {
        /* Push to its own full-width row below brand */
        order: 100;
        flex-basis: 100%;
        width: 100%;
        /* Off-canvas properties from mobile — reset for desktop */
        position: static;
        inset-block: unset;
        inset-inline-end: unset;
        max-width: unset;
        height: auto;
        min-height: 0;
        padding-block-start: 0;
        overflow-y: visible;
        flex-direction: row;
        border-inline-start: none;
        border-top: none;
        /* Dark institutional bar */
        background: #3c3c3b;
        /* Full-bleed: extend the dark bg edge-to-edge via box-shadow trick */
        box-shadow: 0 0 0 100vmax #3c3c3b;
        clip-path: inset(0 -100vmax);
        /* Separator from orange header */
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        transition: none;
    }

    .nav-container {
        /* Constrain content to container width, re-centre it */
        width: 100%;
        max-width: var(--container);
        margin-inline: auto;
        justify-content: flex-start; /* RTL: items flow right → left */
        gap: 0;
        flex-wrap: nowrap;
        min-height: 48px;
        align-items: stretch;
        padding-inline: 0;
    }

    .nav-section {
        align-items: stretch;
        gap: 0;
        border-bottom: none;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.88);
        font-weight: 600;
        font-size: 0.92rem;
        padding: 0 14px;
        border-radius: 0;
        min-height: 48px;
        height: 100%;
        display: inline-flex;
        align-items: center;
        border-bottom: 3px solid transparent;
        border-top: 3px solid transparent; /* keep text vertically centred */
        transition: background 0.2s ease, border-bottom-color 0.2s ease, color 0.2s ease;
        white-space: nowrap;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
        border-bottom-color: #e87722;
        outline: none;
    }

    .nav-link[aria-current="page"],
    .nav-link.is-active {
        background: rgba(255, 255, 255, 0.07);
        color: #ffffff;
        border-bottom-color: #e87722;
    }

    /* Remove old gold-line pseudo-element */
    .nav-link[aria-current="page"]::after,
    .nav-link.is-active::after { display: none; }

    /* ── Social icons — visual LEFT of nav bar ─────────────────── */

    .nav-social {
        order: 99;              /* last flex item = visual LEFT in RTL   */
        margin-inline-start: auto; /* absorbs remaining space, pins to LEFT */
        display: flex;
        align-items: center;
        gap: 2px;
        padding-inline: 12px;
        border-inline-end: 1px solid rgba(255, 255, 255, 0.10);
    }

    .nav-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 4px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.85rem;
        transition: color 0.2s ease, background 0.2s ease;
        text-decoration: none;
    }

    .nav-social a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
    }

    /* nav-container is not a list — remove any default list styling */
    .primary-nav { list-style: none; margin: 0; padding: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   BODY PADDING — topbar (~42) + brand-row (~198) + nav-bar (~48)
   Excluded from login-body (handled separately below)
   ═══════════════════════════════════════════════════════════════ */

body:not(.login-body) { padding-top: 290px; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — keep off-canvas drawer, update colours
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
    body:not(.login-body) { padding-top: 162px; }

    .header-main__inner { min-height: 110px; }

    .menu-toggle { order: 2; } /* restore: hamburger sits left of brand on mobile */

    .header-search {
        order: 4;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        margin-inline-start: 0;
        margin-block: 8px;
    }

    /* Logo scales with the row height — max-width keeps it proportional */
    .brand__logo { max-width: 130px; }

    .brand__foundation { font-size: 0.70rem; }

    /* Drawer on white bg with dark text */
    .primary-nav {
        background: #ffffff;
        border-inline-start: 1px solid rgba(60, 60, 59, 0.12);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .nav-section {
        border-bottom: 1px solid rgba(60, 60, 59, 0.08);
    }

    .nav-link {
        color: #3c3c3b;
        font-weight: 600;
        font-size: 0.97rem;
        padding: 14px 18px;
        border-radius: 0;
        border-bottom: none;
        border-top: none;
        min-height: auto;
        height: auto;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(232, 119, 34, 0.08);
        color: #3c3c3b;
        border-bottom-color: transparent;
        outline: none;
    }

    .nav-link[aria-current="page"],
    .nav-link.is-active {
        background: rgba(232, 119, 34, 0.10);
        color: #3c3c3b;
        border-inline-end: 4px solid #e87722;
        padding-inline-end: 14px;
        border-bottom-color: transparent;
    }

    /* Social icons in mobile drawer — top bar style */
    .nav-social {
        order: unset;
        margin-inline-start: 0;
        border-inline-end: none;
        border-bottom: 1px solid rgba(60, 60, 59, 0.08);
        padding: 12px 18px;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav-social a {
        width: 36px;
        height: 36px;
        border-radius: 5px;
        color: #3c3c3b;
        font-size: 0.95rem;
        background: rgba(60, 60, 59, 0.06);
    }

    .nav-social a:hover {
        color: #e87722;
        background: rgba(232, 119, 34, 0.10);
    }
}

@media (max-width: 640px) {
    /* At ≤640px the search bar stacks input+button in a single column, adding
       ~75px vs the tablet layout. Actual header height: topbar(42) + brand-row(54)
       + stacked-search(113) ≈ 209px. Previous 134px left ~75px of hero hidden. */
    body:not(.login-body) { padding-top: 210px; }

    .header-main__inner { min-height: 80px; }

    .header-search {
        grid-template-columns: 1fr;
    }

    .header-search button {
        width: 100%;
    }

    .brand__logo { max-width: 86px; }

    .brand__foundation { display: none; } /* too cramped on small phones */
}

/* ═══════════════════════════════════════════════════════════════
   INSTITUTIONAL WHITE FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    background: #ffffff;
    color: #3c3c3b;
    border-top: 3px solid #e87722;  /* FM6OA orange accent stripe */
    padding-block: 0 0;             /* sections control their own padding */
}

/* Override old dark footer rule from main.css (line 508) */
.site-footer { background: #ffffff; }

/* ── Footer intro ─────────────────────────────────────────────── */

.footer-intro {
    border-bottom: 1px solid rgba(60, 60, 59, 0.10);
}

.footer-intro__title {
    color: #3c3c3b;
    font-family: "Amiri", "Times New Roman", serif;
}

.footer-intro__description { color: #5a5a58; }

.footer-cta-button {
    background: #e87722;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.22);
}

.footer-cta-button:hover {
    background: #c96815;
    box-shadow: 0 6px 16px rgba(232, 119, 34, 0.28);
    transform: translateY(-2px);
}

/* ── Navigation columns ───────────────────────────────────────── */

.footer-nav-section {
    border-bottom: 1px solid rgba(60, 60, 59, 0.10);
}

.footer-nav-column__title {
    color: #3c3c3b;
    position: relative;
    padding-bottom: 10px;
}

/* Orange underline accent below each column title */
.footer-nav-column__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 26px;
    height: 2px;
    background: #e87722;
    border-radius: 1px;
}

.footer-nav-list a           { color: #5a5a58; }
.footer-nav-list a::before   { color: #e87722; }
.footer-nav-list a:hover     { color: #e87722; padding-inline-start: 12px; }

/* ── Contact section ─────────────────────────────────────────── */

.footer-contact-section {
    border-bottom: 1px solid rgba(60, 60, 59, 0.10);
}

.footer-contact-info__title { color: #3c3c3b; }

.contact-list__label         { color: #e87722; }
.contact-list__value         { color: #5a5a58; }
.contact-list__value a       { color: #5a5a58; }
.contact-list__value a:hover { color: #e87722; }

/* ── Social icons in footer ───────────────────────────────────── */

.footer-social__title { color: #3c3c3b; }

.social-link {
    background: rgba(60, 60, 59, 0.06);
    color: #3c3c3b;
    border: 1px solid rgba(60, 60, 59, 0.12);
}

.social-link:hover {
    background: #e87722;
    color: #ffffff;
    border-color: #e87722;
    transform: translateY(-3px);
}

/* ── Footer bottom bar ────────────────────────────────────────── */

.footer-bottom {
    background: #f7f6f5;
    border-top: 1px solid rgba(60, 60, 59, 0.10);
    padding-block: 18px;
}

.footer-copyright    { color: #7a7a78; }
.footer-legal__link  { color: #7a7a78; }
.footer-legal__link:hover { color: #e87722; }

/* Also ensure older .site-footer / .footer__* rules from main.css
   (lines 508-514) are neutralised where they conflict:           */
.site-footer h2      { color: #3c3c3b; }
.site-footer p       { color: #5a5a58; }
.site-footer nav     { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
.site-footer nav a   { color: #5a5a58; font-weight: 500; padding: 0; border-radius: 0; }
.site-footer nav a:hover,
.site-footer nav a:focus { background: transparent; color: #e87722; }
.site-footer a:hover { color: #e87722; }
.footer__bottom      { border-top-color: rgba(60, 60, 59, 0.10); color: #7a7a78; }

/* ═══════════════════════════════════════════════════════════════
   SITE-WIDE ACCENT — #f0730f
   ═══════════════════════════════════════════════════════════════ */

/* H1 colour */
h1 { color: #f0730f; }

/* Decorative border-inline-start accents */
.principle-quote        { border-inline-start-color: #f0730f; }
.royal-editorial blockquote { border-inline-start-color: #f0730f; }
.notice-box             { border-inline-start-color: #f0730f; }

/* Window card number/label */
.window-card span { color: #f0730f; }

/* Ecosystem blocks colour bar */
.ecosystem-blocks span  { background: #f0730f; }

/* Guide button — outlined style */
.guide-button {
    background-color: #ffffff;
    border: 2px solid #f0730f;
    color: #3c3c3b;
    box-shadow: none;
}

.guide-button:hover,
.guide-button:focus {
    background-color: #f0730f;
    border-color: #f0730f;
    color: #ffffff;
}

/* Breadcrumb */
.breadcrumb        { color: #f0730f; }
.breadcrumb a      { color: #f0730f; }

/* Eyebrow label — p.eyebrow beats .eyebrow in main.css (0-1-1 vs 0-1-0) */
p.eyebrow {
    color: #f0730f;
    transition: background 0.18s ease, color 0.18s ease;
    border-radius: 3px;
}

p.eyebrow:hover {
    background: #ffffff;
    color: #3c3c3b;
    outline: 1px solid rgba(60, 60, 59, 0.14); /* visible even on white bg */
    outline-offset: 2px;
}

/* Flipbook controls */
.flipbook-controls button { background: #f0730f; }

/* Context card decorative bar */
.context-card span { background: #f0730f; }

/* Mission card accent */
.mission-card span { color: #f0730f; }

/* Publication card decorative bar */
.publication-card span { background: #f0730f; }

/* Featured news label */
.featured-news span { color: #f0730f; }

/* Batch #f0730f accents */
.calendar-card span        { color: #f0730f; }
.guide-document-card span  { color: #f0730f; }
.curriculum-card span      { background: #f0730f; }
.skill-card                { border-top-color: #f0730f; }
.contact-form button       { background: #f0730f; }
.timeline-item span        { background: #f0730f; }
.source-card span          { background: #f0730f; }
.event-card span           { background: #f0730f; }
.audio-card span           { background: #f0730f; }

/* Fatwa preview card label */
.fatwa-preview-card span   { color: #f0730f; }

/* Search panel button */
.search-panel button {
    background: #f0730f;
    color: #ffffff;
    border: 2px solid #f0730f;
}

.search-panel button:hover {
    background: #ffffff;
    color: #f0730f;
}

/* Closing search button */
.closing-search button {
    background: #f0730f;
    color: #ffffff;
    border: 2px solid #f0730f;
}

.closing-search button:hover {
    background: #ffffff;
    color: #f0730f;
}

/* Meta chip text color */
.meta-chip                     { color: #f0730f; }
.notice-card .meta-chip        { background: #f0730f; color: #ffffff; }

/* Rounded counter/badge circles — replace var(--gold-600) bg */
.admission-steps li::before    { background: #f0730f; }
.workflow-list li::before      { background: #f0730f; }
.person-card__media span       { background: #f0730f; }
.request-form-header span      { background: #f0730f; }

/* Fatwa preview card CTA link */
.fatwa-preview-card a {
    background: #f0730f;
    color: #ffffff;
    border: 2px solid #f0730f;
}

.fatwa-preview-card a:hover {
    background: #ffffff;
    color: #f0730f;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE — Institutional authentication gateway
   Background: FM6OA bg_black_footer.jpg + Africa map + particles
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes login-enter {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes africa-drift {
    0%,100% { transform: translateY(-50%) scale(1)    rotate(0deg);   opacity: 0.09; }
    30%     { transform: translateY(-53%) scale(1.03) rotate(0.6deg); opacity: 0.12; }
    65%     { transform: translateY(-47%) scale(1.01) rotate(-0.4deg);opacity: 0.08; }
}
@keyframes border-pulse {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.55; }
}
@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes brand-fade {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Body ── */
.login-body {
    /* hard-reset every body rule that could push the card off-center */
    padding: 0 !important;
    margin: 0 !important;

    /* full-screen grid — single cell, perfectly centered */
    display: grid !important;
    place-items: center;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    position: relative;

    /* background — NO background-attachment:fixed (breaks when overflow:hidden is set) */
    background-color: #071a15;
    background-image: url('../images/bg-footer.jpg');
    background-size: cover;
    background-position: center center;

    font-family: 'DroidSansArabic', 'Open Sans', sans-serif;
}

/* Dark tinted overlay */
.login-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        140deg,
        rgba(5, 22, 18, 0.93) 0%,
        rgba(11, 52, 47, 0.87) 45%,
        rgba(8, 35, 30, 0.94) 100%
    );
    z-index: 1;
}

/* ── Canvas (particle network) ── */
#login-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ── Africa map ── */
.login-africa {
    position: fixed;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: 44vw;
    max-width: 600px;
    min-width: 260px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.09;
    filter: brightness(2.5) sepia(0.2) hue-rotate(10deg);
    animation: africa-drift 14s ease-in-out infinite;
    user-select: none;
}

/* ── Wrapper (centered column) ── */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    animation: login-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    /* scrollbar hidden but functional */
    scrollbar-width: none;
}
.login-wrapper::-webkit-scrollbar { display: none; }

/* ── Brand block ── */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    animation: brand-fade 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-logo {
    height: 78px;
    width: auto;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 28px rgba(240, 115, 15, 0.28) !important;
    background: transparent !important;
    filter: drop-shadow(0 0 12px rgba(240, 115, 15, 0.35));
}

.login-brand-name {
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.login-brand-tagline {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.79rem;
    letter-spacing: 0.01em;
}

/* ── Card ── */
.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border-top: 3px solid #f0730f;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(240, 115, 15, 0.12),
        0 0 40px rgba(240, 115, 15, 0.07);
    animation: border-pulse 3.5s ease-in-out infinite;
}

/* Orange scan line at top of card */
.login-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #f0730f 30%,
        #ffaa55 50%,
        #f0730f 70%,
        transparent 100%
    );
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.login-card__header {
    padding: 26px 32px 18px;
    border-bottom: 1px solid rgba(60, 60, 59, 0.09);
}

.login-card__header h1 {
    color: #3c3c3b !important;
    font-size: 1.44rem;
    margin: 4px 0 0;
    font-weight: 800;
    text-shadow: none !important;
}

.login-card__header .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 2px;
    pointer-events: none;
}

/* ── Error banner ── */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 32px 0;
    padding: 11px 16px;
    border-radius: 7px;
    background: rgba(220, 38, 38, 0.07);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: 700;
}

/* ── Form ── */
.login-form {
    padding: 22px 32px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

/* ── Field ── */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3c3c3b;
}

.login-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid rgba(60, 60, 59, 0.18);
    border-radius: 7px;
    padding: 12px 14px;
    font-family: 'DroidSansArabic', 'Open Sans', sans-serif;
    font-size: 0.94rem;
    color: #3c3c3b;
    background: #fafaf9;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-field input:focus {
    outline: none;
    background: #ffffff;
    border-color: #f0730f;
    box-shadow: 0 0 0 3px rgba(240, 115, 15, 0.14);
}

/* ── Password wrapper ── */
.login-pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-pwd-wrap input {
    padding-inline-end: 46px;
}

.login-pwd-toggle {
    position: absolute;
    inset-inline-end: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.login-pwd-toggle:hover,
.login-pwd-toggle:focus {
    color: #f0730f;
    outline: none;
}

/* ── Submit ── */
.login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    margin-top: 6px;
    background: #f0730f;
    color: #ffffff;
    border: 2px solid #f0730f;
    border-radius: 7px;
    font-family: 'DroidSansArabic', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Shimmer overlay on submit */
.login-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 60%
    );
    background-size: 200% auto;
    animation: shimmer 2.8s linear infinite;
}

.login-submit:hover {
    background: #ffffff;
    color: #f0730f;
    box-shadow: 0 6px 20px rgba(240, 115, 15, 0.3);
    transform: translateY(-1px);
}

.login-submit:hover::after { opacity: 0; }

.login-submit:focus { outline: none; }

.login-submit:active { transform: translateY(0); }

/* ── Card footer note ── */
.login-card__note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(60, 60, 59, 0.03);
    border-top: 1px solid rgba(60, 60, 59, 0.07);
    color: #9a9a98;
    font-size: 0.79rem;
    margin: 0;
}

.login-card__note svg { flex-shrink: 0; color: #f0730f; }

/* ── Page footer ── */
.login-footer-note {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .login-body { place-items: start center; align-items: start; } /* allow scroll on very small screens */
    .login-africa { right: -18%; width: 70vw; opacity: 0.06; }

    .login-card__header,
    .login-form,
    .login-card__note { padding-inline: 20px; }

    .login-error { margin-inline: 20px; }

    .login-wrapper { padding: 20px 12px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-wrapper,
    .login-brand,
    .login-africa,
    .login-card,
    .login-card::before,
    .login-submit::after { animation: none; }
}
