{{ template "header" .}}

{{ .title }}

{{ if .disableSignup }}

{{ .locale.Tr "auth.signup-disabled" }}

{{ else }}
{{ if not .disableForm }}
{{ if .isLoginPage }}
{{ if not .DisableSignup }} {{ .locale.Tr "auth.register-instead" }} → {{ end }}
{{ else }}
{{ .locale.Tr "auth.login-instead" }} →
{{ end }} {{ .csrfHtml }}
{{ end }} {{ if or .githubOauth .gitlabOauth .giteaOauth .oidcOauth }} {{ if not .disableForm }}

{{ end }}
{{ if .githubOauth }} {{ .locale.Tr "auth.oauth" "GitHub"}} {{ end }} {{ if .gitlabOauth }} {{ .locale.Tr "auth.oauth" .c.GitlabName}} {{ end }} {{ if .giteaOauth }} {{ .locale.Tr "auth.oauth" .c.GiteaName }} {{ end }} {{ if .oidcOauth }} Continue with OpenID account {{ end }}
{{ end }}
{{ if and (.isLoginPage) (not .disableForm) }}

{{ .locale.Tr "auth.mfa.passkey" }}

{{ .csrfHtml }}
{{ end }}
{{ end }}
{{ template "footer" .}}