/* ============================================================================
   MODAL DE ALTERAÇÃO DE SENHA - GLASSMORPHISM STYLE (IGUAL AO LOGIN)
   ============================================================================ */

.change-password-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.change-password-modal.active {
    display: flex;
}

.change-password-content {
    width: 480px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 36px;
    border-radius: 8px;
    background: rgba(0, 17, 52, 0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 0 40px rgba(0, 51, 153, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.change-password-content::-webkit-scrollbar {
    width: 8px;
}

.change-password-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.change-password-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.change-password-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Top Bar e Logo */
.change-password-content .modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.change-password-content .modal-logo {
    height: 15px;
    width: auto;
}

.change-password-content .modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.change-password-content .modal-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Header */
.change-password-content .modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.password-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff3366 0%, #ff1a4d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-icon i {
    font-size: 40px;
    color: #ffffff;
}

.change-password-content .modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-subtitle-password {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-weight: 400;
}

/* Formulário */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toggle-password-visibility {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password-visibility:hover {
    color: #ffffff;
}

/* Indicador de Força da Senha */
.password-strength {
    margin-top: 8px;
    display: none;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-bar-fill.weak {
    background: #ff4444;
    width: 33%;
}

.strength-bar-fill.medium {
    background: #FFA726;
    width: 66%;
}

.strength-bar-fill.strong {
    background: #4CAF50;
    width: 100%;
}

.strength-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* Indicador de Senha Coincidente */
.password-match-indicator {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    min-height: 18px;
}

/* Requisitos de Senha */
.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
}

.requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirements-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.requirements-list li i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.requirements-list li.met {
    color: #4CAF50;
}

.requirements-list li.met i {
    color: #4CAF50;
}

/* Botões */
.password-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-cancel-password {
    flex: 1;
    padding: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel-password:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-save-password {
    flex: 1;
    padding: 13px;
    background: linear-gradient(135deg, #ff3366 0%, #ff1a4d 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

.btn-save-password:active {
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
    .change-password-content {
        width: 95%;
        padding: 28px 24px;
    }
    
    .password-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .password-icon i {
        font-size: 35px;
    }
    
    .change-password-content .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle-password {
        font-size: 12px;
    }
    
    .password-field-group {
        gap: 6px;
    }
    
    .password-label {
        font-size: 13px;
    }
    
    .password-input {
        padding: 13px 40px 13px 16px;
        font-size: 14px;
    }
    
    .password-requirements {
        padding: 12px 16px;
    }
    
    .requirements-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .requirements-list li {
        font-size: 12px;
    }
    
    .password-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .change-password-content {
        padding: 24px 20px;
    }
    
    .change-password-content .modal-title {
        font-size: 22px;
    }
    
    .password-input {
        padding: 12px 38px 12px 14px;
        font-size: 13px;
    }
}
