:root {
    --bg: #f5f5f7;
    --card: #fff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text)
}

/* EPIC 13 — experiência pública de aquisição */
.landing-body { background:#fbfcfa; color:#172018; }
.public-shell { width:min(1180px, calc(100% - 32px)); margin:0 auto; }
.public-nav { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.public-brand img,.public-footer img { width:142px; height:auto; }.public-nav nav { display:flex; align-items:center; gap:20px; }.public-nav nav a { color:#354237; text-decoration:none; font-weight:650; font-size:14px; }
.public-hero { min-height:560px; display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:56px; padding:72px 0; }.public-kicker { display:inline-block; color:#16794a; font-size:13px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; margin-bottom:16px; }.public-hero h1,.public-intro h1 { max-width:700px; font-size:clamp(42px,6vw,72px); line-height:1.02; letter-spacing:-.065em; margin:0 0 20px; }.public-hero p,.public-intro p { max-width:620px; color:#667085; font-size:19px; line-height:1.6; margin-bottom:28px; }
.public-dashboard { background:#17271d; color:#fff; padding:30px; border-radius:26px; box-shadow:0 30px 70px rgba(11,43,23,.25); transform:rotate(3deg); }.public-dashboard span,.public-dashboard small { color:#b8d7c1; display:block; }.public-dashboard strong { font-size:38px; display:block; margin:12px 0; }.public-chart { height:120px; margin:20px 0; border-radius:14px; background:linear-gradient(160deg,transparent 35%,#47c578 36% 39%,transparent 40% 52%,#8ae3a8 53% 57%,transparent 58%),linear-gradient(#294d35 1px,transparent 1px); background-size:100% 100%,100% 30px; }
.public-section { padding:76px 0; }.public-section h2 { font-size:clamp(30px,4vw,48px); letter-spacing:-.045em; margin-bottom:28px; }.public-grid,.public-products,.public-screenshots { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }.public-grid article,.public-product,.public-screenshots div { background:#fff; border:1px solid #e4ebe5; border-radius:20px; padding:24px; box-shadow:0 10px 30px rgba(18,55,30,.05); }.public-grid h3 { font-size:18px; }.public-grid p,.public-product p { color:#667085; }.public-steps { border-top:1px solid #e4ebe5; }.public-steps ol { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; counter-reset:steps; }.public-steps li { counter-increment:steps; padding:22px; background:#eef8f0; border-radius:18px; }.public-steps li::before { content:"0" counter(steps); display:block; color:#16794a; font-weight:800; margin-bottom:12px; }.public-steps span { display:block; color:#667085; margin-top:6px; }.public-plan-cta { text-align:center; border-radius:28px; background:#e5f5e9; padding:64px 20px; }.public-screenshots div { min-height:180px; display:flex; flex-direction:column; justify-content:flex-end; background:linear-gradient(135deg,#e8f6eb,#fff); }.public-screenshots span { color:#16794a; font-size:13px; font-weight:800; }.public-screenshots b { font-size:20px; margin-top:6px; }.public-faq { max-width:780px; }.public-faq details { padding:18px 0; border-bottom:1px solid #dce5de; }.public-faq summary { cursor:pointer; font-weight:750; }.public-faq p { color:#667085; }.public-final { margin:28px 0 0; padding:68px 24px; border-radius:28px; background:#16794a; color:#fff; text-align:center; }.public-final h2 { font-size:clamp(32px,4vw,50px); letter-spacing:-.05em; margin-bottom:24px; }.public-footer { min-height:110px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#667085; font-size:13px; }.public-footer a { color:#354237; }.public-intro { padding:70px 0 34px; }.public-products { grid-template-columns:repeat(3,1fr); padding-bottom:70px; }.public-product { display:flex; flex-direction:column; }.public-product ul { padding-left:18px; color:#526055; font-size:14px; flex:1; }.public-product li { margin-bottom:9px; }.public-price strong { font-size:29px; color:#172018; }
@media (max-width: 800px) { .public-nav nav a:not(.btn) { display:none; }.public-hero { grid-template-columns:1fr; padding:42px 0; min-height:0; }.public-dashboard { transform:none; }.public-grid,.public-products,.public-screenshots,.public-steps ol { grid-template-columns:1fr; }.public-section { padding:48px 0; }.public-footer { flex-direction:column; align-items:flex-start; padding:28px 0; }.public-hero h1,.public-intro h1 { font-size:42px; } }

/* Sprint UX/UI 1.0 — shell, navigation and shared components */
:root { --fp-radius: 20px; --fp-shadow: 0 14px 38px rgba(15,23,42,.07); --fp-primary: #16794a; --fp-surface: #ffffff; --fp-focus: #2563eb; }
body { background: #f6f8fb; line-height: 1.5; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.sidebar { width: 280px; padding: 20px 16px; display: flex; flex-direction: column; background: rgba(255,255,255,.96); box-shadow: 10px 0 28px rgba(15,23,42,.025); z-index: 130; }
.brand { min-height: 56px; display: flex; align-items: center; padding: 0 10px; margin-bottom: 20px; }
.brand img { max-width: 182px; height: auto; }
.sidebar nav { gap: 4px; overflow-y: auto; padding: 0 2px 14px; }
.sidebar nav a { min-height: 46px; padding: 12px 13px; border-radius: 13px; font-weight: 650; color: #475467; }
.sidebar nav a i { width: 22px; text-align: center; color: #667085; }
.sidebar nav a:hover { background: #edf8f1; color: #126b40; }
.sidebar nav a:hover i, .sidebar nav a.active i { color: inherit; }
.sidebar nav a.active { background: #16794a; color: #fff; box-shadow: 0 8px 18px rgba(22,121,74,.22); }
.sidebar-footer { margin-top: auto; border-top: 1px solid #eaecf0; padding: 16px 10px 4px; display: grid; gap: 2px; color: #667085; font-size: 12px; }
.sidebar-footer strong { color: #344054; font-size: 13px; }.sidebar-footer small { color:#98a2b3; }
.main-area { min-width: 0; }
.topbar { min-height: 82px; height: auto; padding: 14px 30px; background: rgba(246,248,251,.9); border-bottom: 1px solid #eaecf0; box-shadow: none; }
.page-info strong { color:#101828; font-size: 18px; }.page-info small { font-size: 12px; }.fp-breadcrumb { display:flex; gap:6px; align-items:center; color:#98a2b3; font-size:11px; margin-bottom:2px; }.fp-breadcrumb i { font-size:13px; }.fp-breadcrumb span:last-child { color:#667085; }
.top-actions { gap: 10px; }.fp-icon-button { border:1px solid #e4e7ec; background:#fff; color:#475467; width:38px; height:38px; border-radius:12px; display:grid; place-items:center; }.fp-icon-button:hover { background:#f9fafb; color:#16794a; }
.fp-user-chip { min-height:38px; display:flex; align-items:center; gap:8px; padding:3px 9px 3px 4px; border:1px solid #e4e7ec; border-radius:999px; color:#344054; text-decoration:none; font-size:13px; font-weight:650; background:#fff; }.fp-user-chip:hover { color:#16794a; background:#f8fffa; }.fp-avatar { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#dff5e7; color:#126b40; font-weight:800; }
.content-area { padding: 28px 30px 42px; max-width: 1680px; width:100%; margin:0 auto; }
.page-header { gap: 16px; margin-bottom: 24px; }.page-header h1 { font-size: clamp(25px, 2.2vw, 34px); letter-spacing: -.035em; }.page-header p { font-size:14px; }
.panel-card, .metric-card { border-radius: var(--fp-radius); box-shadow: var(--fp-shadow); border:1px solid #eaecf0; padding: 22px; }.panel-card { background:var(--fp-surface); }
.table { --bs-table-bg: transparent; }.table > :not(caption) > * > * { padding: 14px 12px; border-color:#eef1f4; }.table thead th { color:#667085; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.fp-empty-state { min-height: 210px; display:grid; place-items:center; text-align:center; padding:32px; color:#667085; }.fp-empty-state i { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 12px; border-radius:16px; background:#edf8f1; color:#16794a; font-size:22px; }.fp-empty-state h2 { color:#344054; font-size:16px; font-weight:750; }.fp-empty-state p { margin:4px 0 0; font-size:13px; }
.fp-skeleton { overflow:hidden; border-radius:12px; background:linear-gradient(90deg,#eef2f6 25%,#f8fafc 38%,#eef2f6 63%); background-size:400% 100%; animation:fp-shimmer 1.3s infinite; }.fp-skeleton-line { height:14px; margin:9px 0; }.fp-skeleton-card { height:142px; }.is-submitting { pointer-events:none; opacity:.86; }.fp-spinner { width:15px; height:15px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; display:inline-block; animation:fp-spin .65s linear infinite; }
@keyframes fp-shimmer { 0%{background-position:100% 0} 100%{background-position:0 0} } @keyframes fp-spin { to{transform:rotate(360deg)} }
.fp-toast { border-radius:16px; box-shadow:0 18px 36px rgba(15,23,42,.15); }.fp-toast-stack { z-index:1100; }
@media (max-width: 991.98px) { .sidebar { display:none; }.content-area { padding:22px 18px 34px; }.topbar { padding:12px 18px; min-height:70px; }.mobile-brand, .btn-menu-mobile { display:flex; }.page-info { min-width:0; }.page-info strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; max-width:30vw; }.top-actions form { max-width:180px; }.top-actions .form-select { max-width:150px; }.offcanvas { width:min(86vw,320px)!important; }.offcanvas-backdrop { background-color:rgba(16,24,40,.5); }.offcanvas-body { padding:16px; }.mobile-nav a.active { background:#16794a; color:#fff; }.mobile-nav a.active i { color:inherit; } }
@media (max-width: 575.98px) { .topbar { align-items:center; }.top-actions { gap:6px; }.top-actions form { display:none!important; }.fp-user-chip { padding:3px; border:0; background:transparent; }.top-actions > .btn { width:38px; overflow:hidden; padding:8px; }.content-area { padding:18px 14px 28px; }.panel-card,.metric-card { border-radius:16px; padding:17px; }.page-header { align-items:flex-start!important; flex-direction:column; }.page-header .btn { width:100%; }.table-responsive { margin:0 -4px; } }

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left,
            rgba(34, 197, 94, .12),
            transparent 35%),
        radial-gradient(circle at bottom right,
            rgba(16, 185, 129, .12),
            transparent 35%),
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #f1f5f9 100%
        );
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,.4);

    box-shadow:
        0 10px 40px rgba(15,23,42,.08),
        0 40px 120px rgba(15,23,42,.10);

    border-radius: 36px;
    padding: 42px;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo img {
    max-height: 90px;
}

.logo-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 22px
}

.login-card h1 {
    font-size: 28px;
    font-weight: 800
}

.login-card p {
    color: var(--muted)
}

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

.sidebar {
    width: 265px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(22px);
    border-right: 1px solid var(--line);
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh
}

.brand {
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 30px
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.sidebar a {
    color: #374151;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 16px
}

.sidebar a:hover {
    background: #f0f2f5;
    color: #000
}

.main-area {
    flex: 1
}

/* ==========================
   TOPBAR
========================== */

.topbar {
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 30px;

    background: rgba(245,245,247,.85);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--line);

    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar small {
    display: block;
    color: var(--muted);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================
   MOBILE BRAND
========================== */

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-brand img {
    height: 38px;
}

.btn-menu-mobile {
    width: 44px;
    height: 44px;

    border-radius: 14px;

    background: #111827;
    color: white;

    border: 0;

    font-size: 20px;

    display: none;

    align-items: center;
    justify-content: center;
}

/* ==========================
   SIDEBAR
========================== */

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #374151;
    text-decoration: none;

    padding: 14px 16px;

    border-radius: 16px;

    transition: .2s;
}

.sidebar nav a i {
    font-size: 18px;
}

.sidebar nav a:hover {
    background: #9bfa5d;
}

.sidebar nav a.active {
    background: #16a34a;
    color: white;
}

/* ==========================
   MOBILE MENU
========================== */

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

    color: #111827;

    padding: 14px;

    border-radius: 14px;

    font-weight: 600;
}

.mobile-nav a:hover {
    background: #f1f5f9;
}

/* ==========================
   CONTENT
========================== */

.content-area {
    padding: 30px;
}

.page-header h1 {
    font-size: 34px;
    font-weight: 850;
    margin: 0;
}

.page-header p {
    color: var(--muted);
    margin-top: 6px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

.metric-card,
.panel-card {
    background: var(--card);

    border: 1px solid rgba(229,231,235,.8);

    box-shadow: 0 20px 50px rgba(15,23,42,.06);

    border-radius: 28px;

    padding: 24px;
}

.metric-card span {
    color: var(--muted);
    display: block;
}

.metric-card strong {
    font-size: 28px;
    margin-top: 10px;
    display: block;
}

.panel-card h3 {
    font-weight: 800;
}

.panel-card p {
    color: var(--muted);
}

.empty-chart {
    height: 260px;

    border: 1px dashed #cbd5e1;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;

    margin-top: 20px;

    background: #fafafa;
}

/* ==========================
   FORMS
========================== */

.form-control {
    border-radius: 16px;
    border-color: #e5e7eb;
    padding: 12px 14px;
}

.modal-content {
    border: 0;
    box-shadow: 0 35px 100px rgba(15,23,42,.25);
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 900px) {

    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-area {
        width: 100%;
        overflow-x: hidden;
    }

    .mobile-brand {
        display: flex;
    }

    .btn-menu-mobile {
        display: flex;
    }

    .topbar {
        height: auto;
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .content-area {
        padding: 20px 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .panel-card {
        padding: 16px;
        border-radius: 22px;
        overflow-x: auto;
    }

    table {
        min-width: 650px;
    }

    .btn {
        white-space: nowrap;
    }
}

/* =========================================================
   Release Candidate 0.9.6.2 — UI foundation
========================================================= */

:root {
    --fp-primary: #176b4d;
    --fp-primary-dark: #10523b;
    --fp-primary-soft: #eaf7f1;
    --fp-focus: rgba(23, 107, 77, .18);
    --fp-shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
    --fp-shadow-md: 0 22px 60px rgba(15, 23, 42, .10);
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

:focus-visible {
    outline: 3px solid var(--fp-focus);
    outline-offset: 2px;
}

.content-area {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.page-header {
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    letter-spacing: -.035em;
    line-height: 1.12;
}

.page-header p {
    margin-bottom: 0;
}

.btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sm {
    min-height: 34px;
    border-radius: 10px;
}

.btn-dark {
    background: #18212f;
    border-color: #18212f;
}

.btn-dark:hover {
    background: #0f1722;
    border-color: #0f1722;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--fp-primary);
    border-color: var(--fp-primary);
}

.btn-success:hover {
    background: var(--fp-primary-dark);
    border-color: var(--fp-primary-dark);
}

.form-control,
.form-select {
    min-height: 46px;
    border: 1px solid #dfe4ea;
    border-radius: 13px;
    background-color: #fff;
    color: #17202e;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 4px var(--fp-focus);
}

textarea.form-control {
    min-height: 110px;
}

.form-label,
label {
    color: #344054;
    font-weight: 650;
    margin-bottom: 7px;
}

.panel-card,
.metric-card {
    border-radius: 22px;
    border-color: #e7ebf0;
    box-shadow: var(--fp-shadow-sm);
}

.table {
    margin-bottom: 0;
    color: #273142;
}

.table > :not(caption) > * > * {
    padding: 15px 14px;
    border-bottom-color: #edf0f3;
    vertical-align: middle;
}

.table thead th {
    color: #667085;
    background: #f8fafb;
    border-bottom-width: 1px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody tr:hover > * {
    background-color: #fbfcfd;
}

.badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
    letter-spacing: .01em;
}

.modal-content {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    box-shadow: var(--fp-shadow-md);
}

.modal-header,
.modal-footer {
    padding: 20px 24px;
    border-color: #edf0f3;
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-weight: 780;
    letter-spacing: -.02em;
}

.pagination {
    gap: 5px;
}

.pagination .page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    border-color: #e3e8ee;
    color: #344054;
}

.pagination .page-item.active .page-link {
    background: var(--fp-primary);
    border-color: var(--fp-primary);
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar nav {
    overflow-y: auto;
    padding-right: 3px;
}

.sidebar-version {
    margin-top: auto;
    padding: 18px 14px 2px;
    color: #667085;
    font-size: 11px;
    border-top: 1px solid #eef1f4;
}

.sidebar-version span {
    float: right;
    font-weight: 750;
    color: #344054;
}

/* Flash messages */
.fp-toast-stack {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 1090;
    width: min(420px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.auth-body .fp-toast-stack {
    top: 24px;
}

.fp-toast {
    --toast-color: #2563eb;
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
    pointer-events: auto;
    animation: fpToastIn .28s ease both;
}

.fp-toast-success { --toast-color: #16805b; }
.fp-toast-danger { --toast-color: #c03636; }
.fp-toast-warning { --toast-color: #b7791f; }
.fp-toast-info { --toast-color: #2563eb; }

.fp-toast-icon {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--toast-color);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--toast-color) 14%, transparent);
}

.fp-toast-copy strong {
    display: block;
    color: #182230;
    font-size: 14px;
}

.fp-toast-copy p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.fp-toast-close {
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 22px;
    line-height: 1;
}

.fp-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

@keyframes fpToastIn {
    from { opacity: 0; transform: translateY(-10px); }
}

/* Loading states */
.fp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    animation: fpSpin .7s linear infinite;
}

@keyframes fpSpin { to { transform: rotate(360deg); } }

.is-submitting {
    cursor: wait !important;
    pointer-events: none;
    opacity: .78;
}

/* Login */
.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(89, 194, 155, .17), transparent 32%),
        radial-gradient(circle at 88% 86%, rgba(91, 133, 225, .13), transparent 30%),
        linear-gradient(145deg, #f7faf9 0%, #eef3f5 52%, #f8fafc 100%);
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.auth-body::before {
    width: 360px;
    height: 360px;
    left: -210px;
    top: 18%;
    border: 1px solid rgba(23, 107, 77, .09);
    box-shadow: 0 0 0 70px rgba(23, 107, 77, .025), 0 0 0 140px rgba(23, 107, 77, .018);
}

.auth-body::after {
    width: 280px;
    height: 280px;
    right: -150px;
    bottom: 12%;
    background: rgba(255, 255, 255, .38);
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 48px 24px 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 42px 44px 32px;
    border-radius: 24px;
    border: 1px solid rgba(220, 227, 232, .85);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 90px rgba(27, 45, 64, .13), 0 2px 8px rgba(27, 45, 64, .05);
    backdrop-filter: blur(20px);
}

.login-logo {
    margin: 0 0 30px;
    text-align: center;
}

.login-logo img {
    width: min(310px, 88%);
    max-height: none;
    height: auto;
}

.login-heading {
    text-align: center;
    margin-bottom: 28px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--fp-primary);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0;
    color: #17212d;
    font-size: 30px;
    font-weight: 760;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 8px 0 0;
    color: #728091;
    font-size: 15px;
}

.login-form {
    display: grid;
    gap: 19px;
}

.login-field label {
    color: #344054;
    font-size: 13px;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8793a3;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 48px;
    border: 1px solid #dce2e8;
    border-radius: 13px;
    background: #fbfcfd;
    color: #17212d;
    font-size: 15px;
    outline: none;
}

.login-input-wrap input:focus {
    border-color: var(--fp-primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--fp-focus);
}

.login-input-wrap input::placeholder {
    color: #a4acb7;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 38px;
    height: 38px;
    padding: 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7d8998;
}

.password-toggle:hover {
    background: #eef3f1;
    color: var(--fp-primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.caps-lock-indicator {
    display: none;
    color: #a16207;
    font-size: 11px;
    font-weight: 700;
}

.caps-lock-indicator.is-visible {
    display: inline-flex;
}

.fp-password-strength {
    margin-top: 12px;
    color: #536274;
    font-size: 13px;
}

.fp-password-strength__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.fp-password-strength__heading strong {
    color: #b42318;
    font-size: 12px;
}

.fp-password-strength__track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.fp-password-strength__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #d92d20;
    transition: width 200ms ease, background-color 200ms ease;
}

.fp-password-strength[data-strength="weak"] .fp-password-strength__track span { background: #f79009; }
.fp-password-strength[data-strength="good"] .fp-password-strength__track span { background: #eab308; }
.fp-password-strength[data-strength="strong"] .fp-password-strength__track span { background: #16a34a; }
.fp-password-strength[data-strength="excellent"] .fp-password-strength__track span { background: #166534; }
.fp-password-strength[data-strength="weak"] .fp-password-strength__heading strong { color: #c56b08; }
.fp-password-strength[data-strength="good"] .fp-password-strength__heading strong { color: #967000; }
.fp-password-strength[data-strength="strong"] .fp-password-strength__heading strong { color: #15803d; }
.fp-password-strength[data-strength="excellent"] .fp-password-strength__heading strong { color: #166534; }

.fp-password-strength__intro {
    margin: 10px 0 5px;
}

.fp-password-strength__requirements {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fp-password-strength__requirements li,
.fp-password-strength__confirmation {
    transition: color 180ms ease;
}

.fp-password-strength__requirements li[data-state="valid"],
.fp-password-strength__confirmation[data-state="valid"] { color: #15803d; }
.fp-password-strength__requirements li[data-state="invalid"],
.fp-password-strength__confirmation[data-state="invalid"] { color: #b42318; }

.fp-password-strength__confirmation {
    margin: 10px 0 0;
    font-weight: 600;
}

.fp-password-visibility-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 7px;
    padding: 5px 9px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    color: #315a4b;
    font-size: 13px;
    font-weight: 600;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.fp-password-visibility-toggle:hover,
.fp-password-visibility-toggle:focus-visible {
    border-color: var(--fp-primary);
    background: #edf8f2;
    color: #105b42;
}

.fp-password-visibility-toggle:focus-visible {
    outline: 3px solid var(--fp-focus);
    outline-offset: 2px;
}

.login-submit {
    width: 100%;
    height: 52px;
    margin-top: 3px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #176b4d, #105b42);
    color: #fff;
    box-shadow: 0 12px 24px rgba(23, 107, 77, .22);
    font-size: 15px;
    font-weight: 740;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(23, 107, 77, .28);
}

.login-submit-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit.is-submitting .login-submit-label {
    display: none;
}

.login-submit.is-submitting .login-submit-loading {
    display: inline-flex;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: #85909e;
    font-size: 11px;
}

.login-security svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #5e8d7a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-footer {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #7f8a98;
    font-size: 11px;
}

.login-footer strong {
    color: #43505f;
}

.login-footer span + span::before {
    content: "·";
    margin-right: 16px;
    color: #b0b7c0;
}

@media (max-width: 900px) {
    .page-header {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .page-header > .btn,
    .page-header > button {
        width: 100%;
    }

    .fp-toast-stack {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 560px) {
    .login-wrapper {
        align-items: flex-start;
        padding: 22px 14px 126px;
    }

    .login-card {
        padding: 30px 22px 26px;
        border-radius: 20px;
    }

    .login-logo {
        margin-bottom: 24px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .login-footer {
        bottom: 18px;
        gap: 6px 12px;
    }

    .login-footer span + span::before {
        margin-right: 12px;
    }

    .top-actions .btn span {
        display: none !important;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body,
    .modal-header,
    .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Mobile panel navigation: Bootstrap's lg breakpoint. */
@media (max-width: 991.98px) {
    .app-shell {
        display: block;
        width: 100%;
    }

    .app-shell > .sidebar {
        display: none;
    }

    .main-area {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .topbar {
        width: 100%;
        max-width: none;
    }

    .mobile-brand,
    .btn-menu-mobile {
        display: flex;
    }

    #mobileMenu {
        width: min(320px, 86vw);
        max-width: 100%;
    }

    .offcanvas-backdrop.show {
        opacity: .62;
    }

    .content-area,
    .grid-cards,
    .metric-card,
    .panel-card {
        min-width: 0;
        max-width: 100%;
    }

    .grid-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-card,
    .panel-card {
        overflow: visible;
    }

    .panel-card .table-responsive {
        overflow-x: auto;
    }
}

/* UX/UI 1.0 final cascade: keeps legacy screens visually consistent. */
.sidebar { width:280px; padding:20px 16px; display:flex; flex-direction:column; background:rgba(255,255,255,.96); }
.sidebar nav { gap:4px; }.sidebar nav a { min-height:46px; padding:12px 13px; border-radius:13px; font-weight:650; }.sidebar nav a:hover { background:#edf8f1; color:#126b40; }.sidebar nav a.active { background:#16794a; color:#fff; box-shadow:0 8px 18px rgba(22,121,74,.22); }
.sidebar-footer { margin-top:auto; border-top:1px solid #eaecf0; padding:16px 10px 4px; display:grid; gap:2px; color:#667085; font-size:12px; }.sidebar-footer strong { color:#344054; font-size:13px; }.sidebar-footer small { color:#98a2b3; }
.topbar { min-height:82px; height:auto; padding:14px 30px; background:rgba(246,248,251,.9); border-bottom:1px solid #eaecf0; }.content-area { padding:28px 30px 42px; max-width:1680px; margin:0 auto; }
.panel-card,.metric-card { border-radius:20px; box-shadow:0 14px 38px rgba(15,23,42,.07); border-color:#eaecf0; }.fp-icon-button { border:1px solid #e4e7ec; background:#fff; color:#475467; width:38px; height:38px; border-radius:12px; display:grid; place-items:center; }.fp-user-chip { min-height:38px; display:flex; align-items:center; gap:8px; padding:3px 9px 3px 4px; border:1px solid #e4e7ec; border-radius:999px; color:#344054; text-decoration:none; font-size:13px; font-weight:650; background:#fff; }.fp-avatar { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#dff5e7; color:#126b40; font-weight:800; }.fp-breadcrumb { display:flex; gap:6px; align-items:center; color:#98a2b3; font-size:11px; margin-bottom:2px; }
@media (max-width:991.98px) { .topbar { padding:12px 18px; min-height:70px; }.content-area { padding:22px 18px 34px; }.offcanvas { width:min(86vw,320px)!important; }.offcanvas-backdrop { background-color:rgba(16,24,40,.5); }.mobile-nav a.active { background:#16794a; color:#fff; } }
@media (max-width:575.98px) { .content-area { padding:18px 14px 28px; }.top-actions form { display:none!important; }.fp-user-chip { padding:3px; border:0; background:transparent; }.panel-card,.metric-card { border-radius:16px; padding:17px; } }
