/* ==========================================================================
   Ho Technical University — Accommodation
   Polished Admin UI theme layer on top of Bootstrap 5.3
   Re-brand by changing ONLY the --ui-brand* and --ui-accent* tokens below.
   ========================================================================== */

:root {
    /* Brand: HTU crest navy (#000066), lifted slightly for buttons and links. Keep --ui-brand-rgb in sync. */
    --ui-brand: #13138a;
    --ui-brand-rgb: 19, 19, 138;
    --ui-brand-600: #0b0b78;
    --ui-brand-700: #000066;    /* exact crest navy */
    --ui-brand-900: #00003f;
    --ui-brand-50: #ececf8;
    --ui-brand-100: #d4d4ef;
    /* Accent: the crest's torch flame. Lifted from #d92025 so it stays readable on the navy sidebar. */
    --ui-accent: #f0444a;
    --ui-accent-rgb: 240, 68, 74;
    --ui-accent-600: #d92025;   /* hover — exact crest red */
    --ui-accent-700: #b8191e;   /* active */
    --ui-accent-ink: #00003d;   /* text on accent */
    --ui-accent-text: #b8191e;  /* accent-coloured text on light bg */
    --ui-accent-50: #fdeced;
    --ui-cream: #f3f3fa;

    --ui-ink: #14152e;
    --ui-muted: #5b5e78;
    --ui-subtle: #8a8ca3;
    --ui-border: #e2e3ee;
    --ui-bg: #f4f5fa;
    --ui-surface: #ffffff;

    --ui-success: #1f9d63;
    --ui-warning: #d98b0b;
    --ui-danger: #d64545;
    --ui-info: #2b7bb9;

    --ui-radius: 14px;
    --ui-radius-sm: 10px;
    --ui-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
    --ui-shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
    --ui-sidebar-w: 264px;

    /* Bootstrap overrides */
    --bs-primary: var(--ui-brand);
    --bs-primary-rgb: var(--ui-brand-rgb);
    --bs-link-color: var(--ui-brand);
    --bs-link-color-rgb: var(--ui-brand-rgb);
    --bs-link-hover-color: var(--ui-brand-700);
    --bs-link-hover-color-rgb: 0, 0, 102;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--ui-ink);
    --bs-body-bg: var(--ui-bg);
    --bs-border-color: var(--ui-border);
    --bs-secondary-color: var(--ui-muted);
    --bs-border-radius: var(--ui-radius-sm);
    --bs-border-radius-lg: var(--ui-radius);
    --bs-focus-ring-color: rgba(var(--ui-brand-rgb), .2);
}

html, body { min-height: 100%; }
body {
    font-family: var(--bs-body-font-family);
    font-size: .925rem;
    background: var(--ui-bg);
    color: var(--ui-ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--ui-ink); }
a { text-decoration: none; }
.text-muted { color: var(--ui-muted) !important; }
.fw-semibold { font-weight: 600 !important; }

/* ---------- App shell ---------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1040;
    width: var(--ui-sidebar-w);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--ui-brand-700) 0%, var(--ui-brand-900) 100%);
    color: rgba(255, 255, 255, .82);
    transition: transform .25s ease;
}
.app-sidebar::before {
    /* brand motif: faint rays. Swap for any subtle pattern echoing the logo, or delete */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background: repeating-radial-gradient(circle at 50% 0%, #fff 0 2px, transparent 2px 26px);
}
.sidebar-brand {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 22px 20px 18px; color: #fff;
}
.sidebar-brand img {
    width: 46px; height: 46px; border-radius: 50%;
    background: #fff; padding: 2px; box-shadow: 0 0 0 3px rgba(var(--ui-accent-rgb), .35);
}
.sidebar-brand .brand-name { font-weight: 800; font-size: 1.02rem; line-height: 1.15; color: #fff; }
.sidebar-brand .brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-accent); }

.sidebar-nav { position: relative; flex: 1; overflow-y: auto; padding: 8px 14px 20px; }
.sidebar-nav .nav-section {
    margin: 18px 10px 8px; font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 2px; border-radius: 10px;
    color: rgba(255, 255, 255, .82); font-weight: 500;
}
.sidebar-nav .nav-link i { width: 20px; text-align: center; font-size: .95rem; opacity: .9; }
.sidebar-nav .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-nav .nav-link.active {
    background: #fff; color: var(--ui-brand-700); font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.sidebar-nav .nav-link.active i { color: var(--ui-brand); }
.sidebar-nav .nav-link .chev { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.sidebar-nav .nav-link[aria-expanded="true"] .chev { transform: rotate(90deg); }
.sidebar-nav .sub-nav { padding: 2px 0 6px 44px; }
.sidebar-nav .sub-nav a {
    display: block; padding: 6px 10px; border-radius: 8px;
    font-size: .86rem; color: rgba(255, 255, 255, .7);
}
.sidebar-nav .sub-nav a:hover, .sidebar-nav .sub-nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }

.sidebar-footer {
    position: relative; padding: 14px 20px; font-size: .75rem;
    color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-footer em { color: var(--ui-accent); font-style: italic; }

.app-main { flex: 1; min-width: 0; margin-left: var(--ui-sidebar-w); display: flex; flex-direction: column; }

.app-topbar {
    position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; gap: 12px;
    height: 68px; padding: 0 28px;
    background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ui-border);
}
.app-topbar .topbar-title { font-weight: 700; font-size: 1rem; margin: 0; }
.app-topbar .sidebar-toggle { display: none; }
.user-chip {
    display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px;
    border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; color: var(--ui-ink);
}
.user-chip:hover { border-color: var(--ui-brand-100); color: var(--ui-ink); }
.user-chip .user-meta { line-height: 1.1; text-align: left; }
.user-chip .user-name { font-weight: 600; font-size: .85rem; }
.user-chip .user-role { font-size: .72rem; color: var(--ui-muted); }

.app-content { flex: 1; padding: 28px; }
.app-footer {
    padding: 18px 28px; font-size: .8rem; color: var(--ui-subtle);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    body.sidebar-open .app-sidebar { transform: none; box-shadow: var(--ui-shadow-lg); }
    body.sidebar-open .sidebar-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(15, 23, 42, .45);
    }
    .app-main { margin-left: 0; }
    .app-topbar { padding: 0 16px; }
    .app-topbar .sidebar-toggle { display: inline-flex; }
    .app-content { padding: 20px 16px; }
    .app-footer { padding: 16px; }
    .user-chip .user-meta { display: none; }
}

/* ---------- Avatars ------------------------------------------------------- */
.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ui-brand-50); color: var(--ui-brand-700);
    font-weight: 700; font-size: .8rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.3rem; }

/* ---------- Page header --------------------------------------------------- */
.page-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.page-header .page-title { font-size: 1.55rem; font-weight: 800; margin: 0; }
.page-header .page-subtitle { color: var(--ui-muted); margin: 4px 0 0; }
.page-header .breadcrumb { margin-bottom: 6px; font-size: .8rem; }
.page-header .breadcrumb-item a { color: var(--ui-muted); }
.page-header .breadcrumb-item a:hover { color: var(--ui-brand); }
.page-header .breadcrumb-item.active { color: var(--ui-brand); font-weight: 600; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cards --------------------------------------------------------- */
.card {
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow); background: var(--ui-surface);
}
.card-header {
    background: transparent; border-bottom: 1px solid var(--ui-border);
    padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header:first-child { border-radius: var(--ui-radius) var(--ui-radius) 0 0; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; }
.card-body { padding: 20px; }
.card-footer { background: transparent; border-top: 1px solid var(--ui-border); padding: 14px 20px; }

/* ---------- Stat cards ---------------------------------------------------- */
.stat-card { position: relative; height: 100%; padding: 20px; overflow: hidden; }
.stat-card .stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ui-brand-50); color: var(--ui-brand); font-size: 1.1rem; margin-bottom: 14px;
}
.stat-card .stat-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ui-muted); }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.stat-card .stat-meta { font-size: .8rem; color: var(--ui-muted); margin-top: 6px; }
.stat-card.is-gold .stat-icon { background: var(--ui-accent-50); color: var(--ui-accent-text); }
.stat-card.is-success .stat-icon { background: #e6f6ee; color: var(--ui-success); }
.stat-card.is-info .stat-icon { background: #e7f1f9; color: var(--ui-info); }
.stat-card.is-hero {
    color: #fff; border: 0;
    background: linear-gradient(135deg, var(--ui-brand) 0%, var(--ui-brand-900) 100%);
}
.stat-card.is-hero::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(var(--ui-accent-rgb), .45) 0 3px, transparent 3px 14px);
}
.stat-card.is-hero .stat-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.stat-card.is-hero .stat-label, .stat-card.is-hero .stat-meta { color: rgba(255, 255, 255, .75); }
.stat-card.is-hero .stat-value { color: #fff; }

/* ---------- Entity cards (clickable overview tiles) --------------------------------------- */
.entity-card {
    display: block; height: 100%; color: var(--ui-ink);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.entity-card:hover { transform: translateY(-3px); box-shadow: var(--ui-shadow-lg); border-color: var(--ui-brand-100); color: var(--ui-ink); }
.entity-card .entity-name { font-weight: 700; font-size: 1.02rem; margin: 0; }
.entity-card .entity-go {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ui-brand-50); color: var(--ui-brand); transition: background .15s, color .15s;
}
.entity-card:hover .entity-go { background: var(--ui-brand); color: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.metric { background: var(--ui-bg); border-radius: 10px; padding: 10px; }
.metric .v { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.metric .l { font-size: .7rem; color: var(--ui-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Progress ------------------------------------------------------ */
.progress { height: 8px; border-radius: 999px; background: var(--ui-brand-50); }
.progress-bar { border-radius: 999px; background-color: var(--ui-brand); }
.progress-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ui-muted); margin-bottom: 6px; }

/* ---------- Item & profile cards ---------------------------------------- */
.item-card { height: 100%; display: flex; flex-direction: column; }
.item-card .item-title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.item-card .item-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .84rem; margin: 14px 0; }
.item-card .item-facts dt { font-weight: 500; color: var(--ui-muted); }
.item-card .item-facts dd { margin: 0; font-weight: 600; text-align: right; }
.item-card .item-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

.profile-card { text-align: center; padding: 20px 16px; height: 100%; }
.profile-card .avatar { margin-bottom: 10px; }
.profile-card .profile-name { font-weight: 700; margin: 0; }
.profile-card .profile-id { font-size: .82rem; color: var(--ui-muted); }
.profile-card dl { text-align: left; font-size: .82rem; margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.profile-card dt { color: var(--ui-muted); font-weight: 500; }
.profile-card dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- Badges -------------------------------------------------------- */
.badge { font-weight: 600; padding: .4em .7em; border-radius: 999px; }
.badge-soft-primary { background: var(--ui-brand-50); color: var(--ui-brand-700); }
.badge-soft-success { background: #e6f6ee; color: #167a4c; }
.badge-soft-warning { background: #fdf3e1; color: #9a6206; }
.badge-soft-danger { background: #fdeaea; color: #b03131; }
.badge-soft-info { background: #e7f1f9; color: #215f90; }
.badge-soft-secondary { background: #eef1f0; color: var(--ui-muted); }
.badge-soft-gold { background: var(--ui-accent-50); color: var(--ui-accent-text); }

/* ---------- Buttons ------------------------------------------------------- */
.btn { font-weight: 600; border-radius: var(--ui-radius-sm); padding: .5rem 1rem; }
.btn-sm { padding: .32rem .7rem; border-radius: 8px; font-size: .8rem; }
.btn-primary {
    --bs-btn-bg: var(--ui-brand); --bs-btn-border-color: var(--ui-brand);
    --bs-btn-hover-bg: var(--ui-brand-700); --bs-btn-hover-border-color: var(--ui-brand-700);
    --bs-btn-active-bg: var(--ui-brand-900); --bs-btn-active-border-color: var(--ui-brand-900);
    --bs-btn-disabled-bg: var(--ui-brand); --bs-btn-disabled-border-color: var(--ui-brand);
}
.btn-outline-primary {
    --bs-btn-color: var(--ui-brand); --bs-btn-border-color: var(--ui-brand-100);
    --bs-btn-hover-bg: var(--ui-brand); --bs-btn-hover-border-color: var(--ui-brand); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ui-brand-700); --bs-btn-active-border-color: var(--ui-brand-700);
}
.btn-accent {
    --bs-btn-bg: var(--ui-accent); --bs-btn-border-color: var(--ui-accent); --bs-btn-color: var(--ui-accent-ink);
    --bs-btn-hover-bg: var(--ui-accent-600); --bs-btn-hover-border-color: var(--ui-accent-600); --bs-btn-hover-color: var(--ui-accent-ink);
    --bs-btn-active-bg: var(--ui-accent-700); --bs-btn-active-border-color: var(--ui-accent-700); --bs-btn-active-color: var(--ui-accent-ink);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--ui-border); --bs-btn-hover-bg: var(--ui-bg); --bs-btn-hover-border-color: var(--ui-border); }
.btn-soft-danger { --bs-btn-bg: #fdeaea; --bs-btn-color: #b03131; --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--ui-danger); --bs-btn-hover-color: #fff; --bs-btn-active-bg: #b03131; --bs-btn-active-color: #fff; }
.btn-soft-primary { --bs-btn-bg: var(--ui-brand-50); --bs-btn-color: var(--ui-brand-700); --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--ui-brand); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--ui-brand-700); --bs-btn-active-color: #fff; }
.btn-soft-warning { --bs-btn-bg: #fdf3e1; --bs-btn-color: #9a6206; --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--ui-warning); --bs-btn-hover-color: #fff; --bs-btn-active-bg: #9a6206; --bs-btn-active-color: #fff; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Forms --------------------------------------------------------- */
.form-label { font-weight: 600; font-size: .84rem; margin-bottom: 6px; }
.form-control, .form-select {
    border-radius: var(--ui-radius-sm); border-color: var(--ui-border);
    padding: .6rem .85rem; font-size: .9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--ui-brand); box-shadow: 0 0 0 .2rem rgba(var(--ui-brand-rgb), .15); }
.form-check-input:checked { background-color: var(--ui-brand); border-color: var(--ui-brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(var(--ui-brand-rgb), .15); border-color: var(--ui-brand); }
.form-text { color: var(--ui-subtle); }
.input-group-text { background: var(--ui-bg); border-color: var(--ui-border); color: var(--ui-muted); }

/* ---------- Tables -------------------------------------------------------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; vertical-align: middle; }
.table > thead th {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ui-muted); background: var(--ui-bg); border-bottom: 1px solid var(--ui-border);
    padding: 12px 14px; white-space: nowrap;
}
.table > tbody td { padding: 12px 14px; border-color: var(--ui-border); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--ui-brand-50); }
.table-responsive { border-radius: 0 0 var(--ui-radius) var(--ui-radius); }
.key-value th { width: 40%; color: var(--ui-muted); font-weight: 500; background: transparent !important; text-transform: none; letter-spacing: 0; font-size: .88rem; }

/* ---------- Alerts -------------------------------------------------------- */
.alert { border: 0; border-radius: var(--ui-radius-sm); display: flex; gap: 10px; align-items: flex-start; }
.alert ul { margin: 0; padding-left: 1rem; }
.alert-success { background: #e6f6ee; color: #135f3c; }
.alert-danger { background: #fdeaea; color: #8f2626; }
.alert-warning { background: #fdf3e1; color: #7c4f05; }
.alert-info { background: var(--ui-brand-50); color: var(--ui-brand-900); }

/* ---------- Empty state --------------------------------------------------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--ui-muted); }
.empty-state i { font-size: 2.2rem; color: var(--ui-brand-100); margin-bottom: 12px; }
.empty-state h5 { color: var(--ui-ink); }

/* ---------- Filter bar ---------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filter-bar > * { flex: 1 1 180px; }
.filter-bar > .filter-actions { flex: 0 0 auto; display: flex; gap: 8px; }

/* ---------- Modals -------------------------------------------------------- */
.modal-content { border: 0; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--ui-border); padding: 18px 22px; }
.modal-title { font-weight: 700; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--ui-border); }

/* ---------- Pagination ---------------------------------------------------- */
.pagination { gap: 4px; margin: 0; flex-wrap: wrap; }
.pagination .page-link, .pagination li > a, .pagination li > span {
    border-radius: 8px !important; border: 1px solid var(--ui-border); color: var(--ui-ink);
    padding: .35rem .7rem; font-size: .85rem; display: block;
}
.pagination .active > .page-link, .pagination li.active > span { background: var(--ui-brand); border-color: var(--ui-brand); color: #fff; }
.pagination .disabled > span { color: var(--ui-subtle); }

/* ---------- DataTables (bs5 build) ---------------------------------------- */
div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select { border-radius: var(--ui-radius-sm); border-color: var(--ui-border); }
div.dataTables_wrapper .dt-buttons .btn { background: #fff; color: var(--ui-ink); border: 1px solid var(--ui-border); font-weight: 600; font-size: .8rem; }
div.dataTables_wrapper .dt-buttons .btn:hover { background: var(--ui-brand-50); color: var(--ui-brand-700); }
div.dataTables_wrapper div.dataTables_info { color: var(--ui-muted); font-size: .82rem; }
.dataTables_wrapper .row { --bs-gutter-y: .75rem; }
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------- Select2 ------------------------------------------------------- */
.select2-container--bootstrap-5 .select2-selection { border-radius: var(--ui-radius-sm); border-color: var(--ui-border); min-height: calc(1.5em + 1.2rem + 2px); }
.select2-container--bootstrap-5.select2-container--focus .select2-selection { border-color: var(--ui-brand); box-shadow: 0 0 0 .2rem rgba(var(--ui-brand-rgb), .15); }
.select2-container--bootstrap-5 .select2-results__option--highlighted { background: var(--ui-brand) !important; }

/* ---------- SweetAlert2 --------------------------------------------------- */
.swal2-popup { border-radius: var(--ui-radius) !important; font-family: var(--bs-body-font-family) !important; }
.swal2-styled.swal2-confirm { background-color: var(--ui-brand) !important; border-radius: var(--ui-radius-sm) !important; }
.swal2-styled.swal2-cancel { border-radius: var(--ui-radius-sm) !important; }

/* ---------- Auth pages ---------------------------------------------------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-brand {
    position: relative; overflow: hidden; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; padding: 48px;
    background: radial-gradient(120% 90% at 50% 0%, var(--ui-brand) 0%, var(--ui-brand-900) 70%);
}
.auth-brand::before {
    content: ""; position: absolute; left: 50%; top: 42%; width: 1400px; height: 1400px;
    transform: translate(-50%, -50%); opacity: .12;
    background: repeating-radial-gradient(circle, #fff 0 3px, transparent 3px 34px);
    -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%);
            mask: radial-gradient(circle, #000 0%, transparent 55%);
}
.auth-brand > * { position: relative; }
.auth-brand .crest {
    width: 168px; height: 168px; border-radius: 50%; background: #fff; padding: 6px;
    box-shadow: 0 0 0 8px rgba(var(--ui-accent-rgb), .25), 0 20px 50px rgba(0, 0, 0, .25);
}
.auth-brand h1 { color: #fff; font-size: 2.2rem; font-weight: 800; margin: 28px 0 8px; }
.auth-brand .motto { color: var(--ui-accent); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.auth-brand p.lead { color: rgba(255, 255, 255, .78); max-width: 420px; font-size: 1rem; margin-top: 14px; }
.auth-brand .auth-brand-foot { font-size: .8rem; color: rgba(255, 255, 255, .55); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .auth-logo-sm { display: none; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px; }
.auth-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--ui-muted); margin-bottom: 28px; }
.auth-card .form-control { padding: .75rem 1rem; }
.auth-card .btn-primary { padding: .75rem 1rem; }
.auth-foot { margin-top: 32px; font-size: .8rem; color: var(--ui-subtle); }

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card .auth-logo-sm { display: block; }
}

/* ---------- Utilities ----------------------------------------------------- */
.gap-2 { gap: .5rem; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.loader-spin { display: flex; justify-content: center; padding: 40px; color: var(--ui-brand); font-size: 1.6rem; }
