2FA Required screen (v2) CSS

This screen appears after:

  1. A user has been authenticated.

  2. Two-factor authentication is in force.

  3. The user has both a verified email address and a verified mobile number.

If all of the preceding conditions are true, the authRule_secondFactor appears and the user can choose whether their two-factor access code is sent to them via email or via text messaging.

See Add custom CSS stylesheets here for information on overriding the default CSS settings.

Login page HTML

To help you put the CSS classes in context, the following snippet shows the HTML markup used to define the screen, with the CSS classes highlighted using red text. To view the latest HTML for a screen, right-click a blank spot on your Hosted Login login page, click View Page Source, then search for the screen name.

<div style="display:none;" id="authRule\_secondFactor" class="screen">
  <div class="auth-screen content-wrapper">
    <h1 class="screen-heading">{* textAuthRuleSecondFactorHeading *}</h1>
    <p class="screen-description">{* textAuthRuleSecondFactorValue *}</p>
      <div class="form-action-buttons">
        <p class="action-description">{* textAuthRuleSecondFactorActionTitle *}</p>
            <div id="requestSecondFactorEmailCodeContainer">
                <p class="action-description" id="requestSecondFactorEmailCodeTitle">{* textAuthRuleSecondFactorEmailCodeTitle *}</p>
                <button type="submit" id="requestSecondFactorEmailCodeButton" class="aic-control" data-action="requestSecondFactorEmailCode">g*****p@hotmail.com</button>
                <p class="aic-error" id="requestSecondFactorCodeEmailError"></p>
        <p style="display:none;" class="aic-error" id="requestSecondFactorCodeError">{* textAuthRuleSecondFactorActionError *}</p>
  <div class="additional-actions-container">
    <div class="content-wrapper">
      <span class="help-text"><a href=""view-source%3Ahttps%3A//v1.api.us.janrain.com/e0a70b4f-1eef-4856-bcdb-f050fee66aae/auth-ui/v2/login?\_\_aic\_csrf=fo3YXieocsFVRsd\_&client\_id=64430515-01ea-4f5d-82e4-c36161af0093&code\_challenge=qsPq1vY\_27mtHgxHIiIdBg6LTMGOz1OipZM2Ynn9ETA&code\_challenge\_method=S256&prompt=login&redirect\_uri=https%3A%2F%2Foidc-playground.akamai.com%2Fredirect\_uri&response\_type=code&scope=openid&state=XGW3\_EvXQQ5RqYgGqXYpMMrbFJYpXpPapBX7dvQ0ywo">#" class="aic-control cancel-link" data-action="cancel">{* textCancelRequest *}</a></span>
  <div class="footer-container">
    <div class="content-wrapper">
        <span class="help-link">{* textNeedHelp *}{* linkHelp *}</span>
        <div class="footer-text">
        {* textFooter *}
        <div class="footer-extra-text">
        {* textFooterExtra *}

CSS classes used on this screen

The following table lists all the CSS classes used on this screen; the table also includes the default CSS specified for each class (note that some classes, such as footer-text, are not spelled out in the base.css file).

ClassDefault CSS
additional-actions-container.additional-actions-container {
padding: 25px;
.aic-control {

.cancel-link {
display: block;margin - bottom: 10 px
aic-control.aic-control {
aic-error.aic-error {
color:# fa5151
auth-screen content-wrapper.auth-screen.content-wrapper {
content-wrappercontent-wrapper {
background-color: #fff;
box-shadow:1px 1px 5px 2px rgba(0, 0, 0, .1)
footer-containerfooter-container {
padding: 25 px;
border - top: 1 px solid #f2f2f2;
text - align: center
form-action-buttons.form-action-buttons {
margin:0 -10px
screen-heading.screen-heading {

CSS classes mapped to UI elements

The following graphic maps CSS classes to the more-visible UI elements used in the screen:

See also