/* ════════════════════════════════════════════════════════════
   AVANISOFT ERP WEB — Design System
   Bootstrap 5 + Custom ERP Theme
   ════════════════════════════════════════════════════════════ */

:root {
    --sidebar-width: 268px;
    --sidebar-bg: #0b2e2c;
    --sidebar-hover: #12403c;
    --sidebar-active: #0d9488;
    --sidebar-text: #a7c4c1;
    --sidebar-text-active: #f0fdfa;
    --sidebar-section: #5f8a86;
    --topbar-height: 60px;
    --topbar-bg: rgba(255,255,255,0.92);
    --topbar-border: #d9e8e6;
    --content-bg: #eef6f4;
    --card-bg: #ffffff;
    --accent-blue: #0f766e;
    --accent-cyan: #14b8a6;
    --accent-green: #059669;
    --accent-orange: #d97706;
    --accent-red: #dc2626;
    --accent-purple: #0e7490;
    --border-radius: 14px;
    --shadow-sm: 0 1px 2px rgba(11,46,44,0.06);
    --shadow-md: 0 8px 24px rgba(11,46,44,0.08);
    --shadow-lg: 0 18px 40px rgba(11,46,44,0.12);
    --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    --font-display: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: #134e4a;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(20,184,166,0.16), transparent 55%),
        radial-gradient(900px 400px at 100% 0%, rgba(15,118,110,0.10), transparent 50%),
        var(--content-bg);
}

/* ── Layout Shell ──────────────────────────────────────────── */
.avs-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.avs-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.avs-sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-height);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #f0fdfa;
    letter-spacing: -0.4px;
}

.page-title {
    font-family: var(--font-display) !important;
    letter-spacing: -0.03em;
}

.kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    border: 1px solid #d7ebe7;
    border-radius: var(--border-radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-label { font-size: 12px; color: #5f8a86; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #0b3d3a; margin-top: 4px; }

/* Evitar backdrop-filter en cards: crea stacking context y bloquea clics de dropdowns */

.avs-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.avs-sidebar-content::-webkit-scrollbar { width: 4px; }
.avs-sidebar-content::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

/* ── Nav List ───────────────────────────────────────────────── */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section-title {
    padding: 14px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--sidebar-section);
    text-transform: uppercase;
}

.nav-item { margin: 2px 10px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-link.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.4);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.9;
}

/* ── Main Area ──────────────────────────────────────────────── */
.avs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

/* Estado global sidebar (desktop + mobile) */
.sidebar-open .avs-sidebar {
    transform: translateX(0);
}

.sidebar-closed .avs-sidebar {
    transform: translateX(-100%);
}

.sidebar-open .avs-main {
    margin-left: var(--sidebar-width);
}

.sidebar-closed .avs-main {
    margin-left: 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.avs-topbar {
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
    position: relative;
    z-index: 1060;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-hamburger {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--content-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: var(--transition);
    position: relative;
    z-index: 1061;
}
.btn-hamburger:hover { background: #e2e8f0; }

.btn-back {
    width: 34px;
    height: 34px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: var(--transition);
}

.btn-back:hover {
    background: #e2e8f0;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-date {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

/* ── User Avatar ────────────────────────────────────────────── */
.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--topbar-border);
    border-radius: 40px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
}
.user-btn:hover { background: var(--content-bg); box-shadow: var(--shadow-sm); }

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Content ────────────────────────────────────────────────── */
.avs-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.avs-footer {
    padding: 10px 24px;
    background: white;
    border-top: 1px solid var(--topbar-border);
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
}

/* ── Cards ──────────────────────────────────────────────────── */
.avs-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.avs-card-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avs-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.avs-card-body { padding: 20px; }

/* ── KPI Cards ──────────────────────────────────────────────── */
.kpi-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-icon.blue   { background: #eff6ff; color: #1d4ed8; }
.kpi-icon.green  { background: #ecfdf5; color: #10b981; }
.kpi-icon.orange { background: #fffbeb; color: #f59e0b; }
.kpi-icon.red    { background: #fef2f2; color: #ef4444; }
.kpi-icon.purple { background: #faf5ff; color: #8b5cf6; }
.kpi-icon.cyan   { background: #f0f9ff; color: #0ea5e9; }

.kpi-content { flex: 1; }
.kpi-label { font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.kpi-sub   { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

/* ── Tables ─────────────────────────────────────────────────── */
.avs-table { width: 100%; border-collapse: collapse; }
.avs-table thead th {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.avs-table tbody td {
    padding: 12px 14px;
    font-size: 13.5px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.avs-table tbody tr:hover { background: #f8fafc; }
.avs-table tbody tr:last-child td { border-bottom: none; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-pagada     { background: #dcfce7; color: #166534; }
.badge-pendiente  { background: #fef3c7; color: #92400e; }
.badge-vencida    { background: #fee2e2; color: #991b1b; }
.badge-activo     { background: #dcfce7; color: #166534; }
.badge-inactivo   { background: #f3f4f6; color: #6b7280; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-avs {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-avs-primary   { background: var(--accent-blue);  color: white; }
.btn-avs-primary:hover { background: #1e40af; }
.btn-avs-success   { background: var(--accent-green); color: white; }
.btn-avs-success:hover { background: #059669; }
.btn-avs-danger    { background: var(--accent-red);   color: white; }
.btn-avs-danger:hover  { background: #dc2626; }
.btn-avs-outline   { background: transparent; color: var(--accent-blue); border: 1.5px solid var(--accent-blue); }
.btn-avs-outline:hover { background: var(--accent-blue); color: white; }
.btn-avs-ghost     { background: #f1f5f9; color: #374151; }
.btn-avs-ghost:hover   { background: #e2e8f0; }

/* ── Form Controls ──────────────────────────────────────────── */
.avs-input {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    color: #0f172a;
    background: white;
    transition: var(--transition);
    outline: none;
}
.avs-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(29,78,216,0.08); }
.avs-label { font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0; }
.page-subtitle { font-size: 13px; color: #64748b; margin: 2px 0 0; }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-box {
    position: relative;
    min-width: 240px;
}
.search-box input {
    padding-left: 38px;
}
.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ── Loading spinner ────────────────────────────────────────── */
.avs-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #94a3b8;
    gap: 12px;
    font-size: 14px;
}
.spinner-ring {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alerts ─────────────────────────────────────────────────── */
.avs-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.avs-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.avs-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.avs-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.avs-alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Sidebar overlay (mobile) ───────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }
.btn-toggle-sidebar { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 4px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .avs-sidebar {
        transform: translateX(-100%);
    }
    .sidebar-open .avs-sidebar {
        transform: translateX(0);
    }
    .avs-main {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* ── Dropdown Custom ────────────────────────────────────────── */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
}
.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13.5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.dropdown-item:hover { background: #f1f5f9; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-content { border-radius: var(--border-radius); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 18px 20px; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-footer { border-top: 1px solid #f1f5f9; padding: 14px 20px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    color: #374151;
    font-size: 13px;
}
.pagination .page-item.active .page-link { background: var(--accent-blue); border-color: var(--accent-blue); }

/* ── Impresión factura (mismo formato: pequeña / grande) ───── */
.print-layout-root {
    min-height: 100vh;
    background: #e8eef2;
}

.factura-print-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #0b3d3a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}
.factura-print-toolbar__left,
.factura-print-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.factura-print-toolbar__title {
    font-size: 13px;
    opacity: .85;
    margin-right: 4px;
}
.factura-print-toolbar .btn-avs {
    text-decoration: none;
}

.factura-print {
    --fp-width: 80mm;
    --fp-pad: 3mm;
    --fp-font: 10px;
    --fp-title: 14px;
    --fp-empresa: 15px;
    --fp-line: #222;
    margin: 16px auto 40px;
    width: var(--fp-width);
    max-width: 100%;
    padding: var(--fp-pad);
    background: #fff;
    color: #111;
    font-family: "IBM Plex Sans", "Courier New", monospace;
    font-size: var(--fp-font);
    line-height: 1.35;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .12);
    box-sizing: border-box;
}

.factura-print--pequena {
    --fp-width: 80mm;
    --fp-pad: 2.5mm;
    --fp-font: 10px;
    --fp-title: 13px;
    --fp-empresa: 14px;
}

.factura-print--grande {
    --fp-width: 190mm;
    --fp-pad: 10mm;
    --fp-font: 12px;
    --fp-title: 18px;
    --fp-empresa: 20px;
}

.factura-print .fp-header { text-align: center; }
.factura-print .fp-empresa {
    font-family: Outfit, "IBM Plex Sans", sans-serif;
    font-weight: 800;
    font-size: var(--fp-empresa);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.factura-print .fp-meta {
    color: #333;
    font-size: calc(var(--fp-font) * 0.95);
}
.factura-print .fp-meta span + span::before {
    content: " · ";
}
.factura-print .fp-sep {
    border: 0;
    border-top: 1px solid var(--fp-line);
    margin: 6px 0;
}
.factura-print .fp-sep.dashed {
    border-top-style: dashed;
}
.factura-print .fp-doc-title {
    text-align: center;
    font-weight: 800;
    font-size: var(--fp-title);
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.factura-print .fp-doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}
.factura-print .fp-span2 { grid-column: 1 / -1; }
.factura-print .fp-label {
    color: #555;
    font-size: calc(var(--fp-font) * 0.9);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.factura-print .fp-cliente { display: grid; gap: 2px; }

.factura-print .fp-items {
    width: 100%;
    border-collapse: collapse;
}
.factura-print .fp-items th {
    text-align: left;
    border-bottom: 1px solid var(--fp-line);
    padding: 2px 0;
    font-size: calc(var(--fp-font) * 0.9);
    text-transform: uppercase;
}
.factura-print .fp-items td {
    padding: 3px 0;
    vertical-align: top;
    border-bottom: 1px dotted #bbb;
}
.factura-print .fp-col-cant { width: 12%; text-align: right; padding-right: 4px; }
.factura-print .fp-col-und { width: 10%; }
.factura-print .fp-col-desc { width: 46%; }
.factura-print .fp-col-precio,
.factura-print .fp-col-total { width: 16%; text-align: right; white-space: nowrap; }
.factura-print .fp-cod {
    display: block;
    font-size: calc(var(--fp-font) * 0.85);
    color: #555;
}
.factura-print .fp-desc-txt { display: block; }

.factura-print .fp-totales,
.factura-print .fp-pagos { margin-top: 2px; }
.factura-print .fp-total-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 0;
}
.factura-print .fp-total-row--grand {
    font-weight: 800;
    font-size: calc(var(--fp-font) * 1.2);
    border-top: 1px solid var(--fp-line);
    margin-top: 3px;
    padding-top: 4px;
}
.factura-print .fp-nota {
    font-size: calc(var(--fp-font) * 0.95);
    color: #333;
}
.factura-print .fp-anulada {
    text-align: center;
    font-weight: 800;
    font-size: calc(var(--fp-title) * 1.4);
    color: #b91c1c;
    letter-spacing: .2em;
    margin: 8px 0;
    border: 2px solid #b91c1c;
    padding: 4px;
}
.factura-print .fp-footer {
    text-align: center;
    margin-top: 10px;
    font-size: calc(var(--fp-font) * 0.95);
}
.factura-print .fp-ecf {
    text-align: center;
    margin-top: 6px;
}
.factura-print .fp-ecf-estado {
    font-weight: 700;
    font-size: calc(var(--fp-font) * 0.95);
}
.factura-print .fp-ecf-cod {
    font-family: ui-monospace, Consolas, monospace;
    font-size: calc(var(--fp-font) * 0.9);
    margin: 2px 0 4px;
}
.factura-print .fp-qr {
    width: 28mm;
    height: 28mm;
    margin: 4px auto 2px;
    display: block;
    image-rendering: pixelated;
}
.factura-print--grande .fp-qr {
    width: 32mm;
    height: 32mm;
}
.factura-print .fp-ecf-hint {
    font-size: calc(var(--fp-font) * 0.85);
    color: #555;
}

.ecf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
.ecf-badge--ok { background: #d1fae5; color: #065f46; }
.ecf-badge--err { background: #fee2e2; color: #991b1b; }
.ecf-badge--warn { background: #fef3c7; color: #92400e; }
.ecf-badge--muted { background: #e2e8f0; color: #475569; }

@media print {
    @page {
        margin: 4mm;
    }
    body {
        background: #fff !important;
    }
    .no-print,
    .factura-print-toolbar {
        display: none !important;
    }
    .print-layout-root {
        background: #fff !important;
        min-height: 0;
    }
    .factura-print {
        margin: 0 auto;
        box-shadow: none;
    }
    .factura-print--pequena {
        width: 80mm;
    }
    .factura-print--grande {
        width: 190mm;
    }
    /* Preferencia de papel según tamaño (el usuario elige en el diálogo) */
    .factura-print--pequena {
        page: ticket;
    }
    .factura-print--grande {
        page: letter;
    }
}

@page ticket {
    size: 80mm auto;
    margin: 2mm;
}
@page letter {
    size: letter;
    margin: 10mm;
}

/* ── Login Page ─────────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo .brand-icon-lg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}
