﻿/* Authentication pages only: admin/login.php and employee/login.php. */

.auth-shell { max-width: 1100px; width: 100%; min-height: 680px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-panel { justify-content: center; }
.auth-card { margin: 0; }
.auth-form-grid { grid-template-columns: 1fr; }
.auth-actions { margin-top: 8px; }
.auth-form-section { display: block; max-width: 540px; }
/* Employee login repair: fixed asset-root bug support, Tajawal typography, and a complete RTL auth layout. */
body.auth-page.employee-auth-page {
    --employee-auth-primary: #ff5a2f;
    --employee-auth-primary-dark: #e84a23;
    --employee-auth-ink: #21140d;
    --employee-auth-muted: #6b5a50;
    --employee-auth-surface: #ffffff;
    --employee-auth-soft: #fff7ed;
    --employee-auth-page: #fdebdc;
    --employee-auth-border: #efd3c0;
    min-height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    padding: 32px !important;
    direction: rtl !important;
    overflow: auto !important;
    background: #fdebdc !important;
    color: var(--employee-auth-ink) !important;
    font-family: var(--system-font-family, var(--msar-arabic-font-stack, "Droid Arabic Kufi", "Droid Kufi", "DroidKufi-Regular", Tahoma, Arial, sans-serif)) !important;
    line-height: 1.6 !important;
}

body.auth-page.employee-auth-page *,
body.auth-page.employee-auth-page input,
body.auth-page.employee-auth-page button,
body.auth-page.employee-auth-page a {
    font-family: var(--system-font-family, var(--msar-arabic-font-stack, "Droid Arabic Kufi", "Droid Kufi", "DroidKufi-Regular", Tahoma, Arial, sans-serif)) !important;
}

body.auth-page.employee-auth-page .auth-shell {
    width: min(1120px, 100%) !important;
    min-height: min(700px, calc(100vh - 64px)) !important;
    display: grid !important;
    grid-template-columns: minmax(310px, .9fr) minmax(420px, 1.1fr) !important;
    overflow: hidden !important;
    border: 1px solid rgba(239, 211, 192, .85) !important;
    border-radius: 28px !important;
    background: var(--employee-auth-surface) !important;
    box-shadow: 0 28px 70px rgba(95, 50, 25, .16) !important;
}

body.auth-page.employee-auth-page .auth-side-info {
    position: relative !important;
    min-height: auto !important;
    top: auto !important;
    overflow: hidden !important;
    padding: 38px !important;
    background:
        linear-gradient(160deg, rgba(33, 20, 13, .98), rgba(80, 43, 26, .96)),
        var(--employee-auth-ink) !important;
    color: #fff !important;
}

body.auth-page.employee-auth-page .auth-side-info::before {
    content: "" !important;
    position: absolute !important;
    inset: -80px auto auto -80px !important;
    width: 220px !important;
    height: 220px !important;
    border-radius: 50% !important;
    border: 38px solid rgba(255, 90, 47, .14) !important;
    pointer-events: none !important;
}

body.auth-page.employee-auth-page .brand-inline-top {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
}

body.auth-page.employee-auth-page .brand-inline-top img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    padding: 8px !important;
    object-fit: contain !important;
}

body.auth-page.employee-auth-page .brand-title {
    margin: 0 0 6px !important;
    padding: 0 14px 0 0 !important;
    border-right: 4px solid var(--employee-auth-primary) !important;
    color: #fff !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

body.auth-page.employee-auth-page .brand-subtitle {
    color: rgba(255,255,255,.74) !important;
    font-size: .92rem !important;
    line-height: 1.75 !important;
}

body.auth-page.employee-auth-page .track-list {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    gap: 10px !important;
    margin: 38px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.auth-page.employee-auth-page .track-item {
    position: relative !important;
    margin: 0 !important;
    padding: 12px 44px 12px 14px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.05) !important;
    color: rgba(255,255,255,.76) !important;
    font-size: .94rem !important;
    font-weight: 700 !important;
    line-height: 1.75 !important;
}

body.auth-page.employee-auth-page .track-item::after {
    content: "" !important;
    position: absolute !important;
    top: 18px !important;
    right: 17px !important;
    width: 10px !important;
    height: 10px !important;
    border: 2px solid currentColor !important;
    border-radius: 50% !important;
    background: transparent !important;
}

body.auth-page.employee-auth-page .track-item.active {
    border-color: rgba(255, 90, 47, .34) !important;
    background: rgba(255, 90, 47, .12) !important;
    color: #fff !important;
}

body.auth-page.employee-auth-page .track-item.active::after {
    background: var(--employee-auth-primary) !important;
    border-color: var(--employee-auth-primary) !important;
    box-shadow: 0 0 0 5px rgba(255, 90, 47, .16) !important;
}

body.auth-page.employee-auth-page .side-footer {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 28px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    color: rgba(255,255,255,.62) !important;
    font-size: .82rem !important;
    line-height: 1.8 !important;
}

body.auth-page.employee-auth-page .auth-panel {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 54px !important;
    overflow: auto !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,245,.96)),
        var(--employee-auth-surface) !important;
}

body.auth-page.employee-auth-page .auth-form-section {
    display: block !important;
    width: min(520px, 100%) !important;
    max-width: 520px !important;
}

body.auth-page.employee-auth-page .section-head {
    margin: 0 0 22px !important;
}

body.auth-page.employee-auth-page .employee-auth-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 7px 12px !important;
    border: 1px solid rgba(255, 90, 47, .2) !important;
    border-radius: 999px !important;
    background: var(--employee-auth-soft) !important;
    color: var(--employee-auth-primary-dark) !important;
    font-size: .84rem !important;
    font-weight: 800 !important;
}

body.auth-page.employee-auth-page .employee-auth-kicker i,
body.auth-page.employee-auth-page i[class*="fa-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-style: normal !important;
    line-height: 1 !important;
    transform: none !important;
}

body.auth-page.employee-auth-page .section-head h2 {
    margin: 0 0 8px !important;
    color: var(--employee-auth-ink) !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}

body.auth-page.employee-auth-page .section-head p {
    margin: 0 !important;
    color: var(--employee-auth-muted) !important;
    font-size: .98rem !important;
    line-height: 1.9 !important;
}

body.auth-page.employee-auth-page .auth-card {
    margin: 0 !important;
    padding: 28px !important;
    border: 1px solid var(--employee-auth-border) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(95, 50, 25, .10) !important;
}

body.auth-page.employee-auth-page .auth-form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin: 0 !important;
}

body.auth-page.employee-auth-page .field {
    margin: 0 !important;
}

body.auth-page.employee-auth-page .field label {
    display: block !important;
    margin: 0 0 8px !important;
    color: var(--employee-auth-ink) !important;
    font-size: .9rem !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
}

body.auth-page.employee-auth-page .input-ctrl {
    height: 48px !important;
    width: 100% !important;
    border: 1px solid #d9c1b1 !important;
    border-radius: 10px !important;
    background: #fffaf7 !important;
    color: var(--employee-auth-ink) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding: 10px 13px !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease !important;
}

body.auth-page.employee-auth-page .input-ctrl:focus {
    outline: none !important;
    border-color: var(--employee-auth-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 90, 47, .12) !important;
}

body.auth-page.employee-auth-page .auth-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 10px !important;
    margin-top: 22px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.auth-page.employee-auth-page .auth-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 46px !important;
    border-radius: 10px !important;
    padding: 11px 18px !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    transform: none !important;
}

body.auth-page.employee-auth-page .auth-actions .btn-primary {
    border: 1px solid var(--employee-auth-primary) !important;
    background: var(--employee-auth-primary) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(255, 90, 47, .22) !important;
}

body.auth-page.employee-auth-page .auth-actions .btn-primary:hover {
    background: var(--employee-auth-primary-dark) !important;
    border-color: var(--employee-auth-primary-dark) !important;
    box-shadow: 0 16px 30px rgba(255, 90, 47, .26) !important;
}

body.auth-page.employee-auth-page .auth-actions .btn-ghost {
    border: 1px solid #d9c1b1 !important;
    background: #fffaf7 !important;
    color: var(--employee-auth-muted) !important;
}

body.auth-page.employee-auth-page .auth-actions .btn-ghost:hover {
    background: var(--employee-auth-soft) !important;
    border-color: var(--employee-auth-primary) !important;
    color: var(--employee-auth-primary-dark) !important;
}

body.auth-page.employee-auth-page .alert {
    margin: 0 0 16px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
}

@media (max-width: 900px) {
    body.auth-page.employee-auth-page {
        padding: 16px !important;
        place-items: start center !important;
    }

    body.auth-page.employee-auth-page .auth-shell {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        border-radius: 22px !important;
    }

    body.auth-page.employee-auth-page .auth-side-info {
        padding: 26px !important;
    }

    body.auth-page.employee-auth-page .track-list {
        display: none !important;
    }

    body.auth-page.employee-auth-page .auth-panel {
        padding: 30px 22px !important;
    }
}

@media (max-width: 560px) {
    body.auth-page.employee-auth-page .brand-inline-top {
        grid-template-columns: 58px minmax(0, 1fr) !important;
    }

    body.auth-page.employee-auth-page .brand-inline-top img {
        width: 58px !important;
        height: 58px !important;
        border-radius: 14px !important;
    }

    body.auth-page.employee-auth-page .section-head h2 {
        font-size: 1.45rem !important;
    }

    body.auth-page.employee-auth-page .auth-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

body.auth-page.employee-auth-page.admin-auth-page {
    --employee-auth-primary: #2563eb;
    --employee-auth-primary-dark: #174ea6;
    --employee-auth-ink: #111827;
    --employee-auth-muted: #536179;
    --employee-auth-soft: #eef5ff;
    --employee-auth-page: #F8FAFC;
    --employee-auth-border: #c9d8ea;
    position: relative !important;
    isolation: isolate !important;
    background: #F8FAFC !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-shell {
    position: relative !important;
    z-index: 1 !important;
    border-color: rgba(37, 99, 235, .20) !important;
    box-shadow: 0 30px 86px rgba(15, 23, 42, .16) !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-side-info {
    background:
        linear-gradient(160deg, rgba(9, 23, 51, .98), rgba(20, 58, 118, .96) 58%, rgba(41, 31, 24, .94)),
        #091733 !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-side-info::before {
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 42%, rgba(197, 138, 58, .20) 42% 42.45%, transparent 42.45% 100%) !important;
    background-size: 38px 38px, 38px 38px, 100% 100% !important;
    opacity: .58 !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-side-info::after {
    content: "" !important;
    position: absolute !important;
    inset: auto 34px 34px 34px !important;
    height: 104px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08), transparent 52%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 18px) !important;
    opacity: .50 !important;
}

body.auth-page.employee-auth-page.admin-auth-page .brand-title {
    border-right-color: var(--employee-auth-primary) !important;
}

body.auth-page.employee-auth-page.admin-auth-page .track-item.active {
    border-color: rgba(96, 165, 250, .42) !important;
    background: rgba(37, 99, 235, .18) !important;
}

body.auth-page.employee-auth-page.admin-auth-page .track-item.active::after {
    background: #60a5fa !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, .16) !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-panel {
    position: relative !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.95)),
        #fff !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-panel::before {
    content: "" !important;
    position: absolute !important;
    inset: 34px !important;
    border: 1px solid rgba(37, 99, 235, .09) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(37,99,235,.04) 1px, transparent 1px) !important;
    background-size: 36px 36px !important;
    opacity: .72 !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-form-section {
    position: relative !important;
    z-index: 1 !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-card {
    border-color: rgba(37, 99, 235, .18) !important;
    box-shadow: 0 18px 46px rgba(37, 99, 235, .10) !important;
}

body.auth-page.employee-auth-page.admin-auth-page .employee-auth-kicker {
    border-color: rgba(37, 99, 235, .20) !important;
    background: #eef5ff !important;
    color: #174ea6 !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-actions .btn-primary {
    border-color: #2563eb !important;
    background: #2563eb !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22) !important;
}

body.auth-page.employee-auth-page.admin-auth-page .auth-actions .btn-primary:hover {
    border-color: #174ea6 !important;
    background: #174ea6 !important;
}

