const { Button, Input, Checkbox, Icon } = window.ACRFlowDesignSystem_ba1e9c; function LoginScreen({ onLogin }) { const [email, setEmail] = React.useState(""); const [senha, setSenha] = React.useState(""); const [keep, setKeep] = React.useState(true); const [show, setShow] = React.useState(false); const [erro, setErro] = React.useState(""); const [entrando, setEntrando] = React.useState(false); const entrar = async () => { setErro(""); if (!email.trim() || !senha) { setErro("Informe o e-mail e a senha."); return; } setEntrando(true); try { const r = await window.ACRApi.auth.login(email.trim(), senha); window.ACRApi.setToken(r.token); onLogin(r.user); } catch (e) { setErro(e.message || "Não foi possível entrar."); } finally { setEntrando(false); } }; return (
Copyright © 2026 Group ACR - Todos os direitos reservados
Condomínio e Contabilidade