import streamlit as st from api_client import APIClient def render_login_view(api_client: APIClient): st.markdown("

", unsafe_allow_html=True) c1, c2, c3 = st.columns([1, 2, 1]) with c2: with st.container(border=True): st.markdown( """

📡 LeadRadar

Prospecção Inteligente & Gestão Comercial B2B

""", unsafe_allow_html=True ) email = st.text_input("E-mail de Acesso", placeholder="seu.email@empresa.com", key="login_email") password = st.text_input("Senha", type="password", placeholder="••••••••", key="login_password") if st.button("🚀 Entrar no Sistema", use_container_width=True, type="primary"): if not email or not password: st.error("Por favor, preencha o e-mail e a senha.") else: with st.spinner("Autenticando credenciais..."): success, message = api_client.login(email, password) if success: st.success(message) st.rerun() else: st.error(message) st.markdown( """
LeadRadar Core v1.0 • Desenvolvido com Flask & Streamlit
""", unsafe_allow_html=True )