{{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}} {{template "base/alert" .}} {{end}}

{{if .LinkAccountMode}} {{ctx.Locale.Tr "auth.oauth_signin_title"}} {{else}} {{ctx.Locale.Tr "auth.login_userpass"}} {{end}}

{{.CsrfTokenHtml}}
{{if or (not .DisablePassword) .LinkAccountMode}}
{{ctx.Locale.Tr "auth.forgot_password"}}
{{end}} {{if not .LinkAccountMode}}
{{end}} {{template "user/auth/captcha" .}}
{{template "user/auth/oauth_container" .}}
{{template "user/auth/webauthn_error" .}}
{{if .ShowRegistrationButton}}
{{ctx.Locale.Tr "auth.need_account"}} {{ctx.Locale.Tr "auth.sign_up_now"}}
{{end}}