/*//////////////////////////////////////////////////////////////////
[ Verificação em duas etapas — tela dedicada ]*/

.dois-fatores-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
    padding: 24px 16px;
}

.dois-fatores-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(31, 82, 122, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 44px 40px 40px;
    text-align: center;
}

.dois-fatores-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f527a 0%, #2c6ea5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(31, 82, 122, 0.28);
}

.dois-fatores-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dois-fatores-title {
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 24px;
    color: #26333f;
    line-height: 1.3;
    margin-bottom: 10px;
}

.dois-fatores-subtitle {
    font-family: Montserrat-Regular, sans-serif;
    font-size: 13.5px;
    color: #7c8a97;
    line-height: 1.6;
    margin-bottom: 30px;
}

.dois-fatores-subtitle strong {
    font-family: Montserrat-SemiBold, sans-serif;
    color: #444444;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.otp-box {
    width: 48px;
    height: 58px;
    border: 1.5px solid #e2e8ee;
    border-radius: 12px;
    background: #f7f9fb;
    text-align: center;
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: 24px;
    color: #26333f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.otp-box:focus {
    outline: none;
    border-color: #1f527a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 82, 122, 0.12);
}

.otp-box.is-filled {
    border-color: #2c6ea5;
    background: #ffffff;
}

@media (max-width: 420px) {
    .dois-fatores-card {
        padding: 34px 20px 30px;
    }

    .otp-box {
        width: 40px;
        height: 52px;
        font-size: 20px;
    }

    .otp-boxes {
        gap: 7px;
    }
}

.dois-fatores-countdown {
    font-family: Montserrat-Regular, sans-serif;
    font-size: 12.5px;
    color: #96a3b0;
    margin-bottom: 26px;
}

.dois-fatores-countdown strong {
    font-family: Montserrat-SemiBold, sans-serif;
    color: #566472;
}

.dois-fatores-countdown.is-expiring strong {
    color: #d64545;
}

.dois-fatores-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: #1f527a;
    font-family: Montserrat-Bold, sans-serif;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.dois-fatores-submit:hover {
    background: #fd5c63;
}

.dois-fatores-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dois-fatores-resend-row {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef1f4;
}

.dois-fatores-resend-text {
    font-family: Montserrat-Regular, sans-serif;
    font-size: 12.5px;
    color: #96a3b0;
}

.dois-fatores-resend-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: 12.5px;
    color: #1f527a;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.dois-fatores-resend-btn:hover:not(:disabled) {
    color: #fd5c63;
}

.dois-fatores-resend-btn:disabled {
    color: #b7c0c9;
    cursor: not-allowed;
    text-decoration: none;
}

.dois-fatores-back {
    display: inline-block;
    margin-top: 18px;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 12.5px;
    color: #96a3b0;
}

.dois-fatores-back:hover {
    color: #1f527a;
}

/*
 * O componente de flash do framework (FlashHelper) sempre renderiza um
 * <div id="success|error|warning|info" class="alert alert-*" style="height:52px;">
 * com ícone e botão de fechar flutuados (float-left/float-right), pensado
 * para mensagens curtas de uma linha só. Nas telas de dois fatores e
 * recuperação de senha as mensagens podem ocupar mais de uma linha (ex.: a
 * mensagem genérica de recuperação de senha), então a altura fixa de 52px
 * cortava/sobrepunha o conteúdo seguinte do card. Por isso sobrescrevemos
 * esse comportamento só dentro do card, sem mexer no componente global.
 */
.dois-fatores-card .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: auto !important;
    min-height: 46px;
    width: auto;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    font-family: Montserrat-Regular, sans-serif;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.dois-fatores-card .alert .float-left {
    float: none;
    flex: 1;
}

.dois-fatores-card .alert .float-right {
    float: none;
    flex-shrink: 0;
    cursor: pointer;
}

.dois-fatores-card .alert img {
    width: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.dois-fatores-card .alert-error {
    background: #fdecec;
    color: #b3261e;
}

.dois-fatores-card .alert-success {
    background: #eaf7ef;
    color: #1e7a45;
}

.dois-fatores-card .alert-warning {
    background: #fff6e0;
    color: #8a6d1a;
}

.dois-fatores-card .alert-info {
    background: #e8f1fb;
    color: #1f527a;
}

/*//////////////////////////////////////////////////////////////////
[ Campos de formulário — recuperação de senha ]*/

.dois-fatores-field {
    text-align: left;
    margin-bottom: 18px;
}

.dois-fatores-field label {
    display: block;
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: 12.5px;
    color: #566472;
    margin-bottom: 8px;
}

.dois-fatores-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid #e2e8ee;
    border-radius: 10px;
    background: #f7f9fb;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 14px;
    color: #26333f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dois-fatores-input:focus {
    outline: none;
    border-color: #1f527a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 82, 122, 0.12);
}

.dois-fatores-password-wrap {
    position: relative;
}

.dois-fatores-password-wrap .dois-fatores-input {
    padding-right: 46px;
}

.dois-fatores-toggle-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #96a3b0;
}

.dois-fatores-toggle-eye svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dois-fatores-toggle-eye.is-active {
    color: #1f527a;
}

.dois-fatores-hint {
    font-family: Montserrat-Regular, sans-serif;
    font-size: 12px;
    color: #96a3b0;
    text-align: left;
    margin: -8px 0 20px;
    line-height: 1.5;
}
