/* Acteol ON-OFFboarding - Modern Theme */

:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-light: #eef2ff;
    --brand-rgb: 79, 70, 229;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-muted: #94a3b8;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0ea5e9;
    --bg-main: #f4f5fa;
    --surface: #ffffff;
    --border-soft: #e7e9f2;
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
    --sidebar-bg: #14162b;
    --sidebar-bg-active: rgba(255, 255, 255, 0.08);
    --hero-start: #0f1420;
    --hero-mid: #16233d;
    --hero-end: #0d3b66;
    --radius: 0.9rem;
    --radius-sm: 0.6rem;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--ink);
    font-size: 0.9rem;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* =============================================================================
   App shell: fixed sidebar + top bar + scrollable content, replacing the old
   single top navbar with a more modern SaaS-dashboard layout.
   ============================================================================= */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 248px;
    flex: 0 0 248px;
    background: var(--sidebar-bg);
    color: #cbd0e6;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    transition: transform 0.25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.35rem 1.25rem;
    font-weight: 700;
    font-size: 1.02rem;
    color: #fff;
    letter-spacing: -0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.sidebar-nav {
    flex: 1 1 auto;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}
.sidebar-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7094;
    font-weight: 700;
    padding: 0.9rem 0.75rem 0.4rem;
}
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.75rem;
    border-radius: var(--radius-sm);
    color: #b7bcdb;
    font-weight: 500;
    font-size: 0.87rem;
    margin-bottom: 0.15rem;
    transition: background-color 0.15s, color 0.15s;
}
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; flex: 0 0 auto; }
.sidebar-nav .nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-nav .nav-link.active {
    background: var(--sidebar-bg-active);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--brand);
}

.sidebar-footer {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.sidebar-user .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex: 0 0 auto;
}
.sidebar-user .user-meta { min-width: 0; }
.sidebar-user .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user .user-role {
    font-size: 0.72rem;
    color: #8388ac;
}

.app-main {
    flex: 1 1 auto;
    margin-left: 248px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.app-topbar .topbar-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-toggle-btn { display: none; }

.app-content {
    padding: 1.75rem;
    flex: 1 1 auto;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1025;
}

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.is-open { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .sidebar-toggle-btn { display: inline-flex; }
    body.sidebar-open .sidebar-backdrop { display: block; }
}

/* Cards */
.card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-weight: 600;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}

/* Buttons — refresh Bootstrap's default component tokens for a softer, more
   modern look (rounder corners, subtle lift on hover) without needing a
   full custom build of Bootstrap. */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(0); }
/* .btn above hardcodes padding/font-size (rather than Bootstrap's --bs-btn-* variables),
   so .btn-sm needs to explicitly re-assert the smaller sizing here — otherwise every
   "sm" button renders at the full-size height, mismatching adjacent form-control-sm/
   form-select-sm inputs (e.g. the Client Management toolbar's search box vs. its
   Onboard Client / Restore Database buttons). */
.btn-sm { border-radius: 0.5rem; padding: 0.25rem 0.6rem; font-size: 0.8rem; }

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    box-shadow: 0 1px 2px rgba(var(--brand-rgb), 0.15);
}
.btn-primary:hover { box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.28); transform: translateY(-1px); }

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand);
    --bs-btn-active-border-color: var(--brand);
}

.btn-success { --bs-btn-bg: var(--success); --bs-btn-border-color: var(--success); --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; --bs-btn-active-bg: #15803d; --bs-btn-active-border-color: #15803d; }
.btn-outline-success { --bs-btn-color: var(--success); --bs-btn-border-color: var(--success); --bs-btn-hover-bg: var(--success); --bs-btn-hover-border-color: var(--success); }
.btn-warning { --bs-btn-bg: var(--warning); --bs-btn-border-color: var(--warning); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #b45309; --bs-btn-hover-border-color: #b45309; }
.btn-outline-warning { --bs-btn-color: var(--warning); --bs-btn-border-color: var(--warning); --bs-btn-hover-bg: var(--warning); --bs-btn-hover-border-color: var(--warning); }
.btn-danger { --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger); --bs-btn-hover-bg: #b91c1c; --bs-btn-hover-border-color: #b91c1c; --bs-btn-active-bg: #b91c1c; --bs-btn-active-border-color: #b91c1c; }
.btn-outline-info { --bs-btn-color: var(--info); --bs-btn-border-color: var(--info); --bs-btn-hover-bg: var(--info); --bs-btn-hover-border-color: var(--info); }

.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb), 0.15); }
.form-select, .form-control { border-radius: var(--radius-sm); }
.page-link { color: var(--brand); }

/* Chart containers — Chart.js needs an explicitly sized ancestor with
   maintainAspectRatio:false, otherwise it keeps growing with the (wide) card. */
.chart-box { position: relative; width: 100%; }
.chart-box canvas { max-width: 100%; }

/* Stat / KPI cards on dashboard */
.stat-card { padding: 1.35rem 1.5rem; position: relative; overflow: hidden; }
.stat-card .stat-icon-badge {
    width: 44px; height: 44px; border-radius: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 0.9rem;
}
.stat-card .stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; font-weight: 500; }
.stat-card .stat-trend { font-size: 0.75rem; font-weight: 600; margin-top: 0.6rem; display: flex; align-items: center; gap: 0.25rem; }

/* Dashboard section headers */
.section-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-soft);
}
.section-card-header h6 { margin: 0; font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 0.5rem; }

/* Tables */
.table th { white-space: nowrap; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; background: #fafafd; border-bottom-width: 1px; }
.table td { vertical-align: middle; }
.table-hover > tbody > tr:hover > * { background-color: var(--brand-light); }

/* Badges */
.badge { font-size: 0.72rem; font-weight: 600; padding: 0.4em 0.65em; border-radius: 0.4rem; }

/* Status badges */
.badge-pending { background-color: #64748b; }
.badge-processing { background-color: var(--info); }
.badge-completed { background-color: var(--success); }
.badge-failed { background-color: var(--danger); }
.badge-ready { background-color: var(--brand); }
.badge-rejected { background-color: #78716c; }

/* Modals */
.modal-content { border-radius: var(--radius); border: none; overflow: hidden; }
.modal-header { background-color: var(--ink); color: #fff; border-bottom: none; }
.modal-header .btn-close { filter: brightness(0) invert(1); }

/* Light, icon-led modal header — used for forms (onboarding/restore) instead of a solid
   color banner, which reads as dated. Falls back to the dark .modal-header above for
   simpler confirmation-style modals that don't opt in. */
.modal-header.modal-header-light {
    background-color: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--border-soft);
    padding: 1.1rem 1.5rem;
}
.modal-header.modal-header-light .btn-close { filter: none; }
.modal-header.modal-header-light .modal-title { font-weight: 700; font-size: 1.05rem; }
.modal-header.modal-header-light .modal-subtitle { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.modal-icon-badge {
    width: 40px; height: 40px; border-radius: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex: 0 0 auto;
}

/* Form sections inside modals — replaces bare <h6>/<hr> grouping with a clearer,
   card-like block that separates "required now" content from optional/advanced content. */
/* NOTE: no overflow:hidden here (on purpose) — this section can contain the custom
   searchable dropdown menu (see .searchable-select-menu below), which is an absolutely
   positioned overlay that needs to escape this box's bounds when open. The header's
   rounded top corners are handled directly on .form-section-header instead of relying
   on a clipping parent. */
.form-section { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 1.1rem; }
.form-section-body { padding: 1.1rem 1.1rem 0.2rem; }
.form-section-header {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    background: #fafafd;
    border-radius: calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0 0;
    width: 100%; text-align: left; border: none;
    border-bottom: 1px solid var(--border-soft);
}
.form-section-header .form-section-icon {
    width: 30px; height: 30px; border-radius: 0.5rem;
    background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex: 0 0 auto;
}
.form-section-header h6 { margin: 0; font-weight: 700; font-size: 0.87rem; }
.form-section-header .form-section-desc { font-size: 0.74rem; color: var(--ink-soft); }
button.form-section-header { cursor: pointer; }
button.form-section-header .chevron { margin-left: auto; transition: transform 0.2s; color: var(--ink-muted); }
button.form-section-header[aria-expanded="true"] .chevron { transform: rotate(180deg); }
button.form-section-header .badge-optional { font-size: 0.65rem; font-weight: 600; }

.field-hint { font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.3rem; display: block; }
.field-hint.text-success { color: var(--success) !important; }
.field-hint.text-danger { color: var(--danger) !important; }

/* Onboarding progress — ordered step checklist shown while a client is provisioned,
   replacing a bare spinner with real, client-facing wording for each backend stage. */
.onboard-step-list li {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.86rem; color: var(--ink-soft);
    border-bottom: 1px solid var(--border-soft);
}
.onboard-step-list li:last-child { border-bottom: none; }
.onboard-step-list li.is-active { color: var(--ink); font-weight: 600; }
.onboard-step-list li.is-done { color: var(--ink-soft); }
.onboard-step-list .step-icon {
    width: 22px; height: 22px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--ink-muted);
}
.onboard-step-list li.is-done .step-icon { color: var(--success); }
.onboard-step-list li.is-active .step-icon .spinner-border { width: 1rem; height: 1rem; border-width: 0.15em; }
.onboard-step-list li.is-error .step-icon { color: var(--danger); }
.onboard-step-list li.is-error { color: var(--danger); font-weight: 600; }

/* Onboard-entry Tier chooser — see _Layout.cshtml's #tierChooserModal */
.tier-choice-card {
    color: var(--ink); border-color: var(--border-soft) !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tier-choice-card:hover {
    border-color: var(--brand) !important; background-color: var(--brand-light);
    color: var(--ink);
}
.tier-choice-card i { color: var(--brand); }

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 0.35rem;
}
.form-label .text-danger { font-weight: 700; }

/* Custom searchable dropdown (used for MDF/LDF File Path, which can list many real
   server folders) — native <select> popups are rendered by the browser/OS and can't be
   restyled with a fixed max-height, so this wraps a hidden-but-still-valid <select> with
   a type-to-filter menu that IS fully under our control. */
.searchable-select { position: relative; }
.searchable-select-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
}
.searchable-select-toggle {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    background-color: #fff;
    background-image: none !important;
    cursor: pointer;
    color: var(--ink);
}
.searchable-select-toggle .searchable-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchable-select-toggle .chev { color: var(--ink-muted); font-size: 0.8rem; transition: transform 0.15s; flex: 0 0 auto; }
.searchable-select-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.searchable-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
}
.searchable-select-menu.show { display: block; }
.searchable-select-search { padding: 0.5rem; border-bottom: 1px solid var(--border-soft); }
.searchable-select-list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    max-height: 220px;
    overflow-y: auto;
}
.searchable-select-list li { padding: 0.45rem 0.9rem; font-size: 0.85rem; cursor: pointer; }
.searchable-select-list li:hover,
.searchable-select-list li.active { background: var(--brand-light); color: var(--brand); }
.searchable-select-list li.text-muted { cursor: default; }

/* Step wizard */
.step-indicator { display: flex; justify-content: center; gap: 0; margin-bottom: 1.5rem; }
.step-indicator .step {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem; font-weight: 600;
    color: #adb5bd;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.step-indicator .step.active { color: var(--brand); border-bottom-color: var(--brand); }
.step-indicator .step.completed { color: var(--success); border-bottom-color: var(--success); }
.step-indicator .step-number {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: #dee2e6; color: #fff; font-size: 0.8rem;
}
.step.active .step-number { background-color: var(--brand); }
.step.completed .step-number { background-color: var(--success); }

/* Search box */
.search-box { max-width: 300px; }

/* Loading overlay */
#loadingOverlay { z-index: 9999; }

/* Responsive */
@media (max-width: 768px) {
    .table-responsive { font-size: 0.82rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .app-content { padding: 1.1rem; }
}

/* Toast */
.toast { border: none; box-shadow: var(--card-shadow-hover); border-radius: var(--radius-sm); }

/* Page title bar */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-title-bar h4 { margin: 0; font-weight: 700; }
.page-title-bar small { color: var(--ink-soft); }

/* Action button group in tables */
.btn-group-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }
.btn-group-actions .btn { padding: 0.3rem 0.6rem; font-size: 0.76rem; }

/* Keeps the Actions column visible while the rest of a wide table scrolls
   horizontally, so key actions (e.g. Download/Password) never require
   scrolling all the way to the right to find. */
.table-sticky-actions th:last-child,
.table-sticky-actions td:last-child {
    position: sticky;
    right: 0;
    z-index: 1;
    background-color: var(--surface);
    box-shadow: -6px 0 8px -6px rgba(15, 23, 42, 0.12);
}
.table-sticky-actions.table-striped > tbody > tr:nth-of-type(odd) td:last-child { background-color: #fafafd; }
/* .table th (above) overrides table-dark's default dark background to the app's light
   header style everywhere else — this rule used to re-darken just the sticky Actions
   header cell to var(--ink), which looked like a stray black box instead of matching
   the rest of the (light) header row. Match .table th's background instead. */
.table-sticky-actions thead th:last-child { background-color: #fafafd; }
.table-sticky-actions.table-hover > tbody > tr:hover td:last-child { background-color: var(--brand-light); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--ink-muted); }
.empty-state i { font-size: 2.5rem; opacity: 0.35; margin-bottom: 0.75rem; display: block; }

/* ===========================================================================
   Auth pages (Login / Access Denied) — split hero layout
   Rendered on a dedicated minimal layout (_AuthLayout.cshtml) with no navbar,
   so these rules can safely own the full viewport.
   =========================================================================== */
html:has(body.auth-body),
body.auth-body {
    height: 100%;
}
body.auth-body {
    margin: 0;
    font-size: 1rem;
    display: flex;
    background:
        radial-gradient(circle at 10% 0%, rgba(var(--brand-rgb), 0.10) 0, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(13, 59, 102, 0.12) 0, transparent 45%),
        var(--bg-main);
}

.auth-wrapper {
    flex: 1 1 auto;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    display: flex;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(15, 20, 32, 0.2);
    background: #fff;
}

/* Left hero / branding panel */
.auth-hero {
    position: relative;
    flex: 0 0 44%;
    padding: 3.5rem 3rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08) 0, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(var(--brand-rgb), 0.35) 0, transparent 50%),
        linear-gradient(160deg, var(--hero-start) 0%, var(--hero-mid) 55%, var(--hero-end) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth-hero::before {
    /* Decorative dot-grid texture to give the panel some depth */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.6;
    pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }

.auth-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 2rem;
}
.auth-hero h2 {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.85rem;
}
.auth-hero p.lead {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.25rem;
}
.auth-hero-features { list-style: none; padding: 0; margin: 0; }
.auth-hero-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.5rem 0;
}
.auth-hero-features li i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    color: #7cc4ff;
    flex: 0 0 auto;
}
.auth-hero-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2rem;
}

/* Right form panel */
.auth-form-panel {
    flex: 1 1 auto;
    padding: 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form-panel .auth-title { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.3px; margin-bottom: 0.35rem; }
.auth-form-panel .auth-subtitle { color: #6c757d; margin-bottom: 2rem; }
.auth-form-panel .form-label { display: block; font-weight: 600; font-size: 0.82rem; color: #495057; margin-bottom: 0.4rem; }

.auth-form-panel .input-group { border-radius: 0.55rem; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.auth-form-panel .input-group-text {
    width: 46px;
    justify-content: center;
    background-color: #f5f6f8;
    border: 1px solid #dbdfe4;
    border-right: none;
    border-top-left-radius: 0.55rem;
    border-bottom-left-radius: 0.55rem;
    color: #8a93a0;
    font-size: 0.95rem;
}
.auth-form-panel .input-group .form-control {
    border: 1px solid #dbdfe4;
    border-left: none;
    border-top-right-radius: 0.55rem;
    border-bottom-right-radius: 0.55rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}
.auth-form-panel .input-group .form-control:focus { box-shadow: none; border-color: #86b7fe; }
.auth-form-panel .input-group:focus-within .input-group-text,
.auth-form-panel .input-group:focus-within .form-control { border-color: #86b7fe; }

.auth-form-panel .form-check { margin: 0.25rem 0 1.5rem; }
.auth-form-panel .form-check-label { color: #495057; font-size: 0.88rem; }

.auth-form-panel .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border: none;
    box-shadow: 0 0.5rem 1.1rem rgba(var(--brand-rgb), 0.3);
    transition: box-shadow 0.2s, transform 0.2s;
}
.auth-form-panel .btn-primary:hover { box-shadow: 0 0.6rem 1.4rem rgba(var(--brand-rgb), 0.4); transform: translateY(-1px); }

/* Simple centered auth card (e.g. Access Denied) */
.auth-card {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}
.auth-card .icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--hero-start), var(--hero-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 1.25rem;
}

@media (max-width: 767.98px) {
    .auth-hero { display: none; }
    .auth-shell { border-radius: 0.9rem; min-height: 0; }
    .auth-form-panel { padding: 2.5rem 1.75rem; }
    .auth-wrapper { padding: 1.5rem 1rem; }
}
