/* =====================================================
   GULF EVENT PLATFORM — Admin Login Page
   ===================================================== */

:root {
    --navy-deep:   #0C1929;
    --navy-mid:    #152238;
    --navy-card:   #1A2E4A;
    --gold:        #C9A84C;
    --gold-light:  #E8D28A;
    --white:       #FFFFFF;
    --off-white:   #F4F7FB;
    --text-main:   #1A2B3C;
    --text-muted:  #6B7280;
    --border-dark: rgba(255,255,255,.07);
    --shadow-card: 0 12px 48px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
}

*,::before,::after { box-sizing: border-box; }
* { font-family: 'Tajawal', Arial, sans-serif; }

html, body { height: 100%; margin: 0; padding: 0; }

body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: var(--navy-deep);
}

/* ── Geometric grid overlay ────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            transparent, transparent 47px,
            rgba(255,255,255,.022) 47px, rgba(255,255,255,.022) 48px),
        repeating-linear-gradient(90deg,
            transparent, transparent 47px,
            rgba(255,255,255,.022) 47px, rgba(255,255,255,.022) 48px);
    z-index: 0;
}

/* ═══════════════════════════════════════════════
   BRAND PANEL (right in RTL)
   ═══════════════════════════════════════════════ */
.brand-panel {
    flex: 0 0 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    overflow: hidden;
}

/* glow sphere behind content */
.brand-panel::after {
    content: '';
    position: absolute;
    top: -5%;
    inset-inline-start: 15%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse,
        rgba(201,168,76,.13) 0%,
        transparent 68%);
    pointer-events: none;
}

/* thin gold accent line on inner edge */
.brand-panel::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    inset-inline-end: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: .25;
}

.brand-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
    color: var(--white);
    text-align: center;
    animation: fadeSlideUp .6s ease both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-inner img {
    height: 68px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.brand-inner h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px;
    letter-spacing: .01em;
}

.brand-ar {
    font-size: 1.05rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 14px;
}

.brand-divider {
    width: 44px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 14px auto;
    border-radius: 2px;
}

.brand-tagline {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* feature rows */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: start;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 11px 16px;
    transition: background .2s, border-color .2s;
    animation: fadeSlideUp .6s ease both;
}

.brand-feature:nth-child(1) { animation-delay: .1s; }
.brand-feature:nth-child(2) { animation-delay: .18s; }
.brand-feature:nth-child(3) { animation-delay: .26s; }

.brand-feature:hover {
    background: rgba(255,255,255,.075);
    border-color: rgba(201,168,76,.2);
}

.brand-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(201,168,76,.14);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: .95rem;
    flex-shrink: 0;
    transition: background .2s;
}

.brand-feature:hover .brand-feature-icon {
    background: rgba(201,168,76,.22);
}

.brand-feature-text strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.brand-feature-text span {
    font-size: .76rem;
    color: rgba(255,255,255,.45);
}

/* ═══════════════════════════════════════════════
   CONTENT PANEL (left in RTL)
   ═══════════════════════════════════════════════ */
.content-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

.content-box {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeSlideUp .5s ease .15s both;
}

/* mobile brand (hidden on desktop) */
.mobile-brand { display: none; }

/* ── Welcome Card ─────────────────────────────── */
.welcome-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(0,0,0,.055);
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(12,25,41,.06);
    color: var(--navy-mid);
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.welcome-badge-icon {
    color: var(--gold);
    font-size: .8rem;
}

.welcome-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1.4;
}

.welcome-subtitle {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: -6px;
}

/* stat chips */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 7px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--off-white);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    border: 1px solid rgba(0,0,0,.05);
    transition: border-color .2s, box-shadow .2s;
}

.stat-item:hover {
    border-color: rgba(21,34,56,.15);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.stat-item i {
    font-size: 1rem;
    color: var(--navy-mid);
    opacity: .65;
}

.stat-item strong {
    font-size: .78rem;
    font-weight: 800;
    color: var(--navy-deep);
}

.stat-item span {
    font-size: .68rem;
    color: var(--text-muted);
}

/* CTA */
.btn-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--navy-mid);
    color: var(--white);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 11px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(21,34,56,.28);
    position: relative;
    overflow: hidden;
}

.btn-enter::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
}

.btn-enter:hover {
    background: var(--navy-card);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(21,34,56,.38);
}

.btn-enter i { font-size: .9rem; position: relative; z-index: 1; }
.btn-enter span { position: relative; z-index: 1; }

/* language switcher */
.lang-switcher-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.lang-btn {
    padding: 5px 16px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(0,0,0,.11);
    transition: all .2s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--navy-mid);
    color: var(--white);
    border-color: var(--navy-mid);
}

.page-footer {
    text-align: center;
    font-size: .73rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    body { flex-direction: column; }

    .brand-panel { display: none; }
    body::before { display: none; }

    .content-panel {
        flex: 1;
        min-height: 100vh;
        background: var(--navy-deep);
        align-items: flex-start;
        padding: 40px 20px 32px;
    }

    .content-box { max-width: 100%; }

    .mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding-bottom: 4px;
    }

    .mobile-brand img {
        height: 52px;
        max-width: 160px;
        object-fit: contain;
    }

    .mobile-brand h2 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--white);
        margin: 0;
    }

    .mobile-brand .brand-ar {
        font-size: .9rem;
        color: var(--gold-light);
    }

    .lang-btn { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.15); }
    .lang-btn.active, .lang-btn:hover { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

    .page-footer { color: rgba(255,255,255,.3); }
}

@media (max-width: 380px) {
    .welcome-card { padding: 24px 18px; }
    .stat-item { padding: 10px 4px; }
}
