
/* ReparaJá - Segurança Fase 3A / MFA */

.rj-mfa-admin-button {
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: 10px 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.rj-mfa-admin-button:hover {
    background: #f8fafc;
}

.rj-mfa-admin-button.active {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.rj-mfa-admin-button.floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4000;
}

.rj-mfa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .68);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rj-mfa-overlay.show {
    display: flex;
}

.rj-mfa-card {
    width: min(440px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .3);
}

.rj-mfa-head {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.rj-mfa-head h2 {
    margin: 0 0 4px;
    font-size: 21px;
    color: #0f172a;
}

.rj-mfa-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.rj-mfa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    font-size: 22px;
    flex: 0 0 auto;
}

.rj-mfa-card label {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.rj-mfa-card input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 18px;
    letter-spacing: .22em;
    text-align: center;
    outline: none;
}

.rj-mfa-card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.rj-mfa-primary,
.rj-mfa-secondary,
.rj-mfa-danger {
    width: 100%;
    border-radius: 10px;
    padding: 11px 13px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
}

.rj-mfa-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: white;
}

.rj-mfa-secondary {
    border: 1px solid #dbe3ef;
    background: white;
    color: #334155;
}

.rj-mfa-danger {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.rj-mfa-message {
    display: none;
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.rj-mfa-message.show {
    display: block;
}

.rj-mfa-message.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.rj-mfa-message.success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.rj-mfa-message.info {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.rj-mfa-qr-wrap {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.rj-mfa-qr {
    width: 210px;
    max-width: 72vw;
    background: white;
    border-radius: 10px;
}

.rj-mfa-secret {
    margin: 4px 0 12px;
    font-size: 12px;
    color: #475569;
}

.rj-mfa-secret code {
    display: block;
    margin-top: 7px;
    padding: 9px;
    background: #f8fafc;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.rj-mfa-status {
    border-radius: 12px;
    padding: 13px;
    margin-bottom: 10px;
}

.rj-mfa-status.ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.rj-mfa-status strong,
.rj-mfa-status span {
    display: block;
}

.rj-mfa-status span {
    margin-top: 3px;
    font-size: 12px;
    opacity: .9;
}

.rj-mfa-loading {
    text-align: center;
    padding: 28px 0;
    color: #64748b;
}
