{{ t('ui.login_widget.welcome_message') }}

{% set current_lang = request.args.get('lang', 'en') %} {# Where the user was headed before being asked to log in — an MCP authorization, say. Both buttons carry it, so neither path drops it. #} {% set login_next = request.args.get('next') %} {% if request.args.get('session_expired') == '1' %} {% endif %} {% set methods = login_methods|default({'sso': none, 'google': true, 'password': true}) %} {% if methods.sso %} {{ t('ui.login_widget.sso_button', name=methods.sso.display_name) }} {% endif %} {% if google_login_enabled|default(false) %} {{ t('ui.login_widget.google_button') }} {% endif %} {% if (methods.sso or google_login_enabled|default(false)) and methods.password %}
{{ t('ui.login_widget.or_continue_with') }}
{% endif %} {# Password off: the form stays reachable for the company's owners only, behind a discreet link — the emergency door when the provider fails. #} {% if not methods.password %}
{% endif %}
{% if login_next %}{% endif %}
{% if not methods.password %}
{% endif %} {% if methods.password %}
{% if signup_invitation_required|default(false) %} {{ t('ui.login_widget.invitation_prompt') }} {% else %} {{ t('ui.login_widget.no_account_prompt') }} {{ t('ui.login_widget.signup_link') }} {% endif %}
{{ t('ui.login_widget.forgot_password_link') }}
{% endif %}