<?php include("brain.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title><?php echo $nome_site; ?></title>
<style type="text/css">
<!--
body {
	margin: 0px;
	background:url(images/fundo_login.jpg) top left repeat-x #33444d;
}
.inputbox {
	border:1px solid #575757;
	background:url(images/fundo_input_login.jpg) bottom left repeat-x;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:10px;
	color:#333333;
	width:195px;
	height:17px;
}
.texto {
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:10px;
	color:#000000;
	line-height:22px;
}
.erro {
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:9px;
	font-weight:bold;
	color:#FF0000;
	font-style:italic;
}
-->
</style>
</head>
<body onload="document.login.usuario.focus();">
<?
if($_GET['login'] == "falhou") {
    $erro = $_GET['causa'];
}
?>
<form name="login" method="post" action="user.php?acao=logar">
<table width="225" border="0" align="center" cellpadding="0" cellspacing="0" style="background:url(images/fundo_form_login.jpg) top left no-repeat;">
  <tr>
    <td height="59">&nbsp;</td>
  </tr>
  <tr>
    <td height="93" align="center"><img src="images/logo_login.png" /></td>
  </tr>
  <tr>
    <td height="46" valign="middle" align="center" class="erro"><? echo "$erro"; ?></td>
  </tr>
  <tr>
    <td height="87" valign="top">
        <table width="225" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="center" class="texto">Nome de Usu&aacute;rio<br /><input name="usuario" type="text" class="inputbox" /></td>
          </tr>
          <tr>
            <td align="center" class="texto">Senha<br /><input name="senha" class="inputbox" type="password" /></td>
          </tr>
        </table>
    </td>
  </tr>
  <tr>
    <td height="42" valign="bottom" align="center"><input name="" type="image" src="images/entrar_login.jpg" border="0" /></td>
  </tr>
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>
