.sa-register-page {
    color: #343434;
    background: #ffffff;
    font-family: inherit;
}

.ast-container {
    max-width: 100%;
    padding: 0;
}

.sa-register-page * {
    box-sizing: border-box;
}

.site-content .ast-container {
    max-width: 100%;
    padding: 0;
}

.sa-register-container {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.sa-register-hero {
    position: relative;
    padding: 30px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(63, 192, 149, 0.16), transparent 34%),
        radial-gradient(circle at 78% 28%, rgba(63, 192, 149, 0.11), transparent 36%),
        linear-gradient(180deg, #f3fbf8 0%, #ffffff 94%);
    border-bottom: 1px solid #e5edf0;
    overflow: hidden;
}

.sa-register-hero::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    right: -260px;
    top: 40px;
    border: 1px solid rgba(63, 192, 149, 0.13);
    pointer-events: none;
}

.sa-register-hero::after {
    content: "";
    position: absolute;
    width: 980px;
    height: 980px;
    border-radius: 50%;
    right: 140px;
    top: 190px;
    border: 1px solid rgba(63, 192, 149, 0.10);
    pointer-events: none;
}

.sa-register-grid {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 72px;
    align-items: start;
}

.sa-register-left {
    max-width: 650px;
}

.sa-register-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(63, 192, 149, 0.14);
    color: #3fc095;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 22px;
}

.sa-register-badge-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sa-register-badge svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #3fc095;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-register-left h1 {
    max-width: 680px;
    margin: 0;
    color: #343434;
    font-size: 40px;
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 700;
}

.sa-register-intro {
    margin: 24px 0 0;
    color: #343434;
    font-size: 14px;
    line-height: 1.75;
    max-width: 610px;
}

.sa-register-checklist {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.sa-register-check {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sa-register-check span {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #3fc095;
    box-shadow: 0 10px 22px rgba(63, 192, 149, 0.22);
}

.sa-register-check svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-register-check p {
    margin: 0;
    color: #343434;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

/* Carte inscription */
.sa-register-card {
    position: relative;
    z-index: 2;
    width: 500px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 237, 240, 0.95);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    backdrop-filter: blur(10px);
}

.sa-register-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(63, 192, 149, 0.13));
    z-index: -1;
}

.sa-register-card-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(63, 192, 149, 0.14);
}

.sa-register-card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #3fc095;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-register-card-title {
    text-align: center;
    margin-bottom: 28px;
}

.sa-register-card-title h2 {
    margin: 0;
    color: #343434;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.sa-register-card-title p {
    margin: 10px auto 0;
    max-width: 330px;
    color: #343434;
    font-size: 14px;
    line-height: 1.55;
}

/* Ultimate Member */
.sa-register-form .um:not(.um-admin) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.sa-register-form .um-form {
    width: 100%;
}

.sa-register-form .um-field {
    padding: 0 0 15px !important;
}

.sa-register-form .um-field-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

.sa-register-form .um-field-label label {
    color: #343434 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 501;
}

.sa-register-form .um span.um-req {
    color: #3fc095 !important;
    font-weight: 900 !important;
}

.sa-register-form .um-field-label::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3fc095;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.sa-register-form .um input[type="text"],
.sa-register-form .um input[type="email"],
.sa-register-form .um input[type="password"] {
    color: #343434 !important;
    border-radius: 5px;
    font-size: 14px !important;
}

.sa-register-form .um input[type="text"]::placeholder,
.sa-register-form .um input[type="email"]::placeholder,
.sa-register-form .um input[type="password"]::placeholder {
    color: #9aa5b1 !important;
}

.sa-register-form .um input[type="text"]:focus,
.sa-register-form .um input[type="email"]:focus,
.sa-register-form .um input[type="password"]:focus {
    border-color: #3fc095 !important;
    box-shadow: 0 0 0 4px rgba(63, 192, 149, 0.12) !important;
}

/* Boutons inscription */
.sa-register-form .sa-auth-actions {
    margin-top: 3px;
}

.sa-register-form .sa-auth-primary {
    margin-bottom: 0;
}

.sa-register-form .um input[type="submit"].um-button,
.sa-register-form .um .um-button {
    background: #3fc095 !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 501 !important;
    padding: 15px 0 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(63, 192, 149, 0.22) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.sa-register-form .um input[type="submit"].um-button:hover,
.sa-register-form .um input[type="submit"].um-button:focus,
.sa-register-form .um .um-button:hover,
.sa-register-form .um .um-button:focus {
    background: #343434 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(63, 192, 149, 0.28) !important;
}

.sa-register-form .sa-auth-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0;
    color: #8a94a3;
    font-size: 14px;
    line-height: 1;
}

.sa-register-form .sa-auth-separator::before,
.sa-register-form .sa-auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe5e8;
}

.sa-register-form .sa-auth-secondary {
    margin-top: 0;
}

.sa-register-form .sa-auth-secondary .um-button.um-alt {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #343434 !important;
    color: #343434 !important;
    box-shadow: none !important;
}

.sa-register-form .sa-auth-secondary .um-button.um-alt:hover {
    color: #3fc095 !important;
    border-color: #3fc095 !important;
}

/* ================================
   CHAMPS MOT DE PASSE + BOUTON ŒIL
   ================================ */

.sa-register-form .sa-password-field-area {
    position: relative;
}

.sa-register-form .sa-password-field-area input[type="password"],
.sa-register-form .sa-password-field-area input[type="text"] {
    padding-right: 52px !important;
}

.sa-register-form .sa-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;

    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-left: 1px solid #e6ebf1 !important;
    border-radius: 0 5px 5px 0 !important;

    background: transparent !important;
    color: #8a94a8 !important;

    box-shadow: none !important;
    cursor: pointer !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    z-index: 5;
}

.sa-register-form .sa-password-toggle:hover,
.sa-register-form .sa-password-toggle:focus {
    background: rgba(63, 192, 149, 0.10) !important;
    color: #3fc095 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

.sa-register-form .sa-password-toggle svg {
    width: 21px !important;
    height: 21px !important;
    display: block;
}

.sa-register-form .sa-password-toggle .sa-eye-open {
    display: none;
}

.sa-register-form .sa-password-toggle .sa-eye-closed {
    display: block;
}

.sa-register-form .sa-password-toggle.is-visible .sa-eye-closed {
    display: none;
}

.sa-register-form .sa-password-toggle.is-visible .sa-eye-open {
    display: block;
}

/* ================================
   JAUGE FORCE MOT DE PASSE
   ================================ */

.sa-register-form .sa-password-meta {
    margin: 2px 0 22px;
}

.sa-register-form .sa-password-strength {
    display: block;
    margin: 4px 0 18px;
}

.sa-register-form .sa-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin: 0 0 12px;
}

.sa-register-form .sa-strength-bars span {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: #cfd6df;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sa-register-form .sa-strength-bars span.is-active {
    transform: scaleY(1.12);
}

.sa-register-form .sa-strength-bars span.is-active.is-level-1 {
    background-color: #ef7e7e;
}

.sa-register-form .sa-strength-bars span.is-active.is-level-2 {
    background-color: #f2b94b;
}

.sa-register-form .sa-strength-bars span.is-active.is-level-3 {
    background-color: #5bbf8a;
}

.sa-register-form .sa-strength-bars span.is-active.is-level-4 {
    background-color: #3fc095;
}

.sa-register-form .sa-strength-text {
    text-align: center;
    color: #343434;
    font-size: 13px;
    line-height: 1.4;
}

.sa-register-form .sa-strength-text strong {
    font-weight: 800;
}

.sa-register-form #sa-password-strength-text.is-level-0,
.sa-register-form #sa-password-strength-text.is-level-1 {
    color: #ef7e7e;
}

.sa-register-form #sa-password-strength-text.is-level-2 {
    color: #f2b94b;
}

.sa-register-form #sa-password-strength-text.is-level-3 {
    color: #5bbf8a;
}

.sa-register-form #sa-password-strength-text.is-level-4 {
    color: #3fc095;
}

/* ================================
   RÈGLES MOT DE PASSE
   ================================ */

.sa-register-form .sa-password-rules {
    margin-top: 18px;
    padding: 18px 20px;
    background: rgba(63, 192, 149, 0.08);
    border: 1px solid rgba(63, 192, 149, 0.22);
    border-radius: 5px;
}

.sa-register-form .sa-password-rules h4 {
    margin: 0 0 13px;
    color: #343434;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.sa-register-form .sa-password-rules ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.sa-register-form .sa-password-rules li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7b8798;
    font-size: 13px;
    line-height: 1.35;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.sa-register-form .sa-password-rules li.is-valid {
    color: #343434;
    opacity: 1;
}

.sa-register-form .sa-rule-check {
    width: 17px;
    height: 17px;
    min-width: 17px;
    color: #aeb8c6;
    flex: 0 0 auto;
    display: inline-flex;
}

.sa-register-form .sa-password-rules li.is-valid .sa-rule-check {
    color: #3fc095;
}

.sa-register-form .sa-rule-check svg {
    width: 17px;
    height: 17px;
}

/* Messages Ultimate Member */
.sa-register-form .um .um-field-error,
.sa-register-form .um .um-error-block {
    border-radius: 5px !important;
}

.sa-register-form .um-notice {
    border-radius: 5px !important;
}

/* Strip réassurance */
.sa-register-reassurance {
    position: relative;
    z-index: 2;
    margin: 30px auto 0;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid #e5edf0;
    border-radius: 5px;
    box-shadow: 0 20px 55px rgba(23, 32, 51, 0.08);
}

.sa-register-reassurance-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: center;
    padding: 0 26px;
}

.sa-register-reassurance-item:not(:last-child) {
    border-right: 1px solid #dbe5e8;
}

.sa-register-reassurance-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(63, 192, 149, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-register-reassurance-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #3fc095;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-register-reassurance h3 {
    margin: 0 0 5px;
    color: #343434;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.sa-register-reassurance p {
    margin: 0;
    color: #343434;
    font-size: 14px;
    line-height: 1.45;
}

/* Nettoyage Astra */
body.page-template-page-register .site-content,
body.page-id-1074 .site-content {
    background: #ffffff;
}

body.page-template-page-register .site-content .ast-container,
body.page-id-1074 .site-content .ast-container {
    max-width: 100%;
    padding: 0;
}

body.page-template-page-register .entry-content,
body.page-id-1074 .entry-content {
    margin: 0;
}

/* Évite que les boutons œil héritent du style Ultimate Member */
.sa-register-form button.sa-password-toggle,
.sa-register-form button.sa-password-toggle:hover,
.sa-register-form button.sa-password-toggle:focus,
.sa-register-form button.sa-password-toggle:active {
    min-width: 44px !important;
    max-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    height: 44px !important;
}

/* Responsive */
@media (max-width: 1050px) {
    .sa-register-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sa-register-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .sa-register-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .sa-register-checklist {
        width: min(520px, 100%);
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .sa-register-card {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .sa-register-reassurance {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sa-register-reassurance-item {
        border-right: 0 !important;
        padding: 0;
    }

    .sa-register-reassurance-item:not(:last-child) {
        padding-bottom: 20px;
        border-bottom: 1px solid #dbe5e8;
    }
}

@media (max-width: 767px) {
    .sa-register-hero {
        padding: 20px;
    }

    .sa-register-left h1 {
        font-size: 30px;
    }

    .sa-register-card {
        padding: 20px;
    }

    .sa-register-intro {
        margin: 15px 0 0;
    }

    .sa-register-checklist {
        margin-top: 15px;
        gap: 10px;
    }

    .sa-register-container {
        width: 100%;
    }
}

@media (max-width: 920px) {
    .sa-register-container.sa-register-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .sa-register-left {
        text-align: center;
        margin: 0 auto;
    }
}
