/* Paleta Dark Mode Industrial - DSP Energy (Tema Roxo) */
:root {
    --bg-color: #0B0F19;      
    --sidebar-bg: #111827;    
    --card-bg: #1F2937;       
    --text-main: #F9FAFB;     
    --text-muted: #9CA3AF;    
    --dsp-primary: #8B5CF6;   
    --dsp-primary-light: #A78BFA; 
    --dsp-teal: #14B8A6;
    --border-color: #374151;  
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5); 
    --success: #10B981;
    --danger: #EF4444;
    --ponta: #F59E0B;        
    --fora-ponta: #8B5CF6;   
    --indutivo: #E11D48;     
    --capacitivo: #EAB308;

    /* Novos tokens para o visual "moderno" */
    --glass-bg: rgba(31, 41, 55, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --gradient-glow: radial-gradient(circle at top left, rgba(139, 92, 246, 0.15), transparent 60%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body {
    background-color: var(--bg-color);
    background-image: var(--gradient-glow);
    background-attachment: fixed;
    color: var(--text-main);
}
.dashboard-container { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, padding 0.3s ease;
}
.sidebar.collapsed { width: 84px; padding: 20px 16px; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.sidebar.collapsed .sidebar-top { justify-content: center; flex-direction: column; gap: 14px; }
.sidebar.collapsed .logo-energy,
.sidebar.collapsed .nav-label { display: none; }

.logo { font-size: 24px; letter-spacing: 1px; }
.logo-dsp { font-weight: 700; color: var(--dsp-primary); }
.logo-energy { font-weight: 300; color: var(--text-muted); }

.sidebar-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--dsp-primary-light); border-color: var(--dsp-primary); }
.sidebar-toggle svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }

.nav-menu { display: flex; flex-direction: column; gap: 10px; }
.nav-item {
    text-decoration: none; color: var(--text-muted); padding: 12px 15px;
    border-radius: 8px; font-weight: 600; transition: all 0.3s ease; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover, .nav-item.active { background-color: rgba(139, 92, 246, 0.1); color: var(--dsp-primary-light); border-left: 3px solid var(--dsp-primary); }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px 0; }

.main-content { flex: 1; padding: 30px 40px; overflow-y: auto; position: relative; }
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.main-content::-webkit-scrollbar-thumb:hover { background: var(--dsp-primary); }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.page-title { font-size: 22px; color: var(--text-main); }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.status-bar { font-size: 14px; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 8px; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }

.kpi-grid, .charts-grid { display: grid; gap: 20px; margin-bottom: 30px; }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.charts-grid { grid-template-columns: 2fr 1fr; }
.full-width-chart, .large-chart { grid-column: 1 / -1; }

/* CARDS COM EFEITO "GLASS" */
.kpi-card, .chart-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.kpi-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent 60%);
    pointer-events: none;
}
.kpi-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.35); }
.kpi-card.alert-card { border-color: rgba(239, 68, 68, 0.25); }
.kpi-card.alert-card::before { background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), transparent 60%); }

.kpi-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--dsp-primary-light);
    position: relative; z-index: 1;
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-icon-teal { background: rgba(20, 184, 166, 0.12); color: var(--dsp-teal); }
.kpi-icon-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.kpi-icon-warning { background: rgba(245, 158, 11, 0.12); color: var(--ponta); }
.kpi-icon-muted { background: rgba(156, 163, 175, 0.12); color: var(--text-muted); }

.kpi-card h3, .kpi-card h2 { position: relative; z-index: 1; }
.kpi-card h3 { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.4; }
.kpi-card h2 { font-size: 24px; color: var(--text-main); }
.kpi-card h2 .unit { font-size: 13px; color: var(--text-muted); font-weight: 400; display: block; margin-top: 4px; }
.text-ponta { color: var(--ponta) !important; }
.text-foraponta { color: var(--fora-ponta) !important; }

.chart-card h3 {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: var(--text-main);
    margin-bottom: 4px; position: relative; z-index: 1;
}
.chart-card h3 svg { width: 16px; height: 16px; color: var(--dsp-primary-light); flex-shrink: 0; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.section-header h2 svg { width: 18px; height: 18px; color: var(--dsp-primary-light); }
.action-buttons { display: flex; gap: 12px; }
.d-none { display: none !important; }

.mock-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    padding: 5px 12px; border-radius: 20px;
}
.mock-badge svg { width: 13px; height: 13px; color: var(--dsp-primary-light); }

.btn-primary {
    background: var(--gradient-primary); color: #fff; border: none; padding: 10px 20px;
    border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.25s ease;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }
.btn-danger { background-color: var(--danger); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.3s ease; }
.btn-danger:hover { background-color: #DC2626; }
.btn-danger:active { transform: scale(0.97); }
.btn-danger-outline { background-color: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-danger-outline:hover { background-color: rgba(239, 68, 68, 0.1); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-secondary:hover { background-color: rgba(255,255,255,0.05); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.store-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px; border-radius: 10px; border: 1px solid var(--glass-border);
    cursor: pointer; transition: all 0.2s ease; box-shadow: var(--card-shadow);
    position: relative; overflow: hidden;
}
.store-card:hover { transform: translateY(-5px); border-color: var(--dsp-primary); }
.store-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.store-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.store-sector { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 12px; }
.badge-online { background-color: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-offline { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.store-kpi-row { display: flex; justify-content: space-between; }
.store-kpi-item { display: flex; flex-direction: column; }
.store-kpi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.store-kpi-value { font-size: 18px; font-weight: 600; color: var(--text-main); }
.store-kpi-value span { font-size: 12px; color: var(--text-muted); }
.store-card::after { content: 'Selecionado para Excluir'; position: absolute; inset: 0; background: rgba(239, 68, 68, 0.9); color: white; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 15px; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.store-grid.remove-mode-active .store-card { cursor: cell; }
.store-grid.remove-mode-active .store-card:hover { transform: scale(0.98); border-color: var(--danger); }
.store-card.selected-for-removal { border-color: var(--danger); }
.store-card.selected-for-removal::after { opacity: 1; }

/* SKELETON LOADING */
.skeleton-card { cursor: default; }
.skeleton-card:hover { transform: none; border-color: var(--glass-border); }
.skeleton-line {
    height: 14px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%);
    background-size: 400% 100%;
    animation: skeletonPulse 1.4s ease infinite;
    margin-bottom: 10px;
}
.skeleton-title { width: 60%; height: 16px; }
.skeleton-sub { width: 40%; height: 11px; }
.skeleton-row { display: flex; gap: 16px; margin-top: 15px; }
.skeleton-kpi { flex: 1; height: 18px; margin-bottom: 0; }
@keyframes skeletonPulse { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-state {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: var(--text-muted); padding: 50px 20px;
    border: 1px dashed var(--border-color); border-radius: 12px; text-align: center;
}
.empty-state svg { width: 32px; height: 32px; opacity: 0.6; }

/* BLOCOS "EM CONSTRUÇÃO" (Faturamento) */
.construcao {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}
.construcao h2 { font-size: 18px; margin-bottom: 10px; }
.construcao p { color: var(--text-muted); font-size: 14px; }

/* TOASTS */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 12px;
    z-index: 2000;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    min-width: 280px; max-width: 360px;
    background: var(--card-bg); border: 1px solid var(--border-color); border-left: 4px solid var(--dsp-primary);
    color: var(--text-main); padding: 14px 16px; border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transform: translateX(120%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 14px; font-weight: 500;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast span { flex: 1; }
.toast-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 0; }
.toast-close:hover { color: var(--text-main); }
.toast-sucesso { border-left-color: var(--success); }
.toast-sucesso svg { color: var(--success); }
.toast-erro { border-left-color: var(--danger); }
.toast-erro svg { color: var(--danger); }
.toast-aviso { border-left-color: var(--ponta); }
.toast-aviso svg { color: var(--ponta); }
.toast-info svg { color: var(--dsp-primary-light); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background-color: var(--card-bg); width: 100%; max-width: 450px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 18px; font-weight: 600; }
.close-modal { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: var(--text-main); }
.modal-body { padding: 20px; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-control { width: 100%; background-color: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 12px; border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--dsp-primary); }
.modal-footer { padding: 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

.sub-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--border-color); margin-bottom: 25px; margin-top: 10px; }
.sub-nav-item { background: none; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; padding: 10px 4px; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; }
.sub-nav-item:hover { color: var(--text-main); }
.sub-nav-item.active { color: var(--dsp-primary); border-bottom-color: var(--dsp-primary); }
.lock-icon { margin-right: 6px; opacity: 0.7; }
.sub-tab-content { display: none; animation: fadeIn 0.3s ease; }
.sub-tab-content.active { display: block; }

/* === VISÃO TÉCNICA: CARDS ELÉTRICOS === */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }

.tech-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.tech-card-header {
    background: var(--gradient-primary);
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
}
.tech-card-header span { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.2px; line-height: 1.3; }
.tech-refresh {
    background: rgba(255,255,255,0.15); border: none; width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
    transition: background 0.2s ease; flex-shrink: 0;
}
.tech-refresh:hover { background: rgba(255,255,255,0.28); }
.tech-refresh svg { width: 14px; height: 14px; }
.tech-refresh.spinning svg { animation: techSpin 0.6s linear; }
@keyframes techSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.tech-card-body { padding: 20px 18px; display: flex; flex-direction: column; }

.tech-value-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; }
.tech-value-item:first-child { padding-top: 4px; }
.tech-value-item:not(:first-child) { border-top: 1px dashed var(--border-color); }
.tech-value { font-size: 22px; font-weight: 700; }
.tech-unit { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 5px; }
.tech-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.fase-a { color: var(--text-main); }
.fase-b { color: var(--ponta); }
.fase-c { color: var(--danger); }
.neutro-val { color: var(--dsp-teal); }

/* Barras de fator de potência */
.fp-item { padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.fp-item:not(:first-child) { border-top: 1px dashed var(--border-color); }
.fp-track {
    position: relative; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
    overflow: hidden;
}
.fp-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.1));
    border-right: 2px solid var(--dsp-primary);
    transition: width 0.6s ease;
}
.fp-fill.fase-b-fill { background: linear-gradient(90deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.1)); border-right-color: var(--ponta); }
.fp-fill.fase-c-fill { background: linear-gradient(90deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.1)); border-right-color: var(--danger); }
.fp-scale { position: relative; z-index: 1; font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.fp-value-text { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 13px; font-weight: 700; }
.fp-label { font-size: 12px; color: var(--text-muted); text-align: center; }

@media (max-width: 1150px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .tech-grid { grid-template-columns: 1fr; } }

/* === SOBREPOSIÇÕES PARA O APEXCHARTS === */
.apexcharts-tooltip {
    background: rgba(17, 24, 39, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    border-radius: 8px !important;
    color: var(--text-main) !important;
}
.apexcharts-tooltip-title {
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}
.apexcharts-menu {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

/* ============================================================
   LOGIN - DSP ENERGY
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;

    background-color: var(--bg-color);
    background-image:
        radial-gradient(
            circle at top left,
            rgba(139, 92, 246, 0.18),
            transparent 45%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(20, 184, 166, 0.08),
            transparent 40%
        );
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.login-card {
    width: 100%;

    background: rgba(31, 41, 55, 0.72);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid var(--glass-border);

    border-radius: 18px;

    padding: 36px;

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(139, 92, 246, 0.08);
}

.login-logo {
    text-align: center;

    font-size: 28px;

    letter-spacing: 1.5px;

    margin-bottom: 28px;
}

.login-header {
    text-align: center;

    margin-bottom: 28px;
}

.login-header h1 {
    font-size: 24px;

    font-weight: 700;

    color: var(--text-main);

    margin-bottom: 8px;
}

.login-header p {
    font-size: 13px;

    line-height: 1.6;

    color: var(--text-muted);
}

.login-form {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.login-input-wrapper {
    position: relative;

    display: flex;

    align-items: center;
}

.login-input-wrapper svg {
    position: absolute;

    left: 13px;

    width: 17px;

    height: 17px;

    color: var(--text-muted);

    pointer-events: none;
}

.login-input {
    padding-left: 42px;

    height: 46px;

    background-color: rgba(11, 15, 25, 0.72);
}

.login-input:focus {
    border-color: var(--dsp-primary);

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.12);
}

.login-button {
    width: 100%;

    justify-content: center;

    margin-top: 10px;

    min-height: 46px;

    font-size: 14px;
}

.login-button svg {
    width: 17px;

    height: 17px;
}

.login-error {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    padding: 11px 13px;

    border-radius: 8px;

    background-color: rgba(239, 68, 68, 0.08);

    border: 1px solid rgba(239, 68, 68, 0.25);

    color: #FCA5A5;

    font-size: 13px;
}

.login-error svg {
    width: 17px;

    height: 17px;

    flex-shrink: 0;

    color: var(--danger);
}

.login-footer {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid var(--border-color);

    font-size: 11px;

    color: var(--text-muted);
}


/* ============================================================
   BOTAO SAIR
   ============================================================ */

.logout-button {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border-radius: 7px;

    border: 1px solid var(--border-color);

    background: transparent;

    color: var(--text-muted);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: all 0.2s ease;
}

.logout-button:hover {
    color: var(--danger);

    border-color: rgba(239, 68, 68, 0.55);

    background-color: rgba(239, 68, 68, 0.08);
}

.logout-button svg {
    width: 15px;

    height: 15px;
}


/* ============================================================
   RESPONSIVIDADE LOGIN
   ============================================================ */

@media (max-width: 520px) {

    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .login-footer {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

}