.user-form-page {
    min-height: 100%;
    padding: 48px 24px;
    background-color: var(--background-container);
}

.user-form {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid var(--secondary-border);
    border-top: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(38, 57, 77, 0.08);
}

.user-form__header {
    margin-bottom: 32px;
}

.user-form__header--with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.user-form__title {
    margin: 0;
    color: var(--secondary-darker);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.user-form__intro {
    max-width: 58ch;
    margin: 12px 0 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.user-form .mb-3 {
    margin-bottom: 22px !important;
}

.user-form .form-label,
.user-form legend {
    margin-bottom: 8px;
    color: var(--secondary-darker);
    font-size: 0.9rem;
    font-weight: 600;
}

.user-form .form-control,
.user-form .form-select {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #c8d2d8;
    border-radius: 4px;
    color: var(--secondary-darker);
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: none;
}

.user-form .form-control::placeholder {
    color: #7a858d;
}

.user-form .form-control:hover,
.user-form .form-select:hover {
    border-color: #93a6ad;
}

.user-form .form-control:focus,
.user-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 176, 81, 0.18);
}

.user-form .form-text {
    margin-top: 7px;
    color: #68747c;
    font-size: 0.8rem;
    line-height: 1.45;
}

.user-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 8px 0;
}

.user-form .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.18rem 0 0;
    border-color: #9aaab1;
    flex: 0 0 auto;
}

.user-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.user-form .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 176, 81, 0.18);
}

.user-form .form-check-label {
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.user-form .registration-choice-group {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--secondary-border);
    border-radius: 4px;
}

.user-form .registration-choice-group__legend {
    float: none;
    width: auto;
    padding: 0 5px;
    margin: 0;
    font-size: 0.84rem;
}

.user-form__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--secondary-border);
}

.user-form__submit {
    min-width: 190px;
    margin: 0 !important;
    border-radius: 4px !important;
}

.user-form__logout {
    flex: 0 0 auto;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
}

@media (max-width: 575px) {
    .user-form-page {
        padding: 24px 12px;
    }

    .user-form {
        padding: 28px 20px;
    }

    .user-form__header--with-action {
        gap: 14px;
    }

    .user-form__title {
        font-size: 1.45rem;
    }

    .user-form__actions,
    .user-form__submit {
        width: 100%;
    }
}

/* ===== ŒIL D'AFFICHAGE DU MOT DE PASSE =====
   Scopé sous .user-form : forms.css est chargé sur toutes les pages du front,
   et .control.has-eye / .checks existent aussi, autrement, dans profile.css. */
.user-form .control.has-eye {
    position: relative;
}

.user-form .toggle-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: #667589;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    cursor: pointer;
}

.user-form .toggle-eye:hover {
    background: #e3f6f4;
    color: #1f9c93;
}

.user-form .control.has-eye .form-control {
    padding-right: 52px;
}

/* ===== JAUGE DE FORCE ===== */
.user-form .password-strength {
    margin: -14px 0 22px;
}

.user-form .password-strength__bars {
    display: flex;
    gap: 5px;
}

.user-form .password-strength__bars span {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e3e7ee;
    transition: background 0.2s ease;
}

.user-form .password-strength__label {
    display: block;
    margin: 8px 0 12px;
    color: #707b8e;
    font-size: 0.8rem;
    font-weight: 700;
}

.user-form .password-strength__checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
}

.user-form .password-strength__checks li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #707b8e;
    font-size: 0.78rem;
    line-height: 1.4;
}

.user-form .password-strength__tick {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #cbd3e0;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.user-form .password-strength__tick svg {
    opacity: 0;
}

.user-form .password-strength__checks li.is-ok {
    color: #3fa15c;
    font-weight: 600;
}

.user-form .password-strength__checks li.is-ok .password-strength__tick {
    background: #3fa15c;
    border-color: #3fa15c;
}

.user-form .password-strength__checks li.is-ok .password-strength__tick svg {
    opacity: 1;
    color: #fff;
}

@media (max-width: 575.98px) {
    .user-form .password-strength__checks {
        grid-template-columns: 1fr;
    }
}
