<#import "template.ftl" as layout> <@layout.registrationLayout displayMessage=!messagesPerField.existsError('username','password') displayInfo=realm.password && realm.registrationAllowed && !registrationDisabled??; section> <#if section = "header"> <#-- Logo is added via CSS ::before pseudo-element --> <#if auth.attemptedUsername?has_content> <#-- Password step: show username in disabled field with back arrow --> <#else>

${msg("loginAccountTitle")}

<#elseif section = "form">
<#if realm.password>
<#if auth.attemptedUsername?has_content> <#-- Password step: show username as disabled input with back link in label -->
${msg("doChange")}
<#else> <#-- Username step --> <#if !usernameHidden??>
<#if messagesPerField.existsError('username','password')> ${kcSanitize(messagesPerField.getFirstError('username','password'))?no_esc}
<#if auth.attemptedUsername?has_content || !usernameHidden??> <#-- Show password field if we're on password step OR if username is visible (combined form) --> <#if auth.attemptedUsername?has_content> <#-- Password step -->
<#if messagesPerField.existsError('password')> ${kcSanitize(messagesPerField.getFirstError('password'))?no_esc}
<#if (realm.rememberMe && !usernameHidden??) || realm.resetPasswordAllowed>
value="${auth.selectedCredential}"/>
<#elseif section = "info"> <#if realm.password && realm.registrationAllowed && !registrationDisabled??>
${msg("noAccount")} ${msg("doRegister")}
<#elseif section = "socialProviders"> <#if realm.password && social?? && social.providers?has_content>

${msg("identity-provider-login-label")}