
/* ============================================================
   CORE — PAGE D'INSCRIPTION
   NET2ALL · SOCLE APPLICATIF
   ============================================================ */


/* ============================================================
   CARTE D'INSCRIPTION
   ============================================================ */

.auth-card {
    max-width: 520px;
}


/* ============================================================
   FORMULAIRE
   ============================================================ */

.auth-form .form-group {
    margin-bottom: 17px;
}

.auth-form .input-wrapper {
    position: relative;
}

.auth-form .input-icon {
    z-index: 2;
}

.auth-form select {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    background-color: #fff;
    color: #26384a;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-form .input-wrapper select {
    padding-left: 42px;
}

.auth-form select:focus,
.auth-form input:focus {
    border-color: #13a89e;
    box-shadow: 0 0 0 3px rgba(19, 168, 158, .10);
    outline: none;
}


/* ============================================================
   INDICATIONS DU FORMULAIRE
   ============================================================ */

.auth-form .form-hint {
    display: block;
    margin-top: 6px;
    color: #8492a6;
    font-size: 11px;
}


/* ============================================================
   ALERTES
   ============================================================ */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.auth-alert-danger {
    background: #fff0f0;
    border: 1px solid #f4cccc;
    color: #a83232;
}

.auth-alert-success {
    background: #eaf8f5;
    border: 1px solid #bce8dc;
    color: #147c6d;
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 800;
}

.auth-errors {
    margin: 0;
    padding-left: 18px;
}

.auth-errors li + li {
    margin-top: 5px;
}


/* ============================================================
   BOUTON D'INSCRIPTION
   ============================================================ */

.auth-form .btn-login {
    width: 100%;
    margin-top: 8px;
}


/* ============================================================
   LIEN VERS LA CONNEXION
   ============================================================ */

.auth-switch {
    margin-top: 22px;
    text-align: center;
    color: #8492a6;
    font-size: 13px;
}

.auth-switch a {
    color: #13a89e;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .auth-card {
        max-width: 100%;
    }

}




/* ============================================================
   CHAMPS MOT DE PASSE
   ============================================================ */

.password-input-wrapper {
    position: relative;
}

.auth-form .password-input-wrapper input {
    width: 100%;
    padding-right: 90px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #13a89e;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    z-index: 3;
}

.password-toggle:hover {
    color: #123451;
}


/* ============================================================
   GÉNÉRATEUR DE MOT DE PASSE
   ============================================================ */

.password-generator {
    margin: 8px 0 20px;
    padding: 15px;
    background: #f5f9fb;
    border: 1px solid #e2ebf0;
    border-radius: 10px;
}

.password-generator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.password-generator-header strong {
    display: block;
    color: #123451;
    font-size: 13px;
}

.password-generator-header p {
    margin: 5px 0 0;
    color: #8492a6;
    font-size: 11px;
    line-height: 1.5;
}

.generator-icon {
    color: #13a89e;
    font-size: 24px;
}

.btn-generate-password {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #13a89e;
    border-radius: 7px;
    background: #fff;
    color: #13a89e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.btn-generate-password:hover {
    background: #13a89e;
    color: #fff;
}


/* ============================================================
   MOT DE PASSE GÉNÉRÉ
   ============================================================ */

.generated-password-container {
    margin-top: 12px;
}

.generated-password-container[hidden] {
    display: none;
}

.generated-password-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dce4eb;
    border-radius: 7px;
}

.generated-password-value code {
    color: #123451;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
    user-select: all;
}

.btn-copy-password {
    flex-shrink: 0;
    padding: 7px 10px;
    border: none;
    border-radius: 5px;
    background: #123451;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-copy-password:hover {
    background: #13a89e;
}

.generated-password-container small {
    display: block;
    margin-top: 8px;
    color: #8492a6;
    font-size: 10px;
    line-height: 1.5;
}


/* ============================================================
   VALIDATION DE LA CONFIRMATION
   ============================================================ */

.password-match-message.match-success {
    color: #147c6d;
}

.password-match-message.match-error {
    color: #c0392b;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .password-generator {
        padding: 12px;
    }

    .generated-password-value {
        align-items: flex-start;
    }

    .generated-password-value code {
        font-size: 11px;
    }

}





/* ============================================================
   INDICATEUR DE ROBUSTESSE DU MOT DE PASSE
   ============================================================ */

.password-strength {
    margin-top: 12px;
    margin-bottom: 8px;
}

.password-strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #8492a6;
}

.password-strength-header strong {
    font-size: 11px;
    font-weight: 700;
}

.password-strength-track {
    height: 6px;
    width: 100%;
    overflow: hidden;
    background: #e8edf1;
    border-radius: 10px;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width .25s ease, background-color .25s ease;
}

.password-strength-hint {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.5;
    color: #8492a6;
}

.password-strength.is-weak .password-strength-header strong {
    color: #c0392b;
}

.password-strength.is-weak .password-strength-fill {
    background: #e74c3c;
}

.password-strength.is-medium .password-strength-header strong {
    color: #d68910;
}

.password-strength.is-medium .password-strength-fill {
    background: #f2b84b;
}

.password-strength.is-strong .password-strength-header strong {
    color: #168b72;
}

.password-strength.is-strong .password-strength-fill {
    background: #13a89e;
}

.password-strength.is-very-strong .password-strength-header strong {
    color: #147c6d;
}

.password-strength.is-very-strong .password-strength-fill {
    background: #087f5b;
}

