{{ if .Error }}
<div class="flex justify-center w-full">
    <div class="p-4 font-semibold text-white text-sm bg-red-500 rounded mt-16 shadow grow max-w-lg">
        Error: {{ .Messages.Error | capitalize }}
    </div>
</div>
{{ else if .Success }}
    <div class="flex justify-center w-full">
        <div class="p-4 font-semibold text-white text-sm bg-green-500 rounded mt-16 shadow grow max-w-lg">
            {{ .Messages.Success | capitalize }}
        </div>
    </div>
{{ end }}