<div class="content card">
    <form name="formSenha" novalidate ng-submit="recuperarSenha($event)">
        <h1>Recuperar Senha</h1>
        <div layout-gt-sm="row">
            <md-input-container class="md-block" flex-gt-sm>
                <label for="codigo">Código de acesso</label>
                <input name="codigo" id="codigo" type="text" class="uppercase" required ng-model="user.codigo">
                <div ng-messages="formSenha.codigo.$error">
                    <div ng-message="required">Campo obrigatório.</div>
                </div>
            </md-input-container>
        </div>
        <div layout-gt-sm="row">
            <md-input-container class="md-block" flex-gt-sm>
                <label>E-mail</label>
                <input required type="email" name="email" ng-model="user.email" minlength="10" maxlength="100" ng-pattern="/^.+@.+\..+$/"
                />
                <div ng-messages="formSenha.email.$error" role="alert">
                    <div ng-message-exp="['required', 'minlength', 'maxlength', 'pattern']">
                        Seu e-mail precisa ter entre 10 e 100 caracteres e seguir o padrão de email.
                    </div>
                </div>
            </md-input-container>
        </div>
        <div>
            <md-button type="submit" class="md-primary md-raised btnGravar">Recuperar senha</md-button>
        </div>
    </form>
</div>