.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.password-label-row .form-label {
    margin-bottom: 0;
}

.password-toggle {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #495057;
}

.device-limit-notice ul li {
    margin-bottom: 0.35rem;
}

.device-limit-notice ul li:last-child {
    margin-bottom: 0;
}

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.auth-sso-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-sso-divider__line {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.auth-sso-divider__label {
    flex: 0 0 auto;
    text-transform: lowercase;
}

.auth-oidc-btn {
    font-weight: 600;
}

.password-toggle svg {
    display: block;
}

#toastContainer.toast-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

#toastContainer .toast {
    min-width: 260px;
    max-width: 360px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(155, 161, 255, 0.6);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 0 15px rgba(155, 161, 255, 0.35), 0 0 30px rgba(155, 161, 255, 0.15);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: auth-toast-in 0.35s ease forwards, auth-toast-out 0.35s ease forwards 2.8s;
    pointer-events: auto;
    font-family: 'Chakra Petch', sans-serif;
}

#toastContainer .toast-body {
    font-size: 0.85rem;
    line-height: 1.3rem;
    text-align: center;
    padding: 14px 16px;
}

#toastContainer .toast.text-bg-success {
    border-color: #00ffb3;
    box-shadow: 0 0 15px rgba(0, 255, 179, 0.35), 0 0 30px rgba(0, 255, 179, 0.15);
}

#toastContainer .toast.text-bg-danger {
    border-color: #ff006e;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.35), 0 0 30px rgba(255, 0, 110, 0.15);
}

@keyframes auth-toast-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-toast-out {
    to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

#page-contato .contact-details {
    margin-top: 0.5rem;
}

#page-contato .contact-details__item + .contact-details__item {
    margin-top: 0.75rem;
}

#page-contato .contact-details__item {
    line-height: 1.6;
}

#page-contato .contact-details dt,
#page-contato .contact-details dd {
    display: inline;
    margin: 0;
    font-size: 1rem;
    line-height: inherit;
    vertical-align: baseline;
}

#page-contato .contact-details dt {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#page-contato .contact-details dt::after {
    content: ' - ';
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: normal;
    text-transform: none;
}

#page-contato .contact-details dd {
    color: rgba(255, 255, 255, 0.9);
}

#page-contato .contact-details a {
    color: var(--azul-SM-link, #9ba1ff);
    text-decoration: none;
}

#page-contato .contact-details a:hover,
#page-contato .contact-details a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.mfa-otp-digits {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin: 0.25rem 0 0.75rem;
}

.mfa-otp-js-panel fieldset[data-mfa-js-fieldset] {
    min-inline-size: 0;
}

.mfa-otp-digits input {
    width: 2.75rem;
    height: 3.25rem;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 0.5rem;
    line-height: 1;
}

.mfa-otp-digits input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(155, 161, 255, 0.35);
    border-color: #9ba1ff;
}

.mfa-otp-switch {
    text-align: center;
    margin-bottom: 1rem;
}

@media (max-width: 420px) {
    .mfa-otp-digits {
        gap: 0.35rem;
    }

    .mfa-otp-digits input {
        width: 2.35rem;
        height: 2.85rem;
        font-size: 1.25rem;
    }
}

/* MFA challenge page: full-bleed background + right-side form */
.site-main.mfa-challenge-main,
.mfa-challenge-main {
    position: relative;
    isolation: isolate;
    min-height: calc(100dvh - 5.5rem);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.mfa-recovery-codes {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.mfa-recovery-codes__item {
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(10, 6, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    letter-spacing: 0.04em;
}

.mfa-challenge-bg,
.mfa-challenge-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mfa-challenge-bg {
    z-index: 0;
    background-color: #0a0614;
    background-image: var(--sm-auth-challenge-bg, url('../../img/bg-chalenge.jpg'));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mfa-challenge-gradient {
    z-index: 1;
    /* Opaque on the rightmost 20%; fade to transparent starts from there toward the left */
    background: linear-gradient(
        to right,
        rgba(118, 27, 255, 0) 0%,
        rgba(118, 27, 255, 0.9) 80%,
        rgba(118, 27, 255, 0.9) 100%
    );
}

.mfa-challenge-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: stretch;
    min-height: inherit;
}

.mfa-challenge-col--visual {
    flex: 0 0 60%;
    width: 60%;
    max-width: 60%;
}

.mfa-challenge-col--form {
    flex: 0 0 40%;
    width: 40%;
    max-width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.mfa-challenge-panel {
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    margin-inline: auto;
}

.mfa-challenge-panel .form-label,
.mfa-challenge-panel h1,
.mfa-challenge-panel p,
.mfa-challenge-panel small {
    color: #fff;
    text-align: center;
}

.mfa-challenge-panel .form-label {
    display: block;
    width: 100%;
}

.mfa-challenge-panel .alert {
    text-align: center;
}

.mfa-challenge-panel .mb-3 {
    text-align: center;
}

.mfa-challenge-panel .form-control {
    margin-inline: auto;
    text-align: center;
}

.mfa-challenge-panel a {
    text-decoration: none !important;
}

.mfa-challenge-panel a:hover,
.mfa-challenge-panel a:focus {
    text-decoration: none !important;
}

.mfa-challenge-panel .btn-sm {
    font-size: 0.8125rem;
    padding: 0.35rem 0.85rem;
}

.mfa-challenge-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.mfa-challenge-actions form {
    margin: 0;
}

.mfa-challenge-panel .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.mfa-challenge-panel .mfa-otp-digits input,
.mfa-challenge-panel .form-control {
    background: rgba(10, 6, 20, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.mfa-challenge-panel .form-control:focus,
.mfa-challenge-panel .mfa-otp-digits input:focus {
    background: rgba(10, 6, 20, 0.7);
    border-color: #b794ff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(183, 148, 255, 0.35);
}

@media (max-width: 991.98px) {
    .mfa-challenge-gradient {
        background: linear-gradient(
            to right,
            rgba(118, 27, 255, 0.2) 0%,
            rgba(118, 27, 255, 0.9) 80%,
            rgba(118, 27, 255, 0.9) 100%
        );
    }

    .mfa-challenge-col--visual {
        display: none;
    }

    .mfa-challenge-col--form {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.25rem;
    }

    .mfa-challenge-panel {
        max-width: 28rem;
    }
}

