/* ========================================================================== */
/* ESTILOS DA TELA DE ACESSO / LOGIN (INDEX.CSS)                              */
/* ========================================================================== */

/* Centraliza o conteúdo da página vertical e horizontalmente com espaçamento inferior */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

/* Container principal bipartido do login (Card de entrada + Painel de Detalhes) */
.login-wrapper {
    display: flex;
    background: rgba(18, 18, 22, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    width: 100%;
    max-width: 820px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Lado esquerdo: Cartão de inserção de CPF/CNPJ */
.login-card {
    padding: 36px;
    width: 100%;
    max-width: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ícone superior do login com efeito de sombra brilhante */
.login-icon {
    font-size: 40px;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.45));
}

/* Tipografia de títulos e subtítulos da tela de acesso */
h1 { 
    font-size: 19px; 
    font-weight: 800; 
    margin-bottom: 4px; 
    text-align: center; 
    letter-spacing: 0.5px; 
    color: #fff; 
}

p { font-size: 11.5px; color: #94a3b8; text-align: center; margin-bottom: 24px; line-height: 1.4; }
.input-group { margin-bottom: 14px; }
label { font-size: 10px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; display: block; margin-bottom: 6px; letter-spacing: 0.5px; }

/* Campo de input de texto centralizado para documentos */
input[type="text"] {
    width: 100%;
    height: 44px;
    background: rgba(10, 10, 13, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    padding: 0 14px;
    font-size: 13.5px;
    outline: none;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.2s;
}
input[type="text"]:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25); }

/* ========================================================================== */
/* GRUPO DO CHECKBOX "LEMBRAR CPF" E MENSAGEM DE ERRO                         */
/* ========================================================================== */
.remember-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    cursor: pointer;
}
.remember-group input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
}
.remember-group label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: none;
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

.error-msg { color: #f87171; font-size: 11px; text-align: center; margin-top: 12px; display: none; font-weight: 600; }

/* ========================================================================== */
/* PAINEL LATERAL DE DETALHES DO USUÁRIO                                      */
/* ========================================================================== */
.user-details-panel {
    flex: 1;
    background: rgba(29, 78, 216, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-group {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.group-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.group-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #60a5fa;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.detail-item { margin-bottom: 10px; }
.detail-item:last-child { margin-bottom: 0; }

.detail-label {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 12px;
    color: #f8fafc;
    font-weight: 600;
    word-break: break-word;
    margin-top: 2px;
}

/* ========================================================================== */
/* BADGES, SELOS DE ADMINISTRADOR E ESTATÍSTICAS                              */
/* ========================================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.active { background: rgba(6, 78, 59, 0.4); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.status-badge.blue { background: rgba(30, 58, 138, 0.4); border: 1px solid rgba(59, 130, 246, 0.4); color: #60a5fa; }

/* Selo indicador "⭐ Adm." */
.admin-badge-pill {
    display: none;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.customer-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.stat-box {
    background: rgba(10, 10, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}
.stat-box span {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 2px;
}
.stat-box.green span { color: #34d399; }
.stat-box.red span { color: #f87171; }
.stat-box.yellow span { color: #fbbf24; }

/* ========================================================================== */
/* RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS                                   */
/* ========================================================================== */
@media(max-width: 680px) {
    .login-wrapper { flex-direction: column; max-width: 380px; margin: 20px; }
    .user-details-panel { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 36px; }
    .customer-stats-grid { grid-template-columns: 1fr; }
}