/* EnerGen UI layer
 * Keeps the vendor component vocabulary while giving the product its own
 * color, spacing, responsive and accessibility rules.
 */
:root {
    --eg-primary: #0b8f83;
    --eg-primary-strong: #087268;
    --eg-primary-soft: #e1f4f0;
    --eg-solar: #e5ad17;
    --eg-ink: #102d39;
    --eg-muted: #5c6f78;
    --eg-border: #d8e6e4;
    --eg-surface: #ffffff;
    --eg-surface-muted: #f3f8f7;
    --eg-sidebar: #0e2a35;
    --eg-sidebar-muted: #a7c0c4;
    --eg-sidebar-active: rgba(86, 202, 183, 0.16);
    --eg-focus: rgba(11, 143, 131, 0.26);
    --eg-sidebar-width: 260px;
    --eg-radius: 14px;
    --eg-control-radius: 9px;

    --bs-primary: var(--eg-primary);
    --bs-primary-rgb: 11, 143, 131;
    --bs-primary-bg-subtle: var(--eg-primary-soft);
    --bs-primary-border-subtle: #8bcfc5;
    --bs-primary-text-emphasis: var(--eg-primary-strong);
    --bs-secondary: #70848b;
    --bs-secondary-rgb: 112, 132, 139;
    --bs-secondary-bg-subtle: #edf3f3;
    --bs-secondary-border-subtle: #c9d9d8;
    --bs-secondary-text-emphasis: #4b626a;
    --bs-success: #16835d;
    --bs-success-rgb: 22, 131, 93;
    --bs-success-bg-subtle: #e2f3eb;
    --bs-success-border-subtle: #a4d9c1;
    --bs-success-text-emphasis: #0d5e42;
    --bs-warning: #b7830b;
    --bs-warning-rgb: 183, 131, 11;
    --bs-warning-bg-subtle: #fff5d7;
    --bs-warning-border-subtle: #efd58d;
    --bs-warning-text-emphasis: #765500;
    --bs-danger: #c84b56;
    --bs-danger-rgb: 200, 75, 86;
    --bs-danger-bg-subtle: #fbe8e9;
    --bs-danger-border-subtle: #e7afb4;
    --bs-danger-text-emphasis: #8f2d37;
    --bs-link-color: var(--eg-primary-strong);
    --bs-link-hover-color: #075b54;
    --bs-body-bg: #f5f9f8;
    --bs-body-color: #405761;
    --bs-secondary-color: var(--eg-muted);
    --bs-secondary-color-rgb: 92, 111, 120;
    --bs-body-secondary-bg: var(--eg-surface-muted);
    --bs-body-tertiary-bg: #eaf3f1;
    --bs-heading-color: var(--eg-ink);
    --bs-secondary-bg: var(--eg-surface);
    --bs-tertiary-bg: var(--eg-surface-muted);
    --bs-card-bg: var(--eg-surface);
    --bs-border-color: var(--eg-border);
    --bs-topbar-bg: var(--eg-surface);
    --bs-sidebar-bg: var(--eg-sidebar);
    --bs-footer-bg: transparent;
    --bs-border-radius: var(--eg-radius);
    --bs-box-shadow: none;
}

html[data-bs-theme="dark"] {
    --eg-primary: #55c8b7;
    --eg-primary-strong: #79d8ca;
    --eg-primary-soft: #143b3a;
    --eg-solar: #f3c94d;
    --eg-ink: #edf8f5;
    --eg-muted: #a9bfbe;
    --eg-border: #29454c;
    --eg-surface: #152b33;
    --eg-surface-muted: #10242c;
    --eg-sidebar: #091f29;
    --eg-sidebar-muted: #9ab6ba;
    --eg-sidebar-active: rgba(85, 200, 183, 0.18);
    --eg-focus: rgba(85, 200, 183, 0.32);

    --bs-primary: var(--eg-primary);
    --bs-primary-rgb: 85, 200, 183;
    --bs-primary-bg-subtle: var(--eg-primary-soft);
    --bs-primary-border-subtle: #36796f;
    --bs-primary-text-emphasis: #a7ebe0;
    --bs-secondary: #9bb3b6;
    --bs-secondary-rgb: 155, 179, 182;
    --bs-secondary-bg-subtle: #20383e;
    --bs-secondary-border-subtle: #456067;
    --bs-secondary-text-emphasis: #c5dddc;
    --bs-success: #5dc99a;
    --bs-success-rgb: 93, 201, 154;
    --bs-success-bg-subtle: #14372d;
    --bs-success-border-subtle: #37765d;
    --bs-success-text-emphasis: #a9e8c8;
    --bs-warning: #f0c554;
    --bs-warning-rgb: 240, 197, 84;
    --bs-warning-bg-subtle: #40351a;
    --bs-warning-border-subtle: #80672b;
    --bs-warning-text-emphasis: #ffe29a;
    --bs-danger: #ef858d;
    --bs-danger-rgb: 239, 133, 141;
    --bs-danger-bg-subtle: #402329;
    --bs-danger-border-subtle: #804b53;
    --bs-danger-text-emphasis: #ffb7bb;
    --bs-link-color: var(--eg-primary-strong);
    --bs-link-hover-color: #a5e9df;
    --bs-body-bg: #0f2027;
    --bs-body-color: #c4d4d3;
    --bs-secondary-color: var(--eg-muted);
    --bs-secondary-color-rgb: 169, 191, 190;
    --bs-body-secondary-bg: var(--eg-surface-muted);
    --bs-body-tertiary-bg: #19323a;
    --bs-heading-color: var(--eg-ink);
    --bs-secondary-bg: var(--eg-surface);
    --bs-tertiary-bg: var(--eg-surface-muted);
    --bs-card-bg: var(--eg-surface);
    --bs-border-color: var(--eg-border);
    --bs-topbar-bg: #10262e;
    --bs-sidebar-bg: var(--eg-sidebar);
    --bs-footer-bg: transparent;
}

html,
body {
    min-height: 100%;
}

#app-layout {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: flow-root;
}

body {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    overflow-x: hidden;
}

a {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--eg-focus);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.65rem 0.9rem;
    color: #fff;
    background: var(--eg-ink);
    border-radius: 8px;
    transform: translateY(-180%);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.topbar-custom {
    left: var(--eg-sidebar-width);
    top: 0;
    height: 70px;
    padding-right: 1rem;
    background-color: var(--bs-topbar-bg) !important;
    border-bottom: 1px solid var(--eg-border);
    box-shadow: none;
    isolation: isolate;
    z-index: 1100;
}

.topbar-custom .button-toggle-menu,
.topbar-custom .nav-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--eg-muted);
    border-radius: 8px;
}

.topbar-custom .button-toggle-menu:hover,
.topbar-custom .nav-link:hover {
    color: var(--eg-primary-strong);
    background: var(--eg-primary-soft);
}

.topbar-custom h5 {
    color: var(--eg-ink);
    font-size: 0.9rem;
    font-weight: 650;
}

.topbar-custom .nav-user {
    max-width: 220px;
    padding-inline: 0.75rem;
    color: var(--eg-ink);
    font-weight: 600;
}

.topbar-custom .nav-user .pro-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-menu {
    width: var(--eg-sidebar-width);
    background: var(--eg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.app-sidebar-menu .logo-box {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background-color: var(--eg-sidebar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-menu .logo-box .logo-lg img {
    max-width: 142px;
    object-fit: contain;
}

.app-sidebar-menu #side-menu {
    padding: 1rem 0.85rem 1.5rem;
}

.app-sidebar-menu #side-menu .menu-title {
    padding: 0.95rem 0.75rem 0.45rem;
    color: var(--eg-sidebar-muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.app-sidebar-menu #side-menu li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.18rem 0;
    padding: 0.65rem 0.75rem;
    color: var(--eg-sidebar-muted);
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 500;
}

.app-sidebar-menu #side-menu li a svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    opacity: 0.86;
}

.app-sidebar-menu #side-menu li a:hover,
.app-sidebar-menu #side-menu li a.active,
.app-sidebar-menu #side-menu li.menuitem-active > a {
    color: #f4fffc;
    background: var(--eg-sidebar-active);
}

.app-sidebar-menu #side-menu li a:hover svg,
.app-sidebar-menu #side-menu li a.active svg,
.app-sidebar-menu #side-menu li.menuitem-active > a svg {
    opacity: 1;
    color: var(--eg-primary-strong);
}

.content-page {
    margin-left: var(--eg-sidebar-width);
    padding: 0 1.25rem 70px;
    min-height: calc(100vh - 70px);
    min-width: 0;
    position: relative;
    z-index: 0;
}

.content-page > .content {
    min-height: calc(100vh - 140px);
    min-width: 0;
}

.content-page > .content > .container-fluid {
    max-width: 1680px;
    padding-inline: 0;
    min-width: 0;
}

.content-page .footer {
    left: 0;
    right: 0;
    padding: 1.25rem 0;
    color: var(--eg-muted);
    border-top: 1px solid var(--eg-border);
}

.card {
    overflow: hidden;
    background: var(--eg-surface);
    border: 1px solid var(--eg-border) !important;
    border-radius: var(--eg-radius);
    box-shadow: none;
}

.card-header {
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid var(--eg-border);
}

.card-title {
    color: var(--eg-ink);
    font-weight: 650;
}

.card-body {
    padding: 1.25rem;
}

.btn {
    min-height: 42px;
    padding: 0.6rem 0.9rem;
    border-radius: var(--eg-control-radius);
    font-weight: 600;
}

.table .btn-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    vertical-align: middle;
}

.table .btn-icon + .btn-icon {
    margin-left: 0.25rem;
}

.btn-primary {
    --bs-btn-bg: var(--eg-primary);
    --bs-btn-border-color: var(--eg-primary);
    --bs-btn-hover-bg: var(--eg-primary-strong);
    --bs-btn-hover-border-color: var(--eg-primary-strong);
    --bs-btn-active-bg: var(--eg-primary-strong);
    --bs-btn-active-border-color: var(--eg-primary-strong);
}

.btn-outline-primary {
    --bs-btn-color: var(--eg-primary-strong);
    --bs-btn-border-color: var(--eg-primary);
    --bs-btn-hover-bg: var(--eg-primary);
    --bs-btn-hover-border-color: var(--eg-primary);
}

.form-control,
.form-select,
.report-filter-form input:not([type="hidden"]),
.report-filter-form select {
    min-height: 42px;
    width: 100%;
    padding: 0.6rem 0.8rem;
    color: var(--bs-body-color);
    background-color: var(--eg-surface);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-control-radius);
}

.form-control::placeholder {
    color: rgba(92, 111, 120, 0.72);
    color: color-mix(in srgb, var(--eg-muted) 72%, transparent);
}

.form-control:focus,
.form-select:focus,
.report-filter-form input:not([type="hidden"]):focus,
.report-filter-form select:focus {
    color: var(--bs-body-color);
    background-color: var(--eg-surface);
    border-color: var(--eg-primary);
    box-shadow: 0 0 0 0.2rem var(--eg-focus);
}

.form-label {
    margin-bottom: 0.45rem;
    color: var(--eg-ink);
    font-size: 0.82rem;
    font-weight: 650;
}

.report-filter-form {
    --bs-gutter-y: 0.85rem;
}

.report-filter-form .col-md-auto {
    align-self: end;
}

.report-filter-form .btn {
    min-width: 76px;
}

.report-filter-form .btn-outline-secondary {
    min-width: 58px;
}

.report-chart {
    min-height: 350px;
}

.report-chart[hidden] {
    display: none !important;
}

.table-responsive {
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--eg-primary) transparent;
    scrollbar-width: thin;
}

.content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div .btn {
    margin-left: 0 !important;
}

.content-page .detail-actions {
    gap: 0.5rem;
}

.content-page .detail-actions > .me-2 {
    margin-right: 0 !important;
}

.content-page .detail-actions > form {
    display: inline-flex !important;
    margin: 0 !important;
}

.content-page .detail-actions > form > .btn {
    width: 100%;
}

.content-page form.d-inline {
    display: inline-flex !important;
}

.content-page .table td:last-child {
    white-space: nowrap;
}

.content-page .table td:last-child .d-flex {
    flex-wrap: nowrap;
}

.content-page .table td:last-child .d-flex > .btn-icon + .btn-icon {
    margin-left: 0;
}

.content-page .d-flex.gap-2 {
    flex-wrap: wrap;
}

.content-page form .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.list-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--eg-border);
}

.list-pagination-summary {
    color: var(--eg-muted);
    font-size: 0.82rem;
}

.list-pagination-controls,
.list-pagination-page-size,
.list-pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.list-pagination-controls {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.list-pagination-page-size {
    color: var(--eg-muted);
    font-size: 0.82rem;
}

.list-pagination-page-size label {
    color: var(--eg-ink);
    font-weight: 650;
}

.list-pagination-page-size .form-select {
    width: auto;
    min-width: 76px;
    min-height: 38px;
    padding: 0.4rem 2rem 0.4rem 0.6rem;
}

.list-pagination .btn {
    min-width: 38px;
    min-height: 38px;
    padding: 0.4rem 0.65rem;
}

.list-pagination .btn-page-current {
    color: #fff;
    background: var(--eg-primary);
    border-color: var(--eg-primary);
}

.list-pagination-ellipsis {
    padding-inline: 0.15rem;
    color: var(--eg-muted);
}

.table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--eg-border);
}

.table thead th {
    color: var(--eg-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody td {
    padding-block: 0.9rem;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: var(--eg-surface-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.table-responsive.is-scrollable::after {
    display: none;
}

.alert {
    border-radius: 10px;
}

.dashboard-page-header {
    padding: 1.5rem 0 1.1rem;
}

.dashboard-page-header h1 {
    margin: 0;
    color: var(--eg-ink);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-page-header p {
    max-width: 62ch;
    margin: 0.35rem 0 0;
    color: var(--eg-muted);
}

.dashboard-stat-card {
    height: calc(100% - 1.25rem);
    min-height: 148px;
}

.dashboard-stat-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-stat-card .stat-label {
    color: var(--eg-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.dashboard-stat-card .stat-value {
    color: var(--eg-ink);
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.dashboard-stat-card .stat-context {
    color: var(--eg-muted);
    font-size: 0.74rem;
    font-weight: 650;
    white-space: nowrap;
}

.dashboard-stat-card .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.dashboard-stat-card .stat-icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-stat-card .stat-icon svg,
.dashboard-stat-card .stat-icon svg * {
    fill: currentColor;
    stroke: currentColor;
}

.dashboard-stat-card .stat-icon svg g[fill="none"],
.dashboard-stat-card .stat-icon svg g[fill="none"] * {
    fill: none;
    stroke: currentColor;
}

.dashboard-table-card,
.dashboard-chart-card {
    height: calc(100% - 1.25rem);
}

.dashboard-table-card .card-body {
    padding: 0 1.25rem 0.4rem;
}

.dashboard-table-card .table {
    min-width: 690px;
}

.dashboard-chart-card .card-body {
    min-height: 294px;
}

.dashboard-empty-state {
    min-height: 245px;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    color: var(--eg-muted);
    text-align: center;
}

.dashboard-finance-card {
    height: calc(100% - 1.25rem);
}

.dashboard-finance-card .finance-label {
    color: var(--eg-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.mobile-sidebar-backdrop {
    display: none;
}

/* The vendor script controls data-sidebar. This layer turns that state into
 * a real off-canvas navigation on touch-sized viewports. */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 0 !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .topbar-custom {
        left: 0 !important;
        padding-right: 0.5rem;
        z-index: 1000;
    }

    .topbar-custom .container-fluid {
        padding-inline: 0.65rem;
    }

    .app-sidebar-menu {
        display: block;
        width: min(86vw, 280px);
        top: 0;
        bottom: 0;
        padding-top: 0;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 180ms ease-out, visibility 180ms ease-out;
        z-index: 1050 !important;
    }

    body.sidebar-open .app-sidebar-menu {
        transform: translateX(0);
        visibility: visible;
        width: min(86vw, 280px) !important;
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        padding: 0;
        background: rgba(8, 25, 31, 0.52);
        border: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease-out, visibility 180ms ease-out;
        z-index: 1040;
    }

    body.sidebar-open .mobile-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .content-page {
        margin-left: 0 !important;
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - 70px);
        padding: 0 1rem;
    }

    .content-page > .content {
        flex: 1 0 auto;
        min-height: 0;
    }

    .content-page .footer {
        flex: 0 0 auto;
        position: static;
        margin-top: 1rem;
        padding: 1rem 0 max(1rem, env(safe-area-inset-bottom));
    }

    .app-sidebar-menu .h-100,
    .app-sidebar-menu [data-simplebar] {
        height: 100% !important;
    }

    .app-sidebar-menu #side-menu {
        padding-top: 0;
    }

    .content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div {
        width: 100%;
    }

    .content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div > .btn,
    .content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div > form {
        flex: 1 1 auto;
    }

    .dashboard-page-header {
        padding-top: 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .report-filter-form > .col-md-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 575.98px) {
    .topbar-custom .nav-user {
        max-width: 150px;
        padding-inline: 0.45rem;
    }

    .topbar-custom h5 {
        font-size: 0.84rem;
    }

    .content-page {
        padding-inline: 0.75rem;
    }

    .content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div > .btn,
    .content-page > .content .py-3.d-flex.flex-sm-row > .flex-grow-1 + div > form {
        min-width: min(100%, 10rem);
    }

    .dashboard-page-header h1 {
        font-size: 1.3rem;
    }

    .dashboard-stat-card .stat-value {
        font-size: 1.4rem;
    }

    .dashboard-stat-card .stat-context {
        white-space: normal;
    }

    .card-header,
    .card-body {
        padding: 1rem;
    }

    .dashboard-table-card .card-body {
        padding: 0 1rem 0.35rem;
    }

    .dashboard-chart-card .card-body {
        min-height: 260px;
    }

    .report-chart {
        min-height: 260px;
    }

    .report-filter-form .col-md-auto {
        flex: 1 0 50%;
    }

    .report-filter-form .col-md-auto .btn {
        width: 100%;
    }

    .list-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .list-pagination-summary {
        text-align: center;
    }

    .list-pagination-controls,
    .list-pagination-page-size,
    .list-pagination-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .list-pagination-controls {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .list-pagination-page-size {
        justify-content: center;
    }

    .list-pagination-nav {
        width: 100%;
        gap: 0.35rem;
    }

    .content-page form .d-flex.gap-2 > .btn,
    .content-page form .d-flex.gap-2 > a.btn {
        flex: 1 1 10rem;
    }
}

@media (pointer: coarse) {
    .table .btn-icon {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .content-page .detail-actions > .btn,
    .content-page .detail-actions > form > .btn {
        min-height: 44px;
    }

    .list-pagination .btn,
    .list-pagination-page-size .form-select {
        min-height: 44px;
    }
}

@media (max-width: 767.98px) {
    .table-responsive.is-scrollable::after {
        content: "Deslize horizontalmente para ver mais";
        display: block;
        padding: 0.35rem 0.25rem 0.05rem;
        color: var(--eg-muted);
        font-size: 0.7rem;
        text-align: right;
    }
}

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

/* Login */
.auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: var(--bs-body-bg);
}

.auth-shell {
    width: min(100%, 1040px);
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    background: var(--eg-surface);
    border: 1px solid var(--eg-border);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(16, 45, 57, 0.12);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #effffc;
    background: var(--eg-sidebar);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(85, 200, 183, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-panel::before {
    right: -150px;
    bottom: -120px;
}

.auth-brand-panel::after {
    right: -80px;
    bottom: -50px;
    width: 150px;
    height: 150px;
    border-color: rgba(229, 173, 23, 0.35);
}

.auth-brand-panel .auth-brand-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 178px);
    height: auto;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 30ch;
}

.auth-brand-copy h1 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(1.8rem, 3.3vw, 2.7rem);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.auth-brand-copy p {
    margin: 0;
    color: #b9d1d1;
    font-size: 1rem;
    line-height: 1.7;
}

.auth-brand-footnote {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #8eafb2;
    font-size: 0.78rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    padding: clamp(1.5rem, 5vw, 4.5rem);
}

.login-card {
    width: min(100%, 390px);
    margin: 0 auto;
}

.login-card .logo-area {
    margin-bottom: 1.6rem;
}

.login-card .logo-area img {
    width: min(100%, 178px);
    height: auto;
}

.login-card h2 {
    margin-bottom: 0.45rem;
    color: var(--eg-ink);
    font-size: 1.6rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.login-card .login-intro {
    margin-bottom: 1.75rem;
    color: var(--eg-muted);
}

.login-card .alert {
    margin-bottom: 1.2rem;
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 0.75rem;
    }

    .auth-shell {
        display: block;
        min-height: auto;
        border-radius: 16px;
    }

    .auth-brand-panel {
        min-height: 230px;
        padding: 2rem 1.5rem;
        align-items: center;
        text-align: center;
    }

    .auth-brand-panel .logo-area {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .auth-brand-panel .logo-area img {
        max-width: 100%;
        height: auto;
    }

    .auth-brand-copy {
        width: 100%;
        max-width: 42ch;
    }

    .auth-brand-copy h1 {
        font-size: 1.7rem;
    }

    .auth-brand-footnote {
        display: none;
    }

    .auth-form-panel {
        padding: 2rem 1.5rem 2.25rem;
    }
}
