{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content {{if .IsRepo}}repository{{end}}">
	{{if .IsRepo}}{{template "repo/header" .}}{{end}}
	<div class="ui container">
		{{template "base/alert" .}}
		<div class="status-page-error">
			<div class="status-page-error-title">404 Not Found</div>
			<div class="tw-text-center">
				<div class="tw-my-4">{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</div>
				{{if .NotFoundGoBackURL}}
					<a class="tw-block tw-my-4" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>
				{{end}}
			</div>
			{{if not .IsSigned}}
			<div class="tw-max-w-sm tw-mx-auto tw-mt-4">
				<form class="ui form" action="{{AppSubUrl}}/user/login" method="post">
					{{.CsrfTokenHtml}}
					<input type="hidden" name="redirect_to" value="{{.CurrentURL}}">
					<div class="required field">
						<label>{{ctx.Locale.Tr "home.uname_holder"}}</label>
						<input type="text" name="user_name" required autofocus>
					</div>
					<div class="required field">
						<label>{{ctx.Locale.Tr "password"}}</label>
						<input type="password" name="password" required>
					</div>
					<button class="ui primary fluid button tw-mt-2" type="submit">{{ctx.Locale.Tr "sign_in"}}</button>
				</form>
				{{if or .OAuth2Providers .EnableSSPI}}
					<div class="divider"></div>
					{{template "user/auth/external_auth_methods" .}}
				{{end}}
			</div>
			{{end}}
		</div>
	</div>
</div>
{{template "base/footer" .}}
