<#macro registrationLayout bodyClass="" displayInfo=false displayMessage=true displayRequiredFields=false displayWide=false showAnotherWayIfPresent=true> ${msg("loginTitle",(realm.displayName!''))}
<#if realm.internationalizationEnabled && locale.supported?size gt 1>
${locale.current}
<#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())> <#if displayRequiredFields>
* ${msg("requiredFields")}

<#nested "header">

<#else>

<#nested "header">!

<#else> <#if displayRequiredFields>
* ${msg("requiredFields")}
<#nested "show-username">
<#else> <#nested "show-username">
<#-- App-initiated actions should not see warning messages about the need to complete the action --> <#-- during login. --> <#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)>
<#if message.type = 'success'> <#if message.type = 'warning'> <#if message.type = 'error'> <#if message.type = 'info'>
<#nested "form"> <#if auth?has_content && auth.showTryAnotherWayLink() && showAnotherWayIfPresent>
class="${properties.kcContentWrapperClass!}">
class="${properties.kcFormSocialAccountContentClass!} ${properties.kcFormSocialAccountClass!}">
<#if displayInfo>
<#nested "info">