/* index.css - Atualizado */

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--off_white);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.fundo-pagina {
    position: fixed;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background-image: url('imagens/login_fundo.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -3;
}

.sobreposicao-cor {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--vermelho_padrao); 
    opacity: 0.2; 
    z-index: -2;
    pointer-events: none;
}

.container-login {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.card-login {
    background-color: var(--fundo_branco);
    width: 100%;
    max-width: 420px;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: var(--sombra_painel);
    border: 1px solid var(--cinza_borda_mobile);
}

.logo-buffet {
    max-width: 160px;
    height: auto;
    margin-bottom: 5px;
}

.cabecalho-login { margin-bottom: 20px; }

.titulo-login {
    font-size: 1.2rem;
    color: var(--texto_principal);
    margin: 5px 0;
    font-weight: 600;
}

.subtitulo-login {
    color: var(--texto_secundario);
    font-size: 0.9rem;
    margin: 0;
}

/* Inputs */
.grupo-input { margin-bottom: 15px; }

.grupo-input label {
    font-size: 0.9rem;
    color: var(--texto_principal);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.icone-input {
    position: absolute;
    left: 12px;
    color: var(--cinza_icone);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    font-size: 0.95rem;
    color: var(--texto_principal);
    background-color: var(--off_white);
    border: 2px solid var(--cinza_borda_mobile);
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    background-color: var(--fundo_branco);
    border-color: var(--vermelho_padrao);
    box-shadow: 0 0 0 4px var(--vermelho_padrao_sombra);
}

.btn-icone-acao {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cinza_icone);
    display: flex;
    align-items: center;
}

.oculto { display: none !important; }

.grupo-acoes-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-container input {
    accent-color: var(--vermelho_padrao);
    width: 16px; height: 16px;
}

.checkbox-container label {
    font-size: 0.85rem;
    color: var(--texto_secundario);
    cursor: pointer;
}

.botao-entrar {
    background-color: var(--vermelho_padrao);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.botao-entrar:hover { background-color: var(--vermelho_padrao_hover); }

.botao-qrcode {
    background-color: transparent;
    color: var(--texto_principal);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px;
    border: 2px solid var(--cinza_borda_mobile);
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modal e Scanner */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-conteudo {
    background-color: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.modal-cabecalho {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.btn-fechar {
    background: none; border: none; font-size: 2rem; cursor: pointer; color: #999;
}

.modal-corpo { padding: 20px; text-align: center; }

#leitor-qrcode {
    width: 100%;
    aspect-ratio: 1/1;
    background: #000;
    border-radius: 12px;
    margin-bottom: 15px;
}

.controles-camera {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-controle-cam {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--cinza_borda_mobile);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texto_principal);
    transition: all 0.2s;
}

.btn-controle-cam:hover { background: var(--off_white); }
.btn-controle-cam.ativo { background: var(--vermelho_padrao); color: white; border-color: var(--vermelho_padrao); }

.texto-instrucao { font-size: 0.85rem; color: var(--texto_secundario); }

.linha-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
}
.link-pequeno { text-decoration: none; color: var(--texto_secundario); }
.link-pequeno.destaque { color: var(--vermelho_padrao); font-weight: 600; }