.loginForm {
    display: inline-block;
    background-color: #F9F9F9;
    color: rgb(102, 102, 102);
    min-width: 350px;
    max-width: 90%;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-box-shadow: 0px 4px 35px 0px rgba(0,0,0,0.42);
    -moz-box-shadow: 0px 4px 35px 0px rgba(0,0,0,0.42);
    box-shadow: 0px 4px 35px 0px rgba(0,0,0,0.42);
    white-space: nowrap;
    overflow: hidden;
}

.loginForm input[type='text'], .loginForm input[type='password'] {
    width: 100%;
}

.loginForm > .title {
    padding: 10px;
    background: rgb(102, 102, 102);
    color: #F9F9F9;
    text-align: center;
}

.loginForm > .form {
    padding: 10px;
    text-align: left;
}

.loginForm .loading {
    display: none;
    padding: 0 0 10px 0;
}

.loginForm > .footer {
    padding: 10px;
    background: rgb(102, 102, 102);
    color: #F9F9F9;
    text-align: center;
}

.loginForm .messageBox{
    display: none;
}

/* Expired / must-change password panel */
.adChangePanel .adChangeIntro{
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 12px;
    color: rgb(102, 102, 102);
    white-space: normal;
}
.adChangePanel .adRules{
    font-size: 0.8em;
    padding-left: 16px;
    margin: 6px 0 2px 0;
    color: #888;
    white-space: normal;
}
.adChangePanel .adRules li{
    padding: 1px 0;
}
.adChangePanel .adChangeCancel{
    margin-top: 8px;
}
.adChangePanel .adChangeCancel a{
    font-size: 0.8em;
    color: rgb(102, 102, 102);
    text-decoration: underline;
    cursor: pointer;
}
/* ---------------------------------------------------------------------------
   Multi-factor panels (BMS only).

   ⚠ SCOPED ENTIRELY UNDER .mfaPanel / .mfaEnrollPanel, exactly like the
     .adChangePanel rules above — which is already the proof that scoped
     additions to this SHARED file are inert for portals/medical, which renders
     neither class.
   --------------------------------------------------------------------------- */
.mfaPanel .mfaIntro,
.mfaEnrollPanel .mfaEnrollIntro{
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 12px;
    color: rgb(102, 102, 102);
    white-space: normal;
}

/* The number the employee compares across two screens. It goes browser -> phone
   and never the other way: somebody being spammed with prompts has no number to
   tap, which is what stops "approve everything" from working. */
.mfaPanel .mfaMatch{
    text-align: center;
    margin: 4px 0 12px;
    padding: 10px;
    background: #f5f9ff;
    border: 1px solid #cfe0fb;
    border-radius: 8px;
}
.mfaPanel .mfaMatchLabel{
    font-size: 0.72em;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5b6675;
}
.mfaPanel .mfaMatchCode{
    font-family: Consolas, Menlo, monospace;
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1.15;
    color: #1c2430;
    font-variant-numeric: tabular-nums;
}
/* The phone shows three numbers and never says which is right; this line is why
   the employee looks here at all. Small, because it explains rather than asks. */
.mfaPanel .mfaMatchNote{
    margin-top: 6px;
    font-size: 0.7em;
    line-height: 1.5;
    color: #5b6675;
}

/* Who is asking. Shown here as well as on the phone, so the employee learns to
   read the same two lines in the place where it actually matters. */
.mfaPanel .mfaContext{
    font-size: 0.78em;
    color: #666;
    margin-bottom: 10px;
    white-space: normal;
}
.mfaPanel .mfaContextRow{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
    border-bottom: 1px dotted #e3e7ee;
}
.mfaPanel .mfaContextRow span{ color: #8b95a3; }
.mfaPanel .mfaContextRow b{ font-weight: 600; text-align: right; word-break: break-word; }

.mfaPanel .mfaWaiting{
    font-size: 0.8em;
    color: #5b6675;
    margin-bottom: 10px;
}
.mfaPanel .mfaCountdown{ font-variant-numeric: tabular-nums; }

.mfaPanel .mfaOtpLabel{
    font-size: 0.8em;
    color: #666;
    margin: 10px 0 6px;
    white-space: normal;
}
.mfaPanel .mfaOtpRow{
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.mfaPanel .mfaOtpRow input[type=text]{
    font-family: Consolas, Menlo, monospace;
    font-size: 1.3em;
    letter-spacing: 0.2em;
    text-align: center;
    width: 6.5em;
    padding: 6px 8px;
}

.mfaPanel .mfaLinks,
.mfaEnrollPanel .mfaLinks{
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.mfaPanel .mfaLinks a,
.mfaEnrollPanel .mfaLinks a{
    font-size: 0.78em;
    color: rgb(102, 102, 102);
    text-decoration: underline;
    cursor: pointer;
}
.mfaPanel .mfaNoPhoneHelp{
    margin-top: 10px;
    padding: 9px 11px;
    background: #fffbe6;
    border: 1px solid #f0e6c0;
    border-radius: 6px;
    font-size: 0.78em;
    line-height: 1.5;
    color: #8a6d00;
    white-space: normal;
}

.mfaEnrollPanel .mfaSteps{
    font-size: 0.8em;
    line-height: 1.7;
    padding-left: 18px;
    margin: 6px 0;
    color: #666;
    white-space: normal;
}
.mfaEnrollPanel .mfaEnrollFoot{
    font-size: 0.78em;
    color: #888;
    margin-top: 8px;
    white-space: normal;
}
