/* ══════════════════════════════════════════════
   نظام إدارة العمارة — ثيم بتدرج أزرق → أحمر
   ══════════════════════════════════════════════ */

:root {
    /* — تدرج العلامة (أزرق عميق → بنفسجي → قرمزي) — */
    --bms-grad-1: #0b1f3f;
    --bms-grad-2: #1e3a8a;
    --bms-grad-3: #6d28d9;
    --bms-grad-4: #be123c;
    --bms-gradient-brand: linear-gradient(118deg, var(--bms-grad-1) 0%, var(--bms-grad-2) 38%, var(--bms-grad-3) 68%, var(--bms-grad-4) 100%);
    --bms-gradient-brand-soft: linear-gradient(145deg, #e8edf7 0%, #f0e8f4 48%, #fce8ec 100%);
    --bms-gradient-cta: linear-gradient(95deg, #2563eb 0%, #7c3aed 52%, #e11d48 100%);
    --bms-gradient-cta-hover: linear-gradient(95deg, #1d4ed8 0%, #6d28d9 50%, #be123c 100%);

    /* — مرجع تصميم عصري (أزرق كويتي / وزاري) — */
    --bms-moe-navy: #14254a;
    --bms-moe-blue: #1e40af;
    --bms-moe-accent: #e9b949;
    /* — مرجع Q8-blog + توحيد جميع الصفحات — */
    --bms-ref-primary: #14254a;
    --bms-ref-primary-light: #2563eb;
    --bms-ref-muted: #64748b;
    --bms-ref-border: #d4dbe8;
    --bms-ref-page: #eef1f8;

    /* — الألوان الأساسية — */
    --bms-primary: #14254a;
    --bms-primary-light: #1e40af;
    --bms-primary-dark: #0c182f;
    --bms-accent: #4f46e5;
    --bms-accent-hover: #4338ca;
    --bms-success: #10b981;
    --bms-secondary-green: #059669;
    --bms-warning: #f59e0b;
    --bms-danger: #ef4444;
    --bms-info: #6366f1;

    /* — pastel badges (مرجع البطاقات) — */
    --bms-pastel-green-bg: #e6f4ea;
    --bms-pastel-green-fg: #34a853;
    --bms-pastel-blue-bg: #e8efff;
    --bms-pastel-blue-fg: #1d4ed8;
    --bms-pastel-orange-bg: #fff7ed;
    --bms-pastel-orange-fg: #ea580c;
    --bms-pastel-purple-bg: #f3e8ff;
    --bms-pastel-purple-fg: #9333ea;

    /* — ألوان الخلفية (أقل «بياضاً»، لمسة دافئة) — */
    --bms-bg: #e4eaf4;
    --bms-bg-card: #fbfcfe;
    --bms-bg-sidebar: #f4f6fb;
    --bms-bg-navbar: transparent;

    /* — النصوص — */
    --bms-text: #1e293b;
    --bms-text-muted: #64748b;
    --bms-text-light: #94a3b8;

    /* — الحدود والظلال — */
    --bms-border: #d0d7e6;
    --bms-border-light: #f1f5f9;
    --bms-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --bms-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --bms-shadow-lg: 0 10px 25px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --bms-radius: 12px;
    --bms-radius-sm: 8px;
    --bms-radius-lg: 16px;

    /* — أبعاد — */
    --bms-sidebar-w: 260px;
    --bms-navbar-h: 64px;
    /* فوتر مثبت أسفل نافذة المتصفح */
    --bms-footer-h: 52px;
}

/* ══════════ الأساسيات ══════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
    /* يمنع انزياح الصفحة عند فتح Modal (Bootstrap يخفي التمرير ويضيف padding-right) */
    scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

body.bms-body.modal-open {
    padding-right: 0 !important;
}

body.bms-body {
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    min-height: 100%;
    background-color: var(--bms-bg);
    background-image:
        radial-gradient(ellipse 100% 70% at 100% -8%, rgba(30, 64, 175, 0.22), transparent 52%),
        radial-gradient(ellipse 85% 55% at -5% 105%, rgba(190, 18, 60, 0.14), transparent 50%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 28px,
            rgba(20, 37, 74, 0.035) 28px,
            rgba(20, 37, 74, 0.035) 29px
        );
    color: var(--bms-text);
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

form#formMaster.bms-master-form,
form.bms-master-form {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

/* ══════════ شريط التنقل العلوي (تدرج أزرق → أحمر) ══════════ */
.bms-navbar {
    flex-shrink: 0;
    background: var(--bms-gradient-brand) !important;
    min-height: var(--bms-navbar-h);
    border: none;
    z-index: 1040;
}
.bms-navbar-elevated {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.bms-navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.3px;
    color: #ffffff !important;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.bms-navbar-brand-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.bms-nav-search {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.12);
    max-width: 520px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}
.bms-nav-search .form-control {
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--bms-text);
}
.bms-nav-search .form-control::placeholder {
    color: #64748b;
}
.bms-nav-search .form-control:focus {
    box-shadow: none;
    background: #ffffff !important;
}
.bms-navbar .btn-primary {
    background: var(--bms-gradient-cta);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.bms-navbar .btn-primary:hover {
    background: var(--bms-gradient-cta-hover);
    border-color: transparent;
    filter: brightness(1.05);
}
.bms-navbar .btn-link.text-primary,
.bms-navbar .btn-link.text-secondary {
    color: rgba(255, 255, 255, 0.92) !important;
}
.bms-navbar .btn-link.text-primary:hover,
.bms-navbar .btn-link.text-secondary:hover {
    color: #ffffff !important;
}
.bms-navbar .dropdown-toggle {
    border-radius: var(--bms-radius-sm);
    font-size: .85rem;
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: var(--bms-primary-dark) !important;
}
.bms-navbar .dropdown-toggle .text-primary {
    color: var(--bms-grad-4) !important;
}
.bms-navbar .dropdown-menu {
    border-radius: var(--bms-radius);
    border: 1px solid var(--bms-border);
    box-shadow: var(--bms-shadow-lg);
    margin-top: 8px;
    padding: 6px;
}
.bms-navbar .dropdown-item {
    border-radius: var(--bms-radius-sm);
    padding: 8px 14px;
    font-size: .9rem;
    transition: background .15s;
}
.bms-navbar .dropdown-item:hover { background: rgba(37, 99, 235, 0.08); }

.bms-navbar .form-select {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: var(--bms-text);
}
.bms-navbar .form-select:focus {
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* ══════════ الشريط الجانبي ══════════ */
.bms-layout {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    width: 100%;
    /* منطقة المحتوى + الشريط حتى أسفل الشاشة فوق الفوتر المثبت */
    min-height: calc(100vh - var(--bms-navbar-h) - var(--bms-footer-h));
}

.bms-sidebar {
    width: var(--bms-sidebar-w);
    min-width: var(--bms-sidebar-w);
    background: transparent;
    border-left: none;
    align-self: stretch;
    min-height: calc(100vh - var(--bms-navbar-h) - var(--bms-footer-h));
    position: sticky;
    top: var(--bms-navbar-h);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 1030;
}
.bms-sidebar-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background-image:
        linear-gradient(180deg, #fdfefe 0%, #f3f5fb 55%, #faf1f4 100%),
        var(--bms-gradient-brand);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    padding: 1rem 1rem 1.15rem;
    margin-top: 2px;
    margin-bottom: 2px;
}
.bms-sidebar-title-wrap {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bms-ref-border);
    position: relative;
}
.bms-sidebar-title {
    display: block;
    font-weight: 900;
    font-size: .95rem;
    color: var(--bms-moe-navy);
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}
.bms-sidebar-title-accent {
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #a855f7 55%, #e11d48);
    border-radius: 3px;
    margin-top: 8px;
}
.bms-side-nav {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.bms-side-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    font-size: .89rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    border: 1px solid rgba(100, 116, 139, 0.35) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    transition: color .18s, background .18s, border-color .18s, box-shadow .2s, transform .15s;
}
.bms-side-link:hover {
    color: var(--bms-moe-navy) !important;
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.95), rgba(255, 241, 242, 0.95)) !important;
    border-color: rgba(124, 58, 237, 0.35) !important;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.12);
    transform: translateY(-1px);
}
.bms-side-link.active,
.bms-side-link[aria-current="page"] {
    color: #fff !important;
    background: var(--bms-gradient-brand) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
}
.bms-side-link.active .bms-side-ico,
.bms-side-link[aria-current="page"] .bms-side-ico {
    background: rgba(255,255,255,.18);
    color: #fff !important;
}
.bms-side-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(225, 29, 72, 0.1));
    color: #1d4ed8;
    font-size: 1rem;
}
.bms-side-link:hover .bms-side-ico {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(225, 29, 72, 0.14));
    color: #be123c;
}

/* ══════════ المحتوى الرئيسي ══════════ */
.bms-main-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding-bottom: var(--bms-footer-h);
}
.bms-main-wrap > div[id*="upMainContent"] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.bms-content {
    flex: 1 1 auto;
    padding: 28px 32px;
    min-height: 0;
}

/* ══════════ البطاقات ══════════ */
.bms-card,
.card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: var(--bms-radius-lg);
    box-shadow: var(--bms-shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.bms-card:hover,
.card:hover {
    box-shadow: var(--bms-shadow);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--bms-border-light);
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bms-primary);
}
.card-body { padding: 24px; }

/* ══════════ العناوين ══════════ */
h1, h2, h3, h4, h5, h6,
.bms-page-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--bms-primary-dark);
}
.bms-page-title {
    font-size: 1.55rem;
    margin-bottom: 6px;
    position: relative;
    padding-bottom: 12px;
}
.bms-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 56px;
    height: 3px;
    background: var(--bms-gradient-cta);
    border-radius: 3px;
}

/* ══════════ النماذج ══════════ */
.form-control,
.form-select {
    border: 1.5px solid var(--bms-border);
    border-radius: var(--bms-radius-sm);
    padding: 10px 14px;
    font-size: .9rem;
    color: var(--bms-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    outline: none;
}
.form-label,
label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--bms-text);
    margin-bottom: 6px;
}
.form-text {
    font-size: .8rem;
    color: var(--bms-text-muted);
}

/* ══════════ الأزرار ══════════ */
.btn {
    font-weight: 600;
    font-size: .9rem;
    border-radius: var(--bms-radius-sm);
    padding: 9px 22px;
    transition: all .2s;
    letter-spacing: -.2px;
}
.btn-primary,
.bms-btn-primary {
    background: var(--bms-gradient-cta);
    border-color: transparent;
    color: #fff;
}
.btn-bms-primary {
    background: var(--bms-gradient-cta);
    border-color: transparent;
    color: #fff;
}
.btn-primary:hover,
.bms-btn-primary:hover {
    background: var(--bms-gradient-cta-hover);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(190, 18, 60, 0.28);
}
.btn-bms-primary:hover {
    background: var(--bms-gradient-cta-hover);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(190, 18, 60, 0.28);
}
.btn-success { background: var(--bms-success); border-color: var(--bms-success); }
.btn-success:hover { background: #059669; border-color: #059669; }
.btn-danger { background: var(--bms-danger); border-color: var(--bms-danger); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.btn-warning { background: var(--bms-warning); border-color: var(--bms-warning); color: #fff; }
.btn-outline-primary {
    color: #4338ca;
    border-color: rgba(124, 58, 237, 0.55);
    background: rgba(255, 255, 255, 0.85);
}
.btn-outline-primary:hover {
    background: var(--bms-gradient-cta);
    border-color: transparent;
    color: #fff;
}
.btn-sm {
    padding: 6px 14px;
    font-size: .82rem;
}

/* ══════════ الجداول ══════════ */
.table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
}
.table thead th {
    background: linear-gradient(180deg, #eef2ff 0%, #fce7f3 100%);
    color: var(--bms-primary);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px 16px;
    border-bottom: 2px solid var(--bms-border);
    white-space: nowrap;
}
.table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bms-border-light);
    color: var(--bms-text);
}
.table tbody tr {
    transition: background .15s;
}
.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}
.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(241,245,249,.5);
}

/* ══════════ الشارات (Badges) ══════════ */
.badge {
    font-weight: 600;
    font-size: .75rem;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .2px;
}
.badge.bg-success { background: rgba(16,185,129,.12) !important; color: #059669; }
.badge.bg-danger { background: rgba(239,68,68,.1) !important; color: #dc2626; }
.badge.bg-warning { background: rgba(245,158,11,.12) !important; color: #b45309; }
.badge.bg-info { background: rgba(99,102,241,.1) !important; color: var(--bms-info); }
.badge.bg-primary { background: rgba(14,165,233,.1) !important; color: var(--bms-accent-hover); }

/* ══════════ التنبيهات ══════════ */
.alert {
    border-radius: var(--bms-radius);
    border: none;
    font-size: .9rem;
    padding: 14px 20px;
}
.alert-success { background: rgba(16,185,129,.08); color: #065f46; border-right: 4px solid var(--bms-success); }
.alert-danger { background: rgba(239,68,68,.06); color: #991b1b; border-right: 4px solid var(--bms-danger); }
.alert-warning { background: rgba(245,158,11,.08); color: #78350f; border-right: 4px solid var(--bms-warning); }
.alert-info { background: rgba(99,102,241,.06); color: #3730a3; border-right: 4px solid var(--bms-info); }

/* ══════════ النوافذ المنبثقة (Modals) ══════════ */
.modal-content {
    border: none;
    border-radius: var(--bms-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    overflow: hidden;
}
.modal-header {
    background: var(--bms-bg);
    border-bottom: 1px solid var(--bms-border);
    padding: 18px 24px;
}
.modal-header .modal-title {
    font-weight: 700;
    color: var(--bms-primary);
    font-size: 1.05rem;
}
.modal-body { padding: 24px; }
.modal-footer {
    border-top: 1px solid var(--bms-border-light);
    padding: 16px 24px;
    background: var(--bms-bg);
}

/* ══════════ الفوتر ══════════ */
.bms-footer {
    border-top: 1px solid var(--bms-border);
    background: var(--bms-bg-card);
    font-size: .82rem;
}
.bms-footer.bms-footer-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1020;
    margin: 0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    min-height: var(--bms-footer-h);
    border-radius: 0;
    border-top: 1px solid rgba(30, 64, 175, 0.12);
    background: linear-gradient(90deg, #f1f5f9 0%, #fdf2f4 50%, #f1f5f9 100%);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══════════ إحصائيات اللوحة ══════════ */
.bms-stat-card {
    border-radius: var(--bms-radius-lg);
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--bms-border);
    box-shadow: var(--bms-shadow-sm);
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.bms-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 var(--bms-radius-lg) var(--bms-radius-lg) 0;
}
.bms-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bms-shadow-lg);
}
.bms-stat-card.accent::before { background: var(--bms-gradient-cta); }
.bms-stat-card.success::before { background: var(--bms-success); }
.bms-stat-card.warning::before { background: var(--bms-warning); }
.bms-stat-card.danger::before { background: var(--bms-danger); }
.bms-stat-card.info::before { background: var(--bms-info); }

/* ══════════ Sidebar backdrop — mobile ══════════ */
.bms-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(4px);
    z-index: 1025;
}

/* ══════════ لوحة التحكم — بطاقات مرجعية (أقسام / شبكة عقارات) ══════════ */
.bms-section-head {
    text-align: center;
    margin-bottom: 1.75rem;
}
.bms-section-badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(225, 29, 72, 0.1));
    color: #1e3a8a;
    border: 1px solid rgba(124, 58, 237, 0.22);
    margin-bottom: .6rem;
}
.bms-section-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--bms-ref-primary);
    margin: 0;
    line-height: 1.35;
}
.bms-section-sub {
    color: var(--bms-ref-muted);
    font-size: .95rem;
    margin: .35rem 0 0;
}
.bms-ref-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 15px;
    border: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.75rem;
    overflow: hidden;
}
.bms-ref-panel-header {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: var(--bms-gradient-brand-soft);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--bms-ref-primary);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: .65rem;
    position: relative;
}
.bms-ref-panel-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--bms-gradient-cta);
    opacity: 0.55;
}
.bms-ref-panel-header i {
    color: #7c3aed;
    font-size: 1.08em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.bms-ref-panel-body {
    padding: 1.35rem 1.35rem 1.5rem;
}
.bms-category-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.85rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.bms-building-picker-card:hover .bms-category-icon-wrap {
    transform: scale(1.06);
}
.bms-cat-green { background: var(--bms-pastel-green-bg); color: var(--bms-pastel-green-fg); }
.bms-cat-blue { background: var(--bms-pastel-blue-bg); color: var(--bms-pastel-blue-fg); }
.bms-cat-orange { background: var(--bms-pastel-orange-bg); color: var(--bms-pastel-orange-fg); }
.bms-cat-purple { background: var(--bms-pastel-purple-bg); color: var(--bms-pastel-purple-fg); }
.bms-building-picker-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.35rem 1rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: border-color .2s, box-shadow .25s, transform .2s;
    text-align: center;
}
a.bms-building-picker-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 32px rgba(30, 58, 138, 0.12);
    transform: translateY(-4px);
    color: inherit;
}
.bms-building-picker-card.is-current {
    border-color: transparent;
    background-image:
        linear-gradient(#fff, #fff),
        var(--bms-gradient-cta);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.2);
}
.bms-building-picker-card .bms-bc-name {
    font-weight: 800;
    font-size: .98rem;
    color: var(--bms-text);
    margin-bottom: .35rem;
    line-height: 1.4;
}
.bms-building-picker-card .bms-bc-code {
    font-size: .85rem;
    color: var(--bms-ref-muted);
    margin-bottom: .75rem;
}
.bms-pill-soft {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: var(--bms-pastel-green-bg);
    color: #047857;
}
.bms-kv-board {
    border-radius: 14px;
    border: 1px solid var(--bms-ref-border);
    overflow: hidden;
    background: #fff;
}
.bms-kv-board .bms-kv-inner dt {
    font-size: .78rem;
    font-weight: 700;
    color: var(--bms-ref-muted);
    margin: 0 0 .2rem;
    text-transform: none;
}
.bms-kv-board .bms-kv-inner dd {
    margin: 0;
    font-weight: 600;
    color: var(--bms-text);
    font-size: .92rem;
    line-height: 1.5;
}
.bms-kv-board .bms-kv-inner .row > div {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--bms-border-light);
}
@media (min-width: 768px) {
    .bms-kv-board .bms-kv-inner .row > div.col-md-6:nth-child(odd) {
        border-inline-end: 1px solid var(--bms-border-light);
    }
}
.bms-overview-logo-cell {
    border-bottom: 1px solid var(--bms-border-light);
}
@media (min-width: 768px) {
    .bms-overview-logo-cell {
        border-bottom: none;
        border-inline-end: 1px solid var(--bms-border-light);
    }
}
.bms-overview-logo {
    max-height: 88px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--bms-ref-border);
    padding: 6px;
    background: #fafafa;
}
.bms-dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.5rem 1.65rem;
    background: var(--bms-gradient-brand);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.bms-dash-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 120%, rgba(248, 250, 252, 0.18), transparent 55%),
        radial-gradient(ellipse 55% 45% at 95% -10%, rgba(248, 113, 113, 0.22), transparent 50%);
    pointer-events: none;
}
.bms-dash-hero > * {
    position: relative;
    z-index: 1;
}
.bms-dash-hero h1,
.bms-dash-hero .h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}
.bms-dash-hero .bms-section-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}
.bms-dash-hero .bms-dash-welcome {
    color: rgba(255, 255, 255, 0.9);
    font-size: .92rem;
    margin-top: .25rem;
}
.bms-dash-hero .badge.bg-light {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #334155 !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
.bms-dash-hero .bms-dash-role-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    font-weight: 700;
}
.bms-sidebar-backdrop.show { display: block; }

/* ══════════ Scrollbar ══════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ══════════ Animations ══════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.bms-content { animation: fadeInUp .35s ease-out; }

/* ══════════ SweetAlert2 تخصيص ══════════ */
.swal2-popup {
    font-family: 'Cairo', sans-serif !important;
    border-radius: var(--bms-radius-lg) !important;
}
.swal2-confirm {
    background: var(--bms-gradient-cta) !important;
    border: none !important;
    border-radius: var(--bms-radius-sm) !important;
}

/* ══════════ Flatpickr تخصيص ══════════ */
.flatpickr-calendar {
    font-family: 'Cairo', sans-serif;
    border-radius: var(--bms-radius);
    box-shadow: var(--bms-shadow-lg);
    border: 1px solid var(--bms-border);
}

/* ══════════ التصميم المتجاوب ══════════ */
@media (max-width: 991.98px) {
    .bms-sidebar {
        position: fixed;
        top: var(--bms-navbar-h);
        right: 0;
        height: calc(100vh - var(--bms-navbar-h) - var(--bms-footer-h));
        min-height: calc(100vh - var(--bms-navbar-h) - var(--bms-footer-h));
        max-height: calc(100vh - var(--bms-navbar-h) - var(--bms-footer-h));
        transform: translateX(100%);
        box-shadow: -5px 0 25px rgba(0,0,0,.15);
    }
    .bms-sidebar.show {
        transform: translateX(0);
    }
    .bms-content {
        padding: 20px 16px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --bms-navbar-h: 56px;
    }
    .bms-content { padding: 16px 12px; }
    .card-body { padding: 16px; }
    .table { font-size: .82rem; }
    .table thead th, .table tbody td { padding: 10px 10px; }
    .btn { padding: 8px 16px; font-size: .84rem; }
}

/* ══════════ طباعة ══════════ */
@media print {
    .bms-update-progress-overlay,
    .bms-navbar, .bms-sidebar, .bms-footer,
    .bms-sidebar-backdrop, .btn { display: none !important; }
    .bms-main-wrap { width: 100% !important; }
    .bms-content { padding: 0 !important; animation: none !important; }
    body { background: #fff !important; font-size: 12pt; }
}

/* ══════════ Homepage (متوافق مع الصفحة الرئيسية) ══════════ */
.bms-home-services .bms-svc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 200px;
    padding: 1.35rem 1rem .85rem;
    background: #fff;
    border: 1px solid rgba(20, 37, 74, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 37, 74, 0.07);
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    overflow: visible;
    transition: transform .22s ease, box-shadow .22s ease, border-color .2s;
}
.bms-home-services .bms-svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 37, 74, 0.13);
    border-color: rgba(37, 99, 235, 0.35);
}
.bms-svc-diamond {
    width: 52px;
    height: 52px;
    background: var(--bms-gradient-cta);
    color: #fff;
    transform: rotate(45deg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -36px auto 14px;
    box-shadow: 0 10px 24px rgba(20, 37, 74, 0.3);
}
.bms-svc-diamond i {
    transform: rotate(-45deg);
    font-size: 1.35rem;
}
.bms-svc-title {
    font-weight: 800;
    font-size: .97rem;
    color: var(--bms-moe-navy);
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}
.bms-svc-desc {
    font-size: .79rem;
    color: var(--bms-ref-muted);
    line-height: 1.55;
    margin: 0 0 auto;
    flex: 1;
    max-width: 100%;
}
.bms-svc-foot {
    margin-top: 14px;
    width: calc(100% + 2rem);
    margin-inline: -1rem;
    margin-bottom: -.85rem;
    padding: 10px 1rem;
    background: linear-gradient(90deg, #e8efff 0%, #fdf2f8 50%, #e8efff 100%);
    border-top: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 0 0 13px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: #5b21b6;
}
.bms-home-services .bms-svc-card:hover .bms-svc-foot {
    background: linear-gradient(90deg, #dbeafe 0%, #fce7f3 50%, #dbeafe 100%);
}
.bms-home-actions-bar {
    border-left: 4px solid var(--bms-accent);
}

.bms-update-progress-host {
    position: relative;
}
.bms-update-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 10600;
    background: rgba(12, 24, 48, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bms-update-progress-modal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 1.65rem 2.25rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(20, 37, 74, 0.25);
}
.bms-update-progress-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #be123c;
    animation: bms-spin-load 0.75s linear infinite;
}
@keyframes bms-spin-load {
    to { transform: rotate(360deg); }
}
.bms-update-progress-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bms-moe-navy);
    font-family: 'Cairo', sans-serif;
}

.bms-home-hero {
    background: linear-gradient(125deg, #0c182f 0%, var(--bms-moe-navy) 38%, var(--bms-moe-blue) 100%);
    border-radius: var(--bms-radius-lg);
    box-shadow: 0 16px 36px rgba(15, 36, 64, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.bms-home-hero .card-body {
    position: relative;
}
.bms-home-glow {
    position: absolute;
    left: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,.28) 0%, rgba(14,165,233,0) 70%);
    pointer-events: none;
}
.bms-home-title-wrap h1,
.bms-home-title-wrap .h2,
.bms-home-hero h1 {
    color: #fff !important;
    text-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.bms-home-hero .text-white-50 {
    color: rgba(255,255,255,.82) !important;
}
.bms-home-badge {
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.24);
    font-weight: 700;
}

.bms-home-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f5;
    border-radius: var(--bms-radius-lg);
    box-shadow: var(--bms-shadow-sm);
    transition: all .22s ease;
}
.bms-home-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bms-shadow-lg);
}

/* تحسين شكل الأزرار السريعة في الرئيسية */
.bms-home-stat-card .btn,
.bms-stat-card .btn.rounded-pill {
    font-weight: 700;
}

/* ══════════ Default.aspx — عمارات العربيد (واجهة الهبوط العامة) ══════════ */
.bms-landing-body {
    background: #f4f1ea;
    background-image: repeating-linear-gradient(
        -8deg,
        transparent,
        transparent 32px,
        rgba(20, 37, 74, 0.02) 32px,
        rgba(20, 37, 74, 0.02) 33px
    );
}

.bms-landing-body .bms-navbar.navbar-dark {
    background: linear-gradient(90deg, var(--bms-moe-navy) 0%, #1a3560 50%, var(--bms-moe-blue) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(12, 24, 48, 0.25);
}
.bms-landing-body .bms-navbar .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.15rem;
}

.bms-navbar-logo-wrap {
    padding: 4px 8px;
    line-height: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(12, 24, 48, 0.12);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bms-navbar .navbar-brand:hover .bms-navbar-logo-wrap {
    box-shadow: 0 6px 18px rgba(12, 24, 48, 0.18);
    transform: translateY(-1px);
}

.bms-navbar-logo {
    height: 38px;
    width: auto;
    max-width: 140px;
    display: block;
    object-fit: contain;
    object-position: center;
}
.bms-landing-body .bms-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
    transition: color .2s ease, transform .2s ease;
}
.bms-landing-body .bms-navbar .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.bms-landing-hero {
    background: linear-gradient(135deg, #0c182f 0%, var(--bms-moe-navy) 45%, #1e4894 100%);
    color: #fff;
}
.bms-landing-mesh {
    background:
        radial-gradient(ellipse 90% 55% at 15% 75%, rgba(56, 129, 246, 0.18), transparent 52%),
        radial-gradient(ellipse 70% 50% at 85% 25%, rgba(233, 185, 73, 0.09), transparent 50%);
    pointer-events: none;
}
.bms-landing-title {
    opacity: 0;
    animation: bms-arbeed-fade-up 0.75s ease forwards;
    animation-delay: 0.06s;
}
.bms-landing-title-sub {
    opacity: 0;
    animation: bms-arbeed-fade-up 0.75s ease forwards;
    animation-delay: 0.14s;
}
.bms-landing-lead,
.bms-landing-hero .btn {
    opacity: 0;
    animation: bms-arbeed-fade-up 0.78s ease forwards;
    animation-delay: 0.22s;
}
.bms-landing-showcase {
    opacity: 0;
    animation: bms-arbeed-fade-up 0.85s ease forwards;
    animation-delay: 0.28s;
}
@keyframes bms-arbeed-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
.bms-landing-stat {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid rgba(20, 37, 74, 0.08);
    transition: transform .32s ease, box-shadow .32s ease, border-color .25s ease;
}
.bms-landing-stat:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 34px rgba(20, 37, 74, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}
.bms-landing-stat i {
    transition: transform .3s ease;
}
.bms-landing-stat:hover i {
    transform: scale(1.12);
}

.bms-arbeed-section {
    background: #faf7f1;
}
.bms-arbeed-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.bms-arbeed-section-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    color: var(--bms-moe-navy);
    margin-bottom: 0.5rem;
}
.bms-arbeed-section-accent {
    display: block;
    width: 56px;
    height: 4px;
    margin: 0 auto 0.85rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #e9b949, #fde68a);
}
.bms-arbeed-section-sub {
    color: #64748b;
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.bms-arbeed-card {
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 37, 74, 0.07);
    height: 100%;
    text-align: center;
    padding: 1.85rem 1.35rem;
    transition: transform .35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow .35s ease, border-color .25s ease;
    border: 1px solid rgba(20, 37, 74, 0.06);
}
.bms-arbeed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 48px rgba(20, 37, 74, 0.13);
    border-color: rgba(37, 99, 235, 0.22);
}
.bms-arbeed-card-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    transition: transform .35s ease;
    box-shadow: 0 10px 22px rgba(20, 37, 74, 0.18);
}
.bms-arbeed-card:hover .bms-arbeed-card-ico {
    transform: scale(1.08) rotate(-3deg);
}
.bms-arbeed-ico-1 { background: linear-gradient(135deg, #c2410c, #ea580c); }
.bms-arbeed-ico-2 { background: linear-gradient(135deg, #b45309, #eab308); }
.bms-arbeed-ico-3 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.bms-arbeed-ico-4 { background: linear-gradient(135deg, #047857, #10b981); }
.bms-arbeed-ico-5 { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.bms-arbeed-ico-6 { background: linear-gradient(135deg, #be123c, #f43f5e); }

.bms-arbeed-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bms-moe-navy);
    margin-bottom: 0.5rem;
}
.bms-arbeed-card p {
    font-size: 0.89rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
}

.bms-arbeed-cta {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}
.bms-arbeed-cta .btn {
    transition: transform .22s ease, box-shadow .22s ease;
}
.bms-arbeed-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.bms-landing-footer-dark {
    background: linear-gradient(180deg, var(--bms-moe-navy) 0%, #0c182f 100%);
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bms-landing-footer-dark a {
    color: #fde68a;
    text-decoration: none;
    font-weight: 700;
    transition: color .2s ease, opacity .2s ease;
}
.bms-landing-footer-dark a:hover {
    color: #fff;
}

/* ══════════ Login.aspx — عمارات العربيد ══════════ */
.bms-login-page .bms-navbar {
    flex-shrink: 0;
}

.bms-login-main {
    position: relative;
}

.bms-login-hero-pane {
    position: relative;
    background: linear-gradient(135deg, #0c182f 0%, var(--bms-moe-navy) 45%, #1e4894 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(12, 24, 48, 0.28);
    min-height: 420px;
    transition: transform 0.4s cubic-bezier(0.34, 1.15, 0.64, 1), box-shadow 0.4s ease;
}

.bms-login-hero-pane:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(12, 24, 48, 0.35);
}

.bms-login-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 15% 78%, rgba(56, 129, 246, 0.22), transparent 52%),
        radial-gradient(ellipse 72% 50% at 88% 18%, rgba(233, 185, 73, 0.14), transparent 50%);
    pointer-events: none;
}

@keyframes bms-login-fade-slide {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bms-login-hero-animate-title {
    opacity: 0;
    animation: bms-login-fade-slide 0.78s ease forwards;
    animation-delay: 0.08s;
}

.bms-login-hero-animate-sub {
    opacity: 0;
    animation: bms-login-fade-slide 0.78s ease forwards;
    animation-delay: 0.16s;
}

.bms-login-hero-list {
    opacity: 0;
    animation: bms-login-fade-slide 0.8s ease forwards;
    animation-delay: 0.24s;
}

.bms-login-hero-list li {
    padding: 0.42rem 0;
    padding-right: 0.35rem;
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, color 0.25s ease;
}

.bms-login-hero-list li:last-child {
    border-bottom: 0;
}

.bms-login-hero-list li:hover {
    transform: translateX(-4px);
    color: #fff;
}

.bms-login-shell {
    max-width: 448px;
    animation: bms-login-fade-slide 0.72s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.bms-login-brand-ico {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, var(--bms-moe-navy));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
    transition: transform 0.35s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.35s ease;
}

.bms-login-form-card:hover .bms-login-brand-ico {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.bms-login-form-card {
    border-radius: 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(20, 37, 74, 0.08);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.15, 0.64, 1), box-shadow 0.4s ease,
        border-color 0.35s ease;
    box-shadow: 0 20px 54px rgba(20, 37, 74, 0.12) !important;
}

.bms-login-form-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 28px 64px rgba(20, 37, 74, 0.16) !important;
}

.bms-login-addon {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-color: rgba(20, 37, 74, 0.1) !important;
    color: var(--bms-moe-navy);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.input-group:focus-within .bms-login-addon {
    border-color: rgba(37, 99, 235, 0.45) !important;
    color: #2563eb;
    background: #eff6ff !important;
}

.bms-login-input.form-control {
    border-color: rgba(20, 37, 74, 0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.bms-login-input.form-control:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.input-group:not(:focus-within) .bms-login-input.form-control:not(:placeholder-shown) {
    transform: translateZ(0);
}

.bms-login-btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bms-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.32);
}

.bms-login-alert {
    border-radius: 12px !important;
    animation: bms-login-fade-slide 0.45s ease forwards;
}

.bms-login-link {
    color: var(--bms-moe-navy);
    transition: color 0.22s ease, transform 0.22s ease;
}

.bms-login-link:hover {
    color: #2563eb;
}

.bms-login-mobile-hint {
    animation: bms-login-fade-slide 0.6s ease forwards;
    animation-delay: 0.35s;
    opacity: 0;
    animation-fill-mode: forwards;
}