/* =========================================================
 * BDDGend — 2FA Visual
 * Design harmonisé BDDGend
 * ========================================================= */

html body.bddgend-2fa-page,
body.bddgend-2fa-page,
body.bddgend-2fa-page #outer-wrap,
body.bddgend-2fa-page #wrap,
body.bddgend-2fa-page #main,
body.bddgend-2fa-page #content-wrap,
body.bddgend-2fa-page #primary,
body.bddgend-2fa-page .content-area,
body.bddgend-2fa-page .site-main,
body.bddgend-2fa-page article,
body.bddgend-2fa-page .entry-content {
    background:
        radial-gradient(circle at top left, rgba(47,149,244,.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15,64,111,.20), transparent 40%),
        linear-gradient(180deg, #d7e4f2 0%, #c5d4e6 45%, #b4c5da 100%) !important;
    background-attachment: fixed !important;
}

body.bddgend-2fa-page .entry-content {
    min-height: 72vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 42px 18px !important;
}

body.bddgend-2fa-page .bddgend-2fa-card {
    width: min(520px, 100%) !important;
    margin: 0 auto !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid rgba(216,231,255,.98) !important;
    border-radius: 30px !important;
    padding: 34px !important;
    box-shadow:
        0 24px 70px rgba(7,84,174,.20),
        0 8px 24px rgba(15,23,42,.12) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #0f172a !important;
    overflow: hidden !important;
}

body.bddgend-2fa-page .bddgend-2fa-card::before {
    content: "🔐 Authentification forte";
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0b6fd8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 7px 12px;
    margin-bottom: 20px;
}

body.bddgend-2fa-page .bddgend-2fa-card a:first-child,
body.bddgend-2fa-page .bddgend-2fa-card > a:first-child {
    display: block !important;
    color: #147ee8 !important;
    font-size: 26px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    margin: 0 0 18px !important;
}

body.bddgend-2fa-page .bddgend-2fa-card p,
body.bddgend-2fa-page .bddgend-2fa-card div,
body.bddgend-2fa-page .bddgend-2fa-card label {
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

body.bddgend-2fa-page .bddgend-2fa-card label {
    display: block !important;
    margin: 18px 0 7px !important;
    color: #334155 !important;
    font-weight: 850 !important;
}

body.bddgend-2fa-page .bddgend-2fa-card input[type="text"],
body.bddgend-2fa-page .bddgend-2fa-card input[type="password"],
body.bddgend-2fa-page .bddgend-2fa-card input[type="number"] {
    width: 100% !important;
    min-height: 48px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    font-size: 20px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}

body.bddgend-2fa-page .bddgend-2fa-card input[type="text"]:focus,
body.bddgend-2fa-page .bddgend-2fa-card input[type="password"]:focus,
body.bddgend-2fa-page .bddgend-2fa-card input[type="number"]:focus {
    border-color: #147ee8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(20,126,232,.15) !important;
}

body.bddgend-2fa-page .bddgend-2fa-card button,
body.bddgend-2fa-page .bddgend-2fa-card input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding: 13px 20px !important;
    margin-top: 18px !important;
    background: linear-gradient(135deg, #147ee8, #5ab0ff) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 10px 26px rgba(20,126,232,.28) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

body.bddgend-2fa-page .bddgend-2fa-card button:hover,
body.bddgend-2fa-page .bddgend-2fa-card input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 34px rgba(20,126,232,.34) !important;
}

body.bddgend-2fa-page .bddgend-2fa-card a {
    color: #147ee8 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.bddgend-2fa-page .bddgend-2fa-card a:hover {
    text-decoration: underline !important;
}

body.bddgend-2fa-page .bddgend-2fa-card .bddgend-2fa-return-link {
    display: block !important;
    margin-top: 26px !important;
    padding-top: 18px !important;
    border-top: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
}

body.bddgend-2fa-page .bddgend-2fa-card br {
    display: none !important;
}

@media (max-width: 640px) {
    body.bddgend-2fa-page .entry-content {
        padding: 24px 14px !important;
    }

    body.bddgend-2fa-page .bddgend-2fa-card {
        border-radius: 24px !important;
        padding: 26px !important;
    }

    body.bddgend-2fa-page .bddgend-2fa-card a:first-child,
    body.bddgend-2fa-page .bddgend-2fa-card > a:first-child {
        font-size: 23px !important;
    }
}


/* =========================================================
 * Corrections fines 2FA
 * ========================================================= */

body.bddgend-2fa-page .bddgend-2fa-card hr {
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 28px 0 !important;
}

body.bddgend-2fa-page .bddgend-2fa-card form {
    margin-bottom: 18px !important;
}

body.bddgend-2fa-page .bddgend-2fa-card button,
body.bddgend-2fa-page .bddgend-2fa-card input[type="submit"] {
    margin-bottom: 8px !important;
}

body.bddgend-2fa-page .bddgend-2fa-card .swpm-2fa-resend-link,
body.bddgend-2fa-page .bddgend-2fa-card .swpm-2fa-resend-wrap,
body.bddgend-2fa-page .bddgend-2fa-card .swpm-2fa-resend-section {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

body.bddgend-2fa-page .bddgend-2fa-card a[href*="bddgend"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 14px !important;
    padding-top: 0 !important;
    border-top: 0 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;

    color: #147ee8 !important;
    text-decoration: none !important;
}

body.bddgend-2fa-page .bddgend-2fa-card a[href*="bddgend"]:hover {
    text-decoration: underline !important;
}
