<div class="login" style="">
  <div class="header">
    CMS
  </div>
  <form class="table" action="<?=$this->linkTo("cms_login", "login");?>" method="post" id="loginform">
    <div class="inner-form">
      <?php $this->messenger(); ?>

      <div style="width: 66px;float: left;padding: 8px;line-height: 30px;">
        <label for="login">Login</label>
      </div>
      <div style="width: 224px;float: left;padding: 8px;">
        <input class="txt required" type="text" id="login" name="login[login]" />
      </div>
      <div class="clearfix"></div>

      <div style="width: 66px;float: left;padding: 8px;line-height: 30px;">
        <label for="password">Senha</label>
      </div>
      <div style="width: 224px;float: left;padding: 8px;">
        <input class="txt pwd required" id="password" type="password" name="login[password]" />
      </div>
      <div class="clearfix"></div>

      <div style="width: 66px;float: left;padding: 8px;line-height: 30px;">
        &nbsp;
      </div>
      <div style="width: 224px;float: left;padding: 8px;">
        <input class="btn btn-primary" type="submit" value="Entrar" />
      </div>
      <div class="clearfix"></div>
    </div>
  </form>
</div>

<script type="text/javascript">
$(function(){
  $("#loginform input").first().focus();
  $("#loginform").validate({
    submitHandler:function(form){
      $(form).block();
      form.submit();
    }
  })
});
</script>