/* CONTAINER PRINCIPAL - CENTRAGE */
.password-change-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 50%, #f0fff0 100%);
}

/* FORMULAIRE */
.password-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #e8f5e8;
}

/* TITRES */
.password-form h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2e7d32;
    font-size: 28px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #689f38;
    font-size: 14px;
    line-height: 1.4;
}

/* GROUPES DE FORMULAIRES */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #388e3c;
    font-size: 14px;
}

/* CHAMPS DE SAISIE */
.password-toggle {
    position: relative;
    width: 100%;
}

.password-toggle input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #c8e6c9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fdf9;
}

.password-toggle input:focus {
    outline: none;
    border-color: #4caf50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* BOUTON TOGGLE VISIBILITÉ */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #66bb6a;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2e7d32;
}

/* EXIGENCES MOT DE PASSE */
.password-requirements {
    background: #f1f8e9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #4caf50;
}

.password-requirements h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #2e7d32;
    font-weight: 600;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    transition: color 0.3s ease;
}

.requirement.valid {
    color: #2e7d32;
}

.requirement.invalid {
    color: #e53935;
}

.requirement-icon {
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* BARRE DE FORCE MOT DE PASSE */
.password-strength {
    height: 6px;
    border-radius: 3px;
    margin-top: 10px;
    background-color: #e8f5e8;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-weak {
    background-color: #f44336;
    width: 25%;
}

.strength-medium {
    background-color: #ff9800;
    width: 50%;
}

.strength-strong {
    background-color: #4caf50;
    width: 100%;
}

/* BOUTON SOUMISSION */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn:disabled {
    background: #c8e6c9;
    color: #81c784;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* MESSAGES */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.message.error {
    background-color: rgba(229, 57, 53, 0.1);
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* MESSAGE CONFIRMATION MOT DE PASSE */
#passwordMatch {
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .password-change-container {
        padding: 15px;
        align-items: flex-start;
        min-height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    }
    
    .password-form {
        padding: 25px;
        margin: 20px 0;
        box-shadow: 0 5px 20px rgba(46, 125, 50, 0.08);
    }
    
    .password-form h1 {
        font-size: 24px;
    }
}