:root {
    --primary: #CB3448;    /* Vermelho Principal */
    --secondary: #594141;  /* Marrom Escuro/Café */
    --accent: #e23f83;     /* Rosa Choque */
    --highlight: #ea5844;  /* Laranja Avermelhado */
    --bg-light: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* { box-sizing: border-box; outline: none; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Fonte mais moderna */
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Efeitos Globais --- */
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Estilos para Tabelas e Formulários Internos --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th, .data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background-color: #fafafa; }

.btn-sm { padding: 5px 10px; font-size: 0.8rem; border-radius: 6px; text-decoration: none; display: inline-block;}
.btn-danger { background-color: var(--primary); color: white; border: none; cursor: pointer; }
.btn-success { background-color: #2ecc71; color: white; border: none; cursor: pointer; }

/* Grid de Estatísticas (Admin) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 2rem;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, white, #fff5f5);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
}

.stat-card h3 { margin: 0; font-size: 2rem; color: var(--secondary); }
.stat-card p { margin: 5px 0 0; color: #666; font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }

/* --- Header Glassmorphism Moderno --- */
:root {
    --header-height: 80px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.95); /* Fundo quase sólido para leitura */
    backdrop-filter: blur(10px); /* Efeito de vidro */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-spacer {
    height: var(--header-height);
}

/* Logo Estilizada */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.2rem;
    gap: 10px;
}

.logo .icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(203, 52, 72, 0.3);
}

.logo .highlight { color: var(--primary); }

/* Navegação */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
}

nav a:hover {
    color: var(--primary);
    background: rgba(203, 52, 72, 0.05);
}

/* Estado Ativo (Página Atual) */
nav a.active {
    color: var(--primary);
    background: rgba(203, 52, 72, 0.1);
}

nav a i { font-size: 1.1rem; }

/* Ações de Usuário */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.btn-logout {
    background-color: #ffebee;
    color: var(--primary) !important;
    border: 1px solid transparent;
}

.btn-logout:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Toggle Mobile (Escondido no Desktop) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .user-actions {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
    }

    nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        clip-path: circle(0% at 100% 0); /* Efeito de abrir */
        transition: clip-path 0.5s ease-in-out;
        gap: 15px;
    }

    nav.active {
        clip-path: circle(150% at 100% 0);
    }

    nav a {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1.1rem;
    }
}

/* --- Botões com Efeito --- */
.btn-primary {
    background: linear-gradient(45deg, var(--highlight), var(--primary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px; /* Redondo */
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(234, 88, 68, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-3px); /* Levanta o botão */
    box-shadow: 0 8px 20px rgba(234, 88, 68, 0.6);
}

.btn-primary:active { transform: translateY(-1px); }

/* --- Dashboard Layout --- */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 1. Welcome & Actions */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text h2 { margin: 0; color: var(--secondary); font-size: 1.8rem; }
.welcome-text p { margin: 5px 0 0; color: #777; }

.quick-actions { display: flex; gap: 15px; }

.btn-quick {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(203, 52, 72, 0.3);
}
.btn-quick.secondary { background: var(--secondary); box-shadow: 0 4px 10px rgba(89, 65, 65, 0.3); }
.btn-quick:hover { transform: translateY(-3px); }

/* 2. Stats Grid & Chart */
.stats-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Esquerda maior, Gráfico menor */
    gap: 25px;
    margin-bottom: 3rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-card .icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.kpi-card h3 { margin: 0; font-size: 1.5rem; color: var(--text-dark); }
.kpi-card p { margin: 0; font-size: 0.85rem; color: #888; text-transform: uppercase; font-weight: 600; }

.chart-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.chart-card h4 { margin-top: 0; color: #666; font-size: 0.9rem; text-transform: uppercase; }

/* 3. Cards de Pedidos Melhorados */
.status-border-pendente { border-left: 5px solid #f1c40f; }
.status-border-preparando { border-left: 5px solid var(--accent); }
.status-border-saiu_entrega { border-left: 5px solid var(--highlight); }
.status-border-entregue { border-left: 5px solid #2ecc71; opacity: 0.8; }
.status-border-cancelado { border-left: 5px solid #95a5a6; opacity: 0.6; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.order-id { font-weight: 800; color: #ccc; font-size: 0.9rem; }

/* --- Layout Clientes --- */
.clients-layout {
    display: grid;
    grid-template-columns: 350px 1fr; /* Esquerda fixa, Direita flexível */
    gap: 30px;
    padding: 0 2rem 2rem;
    align-items: start;
}

/* Formulário Sticky (Fica fixo ao rolar) */
.sticky-card {
    position: sticky;
    top: 100px; /* Ajuste conforme altura do seu header */
}

/* Ícone decorativo no topo do card */
.card-header-icon {
    width: 50px; height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

/* Barra de Busca */
.search-bar {
    display: flex;
    align-items: center;
    padding: 15px !important; /* Sobrescreve padding padrão do card */
    margin-bottom: 20px;
}

/* Inputs com Ícones (Reutilizando do Login ou criando específico) */
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: 0.3s;
}
.input-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}
/* --- Estilos da Nova Barra de Busca --- */
.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    margin: 0;
    transition: 0.3s;
}

.search-input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(226, 63, 131, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 25px;
    height: 46px; /* Mesma altura do input */
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-search:hover { background-color: #b02336; }

.btn-clear {
    background: #f1f2f6;
    color: #666;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center; justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-clear:hover { background: #e1e2e6; color: var(--primary); }

/* --- Botões de Ação na Tabela --- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    gap: 6px;
}

.btn-action:hover { transform: translateY(-2px); }

/* Botão WhatsApp Específico */
.btn-whatsapp {
    background-color: #e6fffa;
    color: #00a884;
    border: 1px solid #b2f5ea;
}

.btn-whatsapp:hover {
    background-color: #00a884;
    color: white;
    border-color: #00a884;
}

.btn-edit {
    background-color: #fff5f5;
    color: var(--primary);
    border: 1px solid #fed7d7;
}

.btn-edit:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Alinhamento da Tabela */
.align-middle td {
    vertical-align: middle !important;
}
/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* Efeito Blur no fundo */
    z-index: 2000;
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-header h3 { margin: 0; color: var(--primary); }

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
}
.btn-close:hover { color: var(--primary); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: #eee;
    color: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary:hover { background: #e0e0e0; }
/* --- Dashboard Alignment Fix --- */

.stats-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Esquerda (KPIs) maior, Direita (Gráfico) menor */
    gap: 25px;
    margin-bottom: 3rem;
    align-items: stretch; /* Estica para terem a mesma altura */
}

/* Coluna da esquerda (KPIs) vira um Flex vertical */
.kpi-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espalha os cards */
    gap: 20px;
}

.kpi-card {
    background: white;
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1; /* Faz cada card crescer igualmente */
    transition: transform 0.2s;
    border-left: 5px solid transparent;
}

.kpi-card:hover { transform: translateX(5px); }

/* Cores das bordas laterais dos KPIs para dar charme */
.kpi-card:nth-child(1) { border-left-color: #2ecc71; }
.kpi-card:nth-child(2) { border-left-color: #f1c40f; }
.kpi-card:nth-child(3) { border-left-color: var(--accent); }

.chart-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa toda a altura disponível */
}

.chart-container-inner {
    flex: 1; /* Ocupa o espaço restante dentro do card */
    position: relative;
    min-height: 250px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 2rem 0 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.badge-count {
    background: #eee;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}
/* --- Estilos do Card de Pedido Melhorado --- */
.order-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-id-badge {
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.order-items-box {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    flex: 1; /* Ocupa espaço disponível */
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.items-list li {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}
.items-list li:last-child { border-bottom: none; }

.price-tag small {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.price-tag span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.form-select {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: white;
}

/* Botão de Imprimir (Preto) */
.btn-icon.print {
    background: #2d3436;
    color: white;
}

/* --- ESTILO DO CUPOM FISCAL (Visual na tela) --- */
.receipt-paper {
    background: #fffdf0; /* Cor amarelada de cupom */
    width: 320px; /* Largura padrão de impressora térmica */
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace; /* Fonte monoespaçada */
    color: #000;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .receipt-paper {
    transform: translateY(0);
}

.receipt-header { text-align: center; }
.receipt-header h2 { margin: 0 0 5px 0; font-size: 1.2rem; text-transform: uppercase; }
.receipt-header p { margin: 2px 0; font-size: 0.8rem; }

.dashed-line {
    border: 0;
    border-top: 1px dashed #000;
    margin: 10px 0;
}

.receipt-client p, .receipt-items p, .receipt-total p, .receipt-footer p {
    margin: 4px 0;
    font-size: 0.85rem;
}

.receipt-total { text-align: right; }
.receipt-total h3 { margin: 5px 0; font-size: 1.2rem; }

.receipt-footer { text-align: center; margin-top: 10px; font-size: 0.7rem; }

/* --- REGRAS DE IMPRESSÃO (Importante!) --- */
@media print {
    /* Esconde TUDO na página */
    body * {
        visibility: hidden;
        background: none;
    }

    /* Mostra APENAS a área do cupom */
    #printableArea, #printableArea * {
        visibility: visible;
    }

    /* Posiciona o cupom no topo esquerdo do papel */
    #printableArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%; /* Ocupa largura do papel da impressora */
        margin: 0;
        padding: 0;
        background: white; /* Fundo branco para economizar tinta */
    }

    /* Esconde botões do modal na impressão */
    .modal-footer, .btn-close {
        display: none !important;
    }
    
    /* Remove sombras e cores de fundo */
    .receipt-paper {
        box-shadow: none;
        background: white;
        width: 100%;
    }
}

/* Empty State (Design quando não há pedidos) */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #999;
    border: 2px dashed #eee;
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; color: #ddd; }

/* Responsividade do Dashboard */
@media (max-width: 900px) {
    .stats-wrapper { 
        grid-template-columns: 1fr; /* Vira uma coluna só no mobile */
    }
    .chart-container-inner {
        min-height: 200px; /* Gráfico menor no celular */
    }
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .clients-layout {
        grid-template-columns: 1fr; /* Vira coluna única */
    }
    
    .sticky-card {
        position: static; /* Remove sticky no mobile */
    }
    
    .page-header {
        text-align: center;
    }
}

.order-items {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid #eee;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Empurra pro fundo */
}

.total-price { font-weight: 800; font-size: 1.1rem; color: var(--primary); }

.action-buttons { display: flex; gap: 8px; }

.btn-icon {
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-icon.accept { background: var(--accent); }
.btn-icon.deliver { background: var(--highlight); }
.btn-icon.finish { background: #2ecc71; }
.btn-icon.cancel { background: white; color: var(--primary); border: 1px solid #eee; }
.btn-icon:hover { transform: scale(1.1); }

/* Responsividade do Dashboard */
@media (max-width: 900px) {
    .stats-wrapper { grid-template-columns: 1fr; }
    .chart-card { display: none; /* Opcional: Esconder gráfico no mobile se ocupar mt espaço */ }
}

/* Badge de Status */
.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    float: right;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.status-pendente { background-color: #f39c12; color: white; }
.status-preparando { background-color: var(--accent); color: white; }
.status-entregue { background-color: #27ae60; color: white; }
.status-cancelado { background-color: var(--secondary); color: white; }

/* --- Toasts Notifications Container --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    background: white;
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    border-left: 5px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
}

.toast.success { border-color: #2ecc71; }
.toast.error { border-color: var(--primary); }
.toast.info { border-color: var(--highlight); }

.toast.hide { animation: fadeOutRight 0.4s forwards; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOutRight { to { transform: translateX(110%); opacity: 0; } }

/* --- Estilos Exclusivos da Tela de Login --- */

.login-body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Fundo decorativo (círculos sutis) */
.login-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}
.login-body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
    text-align: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--accent);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary), var(--highlight));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(203, 52, 72, 0.3);
}

.login-header h2 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.8rem;
}

.login-header p {
    margin: 5px 0 0;
    color: #888;
    font-size: 0.9rem;
}

/* Inputs com Ícones */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 45px; /* Espaço para ícones */
    border: 2px solid #eee;
    border-radius: 12px;
    background: #f8f9fa;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    margin: 0; /* Remove margem padrão do input global */
}

.input-group input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 5px 15px rgba(226, 63, 131, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: 0.3s;
}

.input-group input:focus + .input-icon,
.input-group input:focus ~ .input-icon {
    color: var(--accent);
}

/* Ícone de ver senha */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}
.toggle-password:hover { color: var(--secondary); }

.form-footer {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-link {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
}
.forgot-link:hover { color: var(--primary); text-decoration: underline; }

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    font-size: 0.8rem;
}